[jboss-jira] [JBoss JIRA] (WFLY-7907) CLI command for update CredentialReference should fail rather then pass.

Hynek Švábek (JIRA) issues at jboss.org
Wed Jan 18 08:42:00 EST 2017


Hynek Švábek created WFLY-7907:
----------------------------------

             Summary: CLI command for update CredentialReference should fail rather then pass.
                 Key: WFLY-7907
                 URL: https://issues.jboss.org/browse/WFLY-7907
             Project: WildFly
          Issue Type: Bug
          Components: Security
            Reporter: Hynek Švábek
            Assignee: Darran Lofthouse


CLI command for update CredentialReference should fail rather then pass.

Because CLI command doesn't persist any data to configuration file but pass.

I expect that command would fail and shows some error message.

*How to reproduce*
{code}
/subsystem=elytron/credential-store=credS004:add(uri="cr-store://test/credS004.jceks?create.storage=true", credential-reference={clear-text=pass987}, relative-to=jboss.server.data.dir)
{code}

{code}
/subsystem=elytron/credential-store=credS004:write-attribute(name=credential-reference.store, value=credS002)
{code}
*AND*
{code}
/subsystem=elytron/credential-store=credS004:write-attribute(name=credential-reference.alias, value=credS002)
{code}
*Ends with success, but it has to be a failure*
These commands could lead to inconsistency.
Because there is valid state to have 
credential-reference={clear-text=pass987}
and credential-reference={store=cs, alias=alias}
but not their combination.


*I can use this right form of command*
{code}
/subsystem=elytron/credential-store=credS004:write-attribute(name=credential-reference, value={store=credS002, alias=jimmy})
{code}
Now is everything OK.




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



More information about the jboss-jira mailing list