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

Credential store has configuration in "uri" attribute.

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Critical
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 3.0.0.Beta16
    • Component/s: Security
    • Labels:
      None

      Description

      Credential store has configuration in "uri" attribute. All parameters are in one string. It can be confusing and there is risk of typo (e.g. delimiter typo)
      In my opinion the main intention for it is to have general solution for custom implementation.

      Current state

      /subsystem=elytron/credential-store=cs001:add(uri="cr-store://test/cs/keystore.jceks?store.password=pass123;create.storage=true")
      

      Suggestion for improvement:
      Better solution to achieve this could be use a map.
      e.g. some like that:

      /subsystem=elytron/credential-store=credStore:add(cs-map={store.password=pass123, create.storage=true, store.file=path/to/cred/file})
      

      Now credential store name is in URI too, it can be get from resource name.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  pskopek Peter Skopek
                  Reporter:
                  hsvabek Hynek Švábek
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: