Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-9771

Resolv Variables in DIH when using encryptKeyFile.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 5.5.3
    • Fix Version/s: 6.4, 7.0
    • Component/s: None
    • Labels:
      None

      Description

      I would like to use a variable like ${db.passwdkey} for password when using encryptKeyFile in various DIH files.

      -Ddb.passwdkey="U2FsdGVkX18QMjY0yfCqlfBMvAB4d3XkwY96L7gfO2o="

      Please backport to 5.5.3

      This does not appear to work when used in DIH below.

      <dataSource name="jdbc" driver="oracle.jdbc.driver.OracleDriver" url="jdbc:oracle:thin:@//hostname:port/SID" user="db_username"
      <!-- This database password is encrypted using AES using the command. pwd.txt contains the actual DB password -->
      <!-- openssl enc -aes-128-cbc -a -salt -in pwd.txt -->
      password="U2FsdGVkX18QMjY0yfCqlfBMvAB4d3XkwY96L7gfO2o="
      <!-- Password to decrypt is stored in this file-->
      encryptKeyFile="/location/of/encryptionkey"
      />

      {{{
      <dataSource name="jdbc" driver="oracle.jdbc.driver.OracleDriver" url="jdbc:oracle:thin:@//hostname:port/SID" user="db_username"
      <!-- This database password is encrypted using AES using the command. pwd.txt contains the actual DB password -->
      <!-- openssl enc -aes-128-cbc -a -salt -in pwd.txt -->
      password=${solr.passkey}
      <!-- Password to decrypt is stored in this file-->
      encryptKeyFile="/location/of/encryptionkey"
      }}}
      />

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                billnbell Bill Bell
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: