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

[GSS](7.3.z) Password Vault does not work with JBoss EAP 7.3 CP4

XMLWordPrintable

    • False
    • False
    • +
    • Undefined
    • Hide

      Create vault:

      keytool -genseckey -alias vault -storetype jceks -keyalg AES -keysize 128 -storepass vault22 -keypass vault22 -validity 730 -keystore vault.keystore
       

      Attempt to add vault entry:

       ./vault.sh --keystore EAP_HOME/standalone/vault/vault.keystore --keystore-password vault22 --alias vault --vault-block vb --attribute password --sec-attr 0penS3sam3 --enc-dir EAP_HOME/vault --iteration 120 --salt 1234abcd
      =========================================================================  
      JBoss Vault 
      JBOSS_HOME: EAP_HOME  
      JAVA: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.252.b09-1.fc32.x86_64/bin/java
      =========================================================================
      Exception in thread "main" org.jboss.modules.ModuleLoadException: Error loading module from EAP_HOME/modules/system/layers/base/.overlays/layer-base-jboss-eap-7.3.4.CP/org/jboss/as/vault-tool/main/module.xml
      	at org.jboss.modules.xml.ModuleXmlParser.parseModuleXml(ModuleXmlParser.java:337)
      	at org.jboss.modules.xml.ModuleXmlParser.parseModuleXml(ModuleXmlParser.java:293)
      	at org.jboss.modules.xml.ModuleXmlParser.parseModuleXml(ModuleXmlParser.java:254)
      	at org.jboss.modules.LocalModuleFinder.parseModuleXmlFile(LocalModuleFinder.java:250)
      	at org.jboss.modules.LocalModuleFinder.lambda$findModule(LocalModuleFinder.java:195)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at org.jboss.modules.LocalModuleFinder.findModule(LocalModuleFinder.java:195)
      	at org.jboss.modules.ModuleLoader.findModule0(ModuleLoader.java:696)
      	at org.jboss.modules.ModuleLoader.findModule(ModuleLoader.java:689)
      	at org.jboss.modules.ModuleLoader.loadModuleLocal(ModuleLoader.java:499)
      	at org.jboss.modules.DelegatingModuleLoader.preloadModule(DelegatingModuleLoader.java:57)
      	at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:295)
      	at org.jboss.modules.Main.main(Main.java:371)
      Caused by: org.jboss.modules.xml.XmlPullParserException: Failed to add artifact '${org.jboss.eap:wildfly-security-vault-tool}' (position: END_TAG seen ...   <artifact name="${org.jboss.eap:wildfly-security-vault-tool}"/>... @32:72) caused by: java.lang.IllegalArgumentException: ${org.jboss.eap:wildfly-security-vault-tool}
      	at org.jboss.modules.xml.ModuleXmlParser.parseArtifact(ModuleXmlParser.java:1054)
      	at org.jboss.modules.xml.ModuleXmlParser.parseResources(ModuleXmlParser.java:937)
      	at org.jboss.modules.xml.ModuleXmlParser.parseModuleContents(ModuleXmlParser.java:697)
      	at org.jboss.modules.xml.ModuleXmlParser.parseDocument(ModuleXmlParser.java:469)
      	at org.jboss.modules.xml.ModuleXmlParser.parseModuleXml(ModuleXmlParser.java:335)
      	... 12 more
      Caused by: java.lang.IllegalArgumentException: ${org.jboss.eap:wildfly-security-vault-tool}
      	at org.jboss.modules.maven.ArtifactCoordinates.fromString(ArtifactCoordinates.java:83)
      	at org.jboss.modules.xml.ModuleXmlParser.parseArtifact(ModuleXmlParser.java:1047)
      	... 16 more
      
      Show
      Create vault: keytool -genseckey -alias vault -storetype jceks -keyalg AES -keysize 128 -storepass vault22 -keypass vault22 -validity 730 -keystore vault.keystore Attempt to add vault entry: ./vault.sh --keystore EAP_HOME/standalone/vault/vault.keystore --keystore-password vault22 --alias vault --vault-block vb --attribute password --sec-attr 0penS3sam3 --enc-dir EAP_HOME/vault --iteration 120 --salt 1234abcd ========================================================================= JBoss Vault JBOSS_HOME: EAP_HOME JAVA: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.252.b09-1.fc32.x86_64/bin/java ========================================================================= Exception in thread "main" org.jboss.modules.ModuleLoadException: Error loading module from EAP_HOME/modules/system/layers/base/.overlays/layer-base-jboss-eap-7.3.4.CP/org/jboss/as/vault-tool/main/module.xml at org.jboss.modules.xml.ModuleXmlParser.parseModuleXml(ModuleXmlParser.java:337) at org.jboss.modules.xml.ModuleXmlParser.parseModuleXml(ModuleXmlParser.java:293) at org.jboss.modules.xml.ModuleXmlParser.parseModuleXml(ModuleXmlParser.java:254) at org.jboss.modules.LocalModuleFinder.parseModuleXmlFile(LocalModuleFinder.java:250) at org.jboss.modules.LocalModuleFinder.lambda$findModule(LocalModuleFinder.java:195) at java.security.AccessController.doPrivileged(Native Method) at org.jboss.modules.LocalModuleFinder.findModule(LocalModuleFinder.java:195) at org.jboss.modules.ModuleLoader.findModule0(ModuleLoader.java:696) at org.jboss.modules.ModuleLoader.findModule(ModuleLoader.java:689) at org.jboss.modules.ModuleLoader.loadModuleLocal(ModuleLoader.java:499) at org.jboss.modules.DelegatingModuleLoader.preloadModule(DelegatingModuleLoader.java:57) at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:295) at org.jboss.modules.Main.main(Main.java:371) Caused by: org.jboss.modules.xml.XmlPullParserException: Failed to add artifact '${org.jboss.eap:wildfly-security-vault-tool}' (position: END_TAG seen ... <artifact name= "${org.jboss.eap:wildfly-security-vault-tool}" />... @32:72) caused by: java.lang.IllegalArgumentException: ${org.jboss.eap:wildfly-security-vault-tool} at org.jboss.modules.xml.ModuleXmlParser.parseArtifact(ModuleXmlParser.java:1054) at org.jboss.modules.xml.ModuleXmlParser.parseResources(ModuleXmlParser.java:937) at org.jboss.modules.xml.ModuleXmlParser.parseModuleContents(ModuleXmlParser.java:697) at org.jboss.modules.xml.ModuleXmlParser.parseDocument(ModuleXmlParser.java:469) at org.jboss.modules.xml.ModuleXmlParser.parseModuleXml(ModuleXmlParser.java:335) ... 12 more Caused by: java.lang.IllegalArgumentException: ${org.jboss.eap:wildfly-security-vault-tool} at org.jboss.modules.maven.ArtifactCoordinates.fromString(ArtifactCoordinates.java:83) at org.jboss.modules.xml.ModuleXmlParser.parseArtifact(ModuleXmlParser.java:1047) ... 16 more

      Customer reported exception when attempting to use password vault after upgrading to JBoss EAP 7.3.4

              rhn-support-ivassile Ilia Vassilev
              rhn-support-mavassil Maria Vassileva
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

                Created:
                Updated:
                Resolved: