Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-13116

[GSS](7.1.z) ERROR in logs while using vault in system properties

XMLWordPrintable

    • EAP 7.1.1

      Getting below ERROR message in server.log when Picketbox Vault expressions used in system properties.:

      ERROR [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0230: Vault is not initialized; resolution of vault expressions is not possible
      

      Below expressions are resolving fine but due to race condition this ERROR message got printed in the logs.

      <system-properties>
              <property name="javax.net.ssl.trustStore" value="/home/jboss-eap-7.1/vault/vault.keystore"/>
              <property name="javax.net.ssl.trustStorePassword" value="${VAULT::datasource::password::1}"/>
      </system-properties>
      
      <vault>
        <vault-option name="KEYSTORE_URL" value="/home/jboss-eap-7.1/vault/vault.keystore"/>
        <vault-option name="KEYSTORE_PASSWORD" value="MASK-2GAtdnlXL8H"/>
        <vault-option name="KEYSTORE_ALIAS" value="vault"/>
        <vault-option name="SALT" value="12345678"/>
        <vault-option name="ITERATION_COUNT" value="44"/>
        <vault-option name="ENC_FILE_DIR" value="/home/jboss-eap-7.1/vault/"/>
      </vault>
      

      Expression is actually resolving to the correct value and that can be check using below CLI command :

      /core-service=platform-mbean/type=runtime:read-attribute(name=system-properties).
      

            chaowan@redhat.com Chao Wang
            pjindal@redhat.com Paramvir Jindal
            Daniel Cihak Daniel Cihak
            Daniel Cihak Daniel Cihak
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: