Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-2429

CLI command for update CredentialReference should fail rather then pass.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 3.0.0.Beta29
    • None
    • Security
    • None

    Description

      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

      /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)
      
      /subsystem=elytron/credential-store=credS004:write-attribute(name=credential-reference.store, value=credS002)
      

      AND

      /subsystem=elytron/credential-store=credS004:write-attribute(name=credential-reference.alias, value=credS002)
      

      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

      /subsystem=elytron/credential-store=credS004:write-attribute(name=credential-reference, value={store=credS002, alias=jimmy})
      

      Now is everything OK.

      Attachments

        Issue Links

          Activity

            People

              pskopek@redhat.com Peter Skopek
              hsvabek_jira Hynek Švábek (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: