-
Bug
-
Resolution: Done
-
Critical
-
None
-
None
The Elytron credential-store and secret-key-credential-store resources overwrite existing aliases when generating or importing keys, this is not consistent with the behaviour of the add-alias operation.
[standalone@localhost:9990 /] /subsystem=elytron/credential-store=a:generate-secret-key(alias=a1) {"outcome" => "success"} [standalone@localhost:9990 /] /subsystem=elytron/credential-store=a:read-aliases { "outcome" => "success", "result" => ["a1"] } [standalone@localhost:9990 /] /subsystem=elytron/credential-store=a:generate-secret-key(alias=a1) {"outcome" => "success"} ------------------------- [standalone@localhost:9990 /] /subsystem=elytron/credential-store=a:export-secret-key(alias=a2) { "outcome" => "success", "result" => {"key" => "RUxZAUuJqp+mNwIEDMrUz0iK6dyG"} } [standalone@localhost:9990 /] /subsystem=elytron/credential-store=a:import-secret-key(alias=a2,key=RUxZAUuJqp+mNwIEDMrUz0iK6dyG) {"outcome" => "success"} ------------------------- [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:add-alias(alias=a2,secret-value=a2) { "outcome" => "failed", "failure-description" => "WFLYELY00913: Credential alias 'a2' of credential type 'org.wildfly.security.credential.PasswordCredential' already exists in the store", "rolled-back" => true }
- is duplicated by
-
ELY-2092 Removal of credential store entry resulting in invalid alias list.
- Resolved