8000 Workflow grant step can select the wrong client role · Issue #55468 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content

Workflow grant step can select the wrong client role #55468

Description

@ssilvert

Describe the bug

A workflow "grant role" step can grant a different client role from the one it is configured with. The step's role setting has the form <clientId>/<roleName>. Keycloak splits this value at every / and uses only the first segment after the client ID as the role name. When a client role name contains / (for example admin/child), the rest of the name is dropped and the step grants the prefix role (admin) instead. How much this matters depends on the permissions of the role that is wrongly granted. Configuring the step requires permission to author workflows.

Version

Observed at commit 0c8877a.

Expected behavior

The step grants exactly the configured client role, including role names that contain /, or it rejects a role reference it cannot resolve unambiguously.

Actual behavior

The step is configured with role-collision-client/admin/child. When the workflow runs, the user receives the client role admin, and admin/child is not assigned.

Anything else?

Related: #50989 (role matching in workflow events).


This issue was originally tracked in the private repository. Migrated by @ssilvert.

Activity

  1. added
    priority/important
    area/workflows
    on Nov 23, 2026
  2. self-assigned this
    on Nov 24, 2026
  3. added a commit that references this issue on Nov 26, 2026
    0c51945
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/workflowskind/weaknesspriority/importantrelease/27.0.0team/core-iam

Fields

No fields configured for weakness.

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    0