[jboss-jira] [JBoss JIRA] (ELY-1037) CS tool, Without --location parameter a credential store storage file isn't saved (or save as is expected).

Hynek Švábek (JIRA) issues at jboss.org
Tue Mar 28 03:48:00 EDT 2017


     [ https://issues.jboss.org/browse/ELY-1037?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hynek Švábek updated ELY-1037:
------------------------------
    Description: 
Without --location parameter a credential store storage file isn't saved (or save as is expected).

{code}
[hsvabek at 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"})
{code}
It pass with this URI value and I am able to find credential store storage file on disk.
{code}
uri="cr-store://credentialstorename/test.store?modifiable=true;create=true;keyStoreType=JCEKS"
{code}

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!



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

{code}
[hsvabek at 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"})
{code}
It pass with this URI value.
{code}
uri="cr-store://credentialstorename/test.store?modifiable=true;create=true;keyStoreType=JCEKS"
{code}

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!





> CS tool, Without --location parameter a credential store storage file isn't saved (or save as is expected).
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: ELY-1037
>                 URL: https://issues.jboss.org/browse/ELY-1037
>             Project: WildFly Elytron
>          Issue Type: Bug
>            Reporter: Hynek Švábek
>            Assignee: Darran Lofthouse
>
> Without --location parameter a credential store storage file isn't saved (or save as is expected).
> {code}
> [hsvabek at 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"})
> {code}
> It pass with this URI value and I am able to find credential store storage file on disk.
> {code}
> uri="cr-store://credentialstorename/test.store?modifiable=true;create=true;keyStoreType=JCEKS"
> {code}
> 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!



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)



More information about the jboss-jira mailing list