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

CS tool, Without --location parameter a credential store storage file isn't saved (or save as is expected).

XMLWordPrintable

      Without --location parameter a credential store storage file isn't saved (or save as is expected).

      It pass but I am not able find credential store storage file on disk.

      [hsvabek@localhost bin]$ java -jar wildfly-elytron-tool.jar credential-store --add myalias --secret supersecretpassword --uri "cr-store://test.store?modifiable=true;create=true;keyStoreType=JCEKS" --password mycspassword --summary
      Alias "myalias" has been successfully stored
      Credential store command summary:
      --------------------------------------
      /subsystem=elytron/credential-store=test:add(uri="cr-store://test.store?modifiable=true;create=true;keyStoreType=JCEKS",relative-to=jboss.server.data.dir,credential-reference={clear-text="mycspassword"})
      

      It pass with this URI value and I am able to find credential store storage file on disk.

      uri="cr-store://credentialstorename/test.store?modifiable=true;create=true;keyStoreType=JCEKS"
      

      I see problem here https://github.com/wildfly-security/wildfly-elytron-tool/blob/1.0.0.Alpha3/src/main/java/org/wildfly/security/tool/CredentialStoreCommand.java#L238
      (test.store is interpreded as hostname in URI in first case)

      NOTE
      Please keep in mind this issue https://issues.jboss.org/browse/JBEAP-8450.
      Behaviour must be consistent!

              rhn-support-ivassile Ilia Vassilev
              hsvabek_jira Hynek Švábek (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: