Uploaded image for project: 'Keycloak'
  1. Keycloak
  2. KEYCLOAK-14526

The way the admin CLI handles certain operations by name is inefficient

    Details

    • Type: Bug
    • Status: Plan (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 10.0.2
    • Fix Version/s: Backlog
    • Component/s: Admin - CLI
    • Labels:
      None
    • Docs QE Status:
      NEW
    • QE Status:
      NEW

      Description

      This issue is secondary to KEYCLOAK-14523 which I recently reported. During a name-based operation, e.g. 

      add-roles -r test --gname some_group_name

      the admin CLI uses the REST API to request all resources of that type (in this case groups) and does a search for the group by name on the client side to find the id associated with that resource which is then used in a subsequent REST request. This can be made much more efficient by implementing all of that logic on the server side and also by adding REST endpoints that allow resources to be addressed by other unique properties.  For example, groups could be addressed by name or path which would then require a single round-trip with a more efficient SQL query on the server side to implement operations on the group.

       

       

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  blevine218 Brian Levine
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated: