Uploaded image for project: 'WildFly Elytron'
  1. WildFly Elytron
  2. ELY-2092

Removal of credential store entry resulting in invalid alias list.

XMLWordPrintable

      The remove-alias operation of the credential-store resource removes all entries for the given alias, not just one entry according to the given type.

      [standalone@localhost:9990 /] /subsystem=elytron/credential-store=a:add-alias(alias=a2,secret-value=a2)
      {"outcome" => "success"}
      
      [standalone@localhost:9990 /] /subsystem=elytron/credential-store=a:remove-alias(alias=a2,entry-type=SecretKeyCredential)
      {
          "outcome" => "failed",
          "failure-description" => "WFLYELY00920: Credential alias 'a2' of credential type 'SecretKeyCredential' does not exist in the store",
          "rolled-back" => true
      }
       
      [standalone@localhost:9990 /] /subsystem=elytron/credential-store=a:generate-secret-key(alias=a2)
      {"outcome" => "success"}
      
      [standalone@localhost:9990 /] /subsystem=elytron/credential-store=a:remove-alias(alias=a2,entry-type=SecretKeyCredential)
      {
          "outcome" => "success",
          "response-headers" => {"warnings" => [{
              "warning" => "Update dependent resources as alias 'a2' does not exist anymore",
              "level" => "WARNING",
              "operation" => {
                  "address" => [
                      ("subsystem" => "elytron"),
                      ("credential-store" => "a")
                  ],
                  "operation" => "remove-alias"
              }
          }]}
      }
      
      [standalone@localhost:9990 /] /subsystem=elytron/credential-store=a:add-alias(alias=a2,secret-value=a2)
      {"outcome" => "success"}
      

              darran.lofthouse@redhat.com Darran Lofthouse
              okotek@redhat.com Ondrej Kotek
              Ondrej Kotek Ondrej Kotek
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: