Skip to content

fix(keycloak): handle situations where the systemInfo.version isn't available#8406

Open
PatAKnight wants to merge 2 commits intobackstage:mainfrom
PatAKnight:support-missing-systemInfo-version
Open

fix(keycloak): handle situations where the systemInfo.version isn't available#8406
PatAKnight wants to merge 2 commits intobackstage:mainfrom
PatAKnight:support-missing-systemInfo-version

Conversation

@PatAKnight
Copy link
Copy Markdown
Contributor

Hey, I just made a Pull Request!

Handles cases where systemInfo.version is unavailable in the Keycloak server info response. Starting with Keycloak v26.4.0, systemInfo is only accessible from the master realm — retrieving it from any other realm requires granting additional roles to that realm's realm-management client. Rather than making this an extra configuration requirement for users, the plugin now defaults to processGroupsRecursively when the server version cannot be determined, only falling back to the legacy traverseGroups path when a version is explicitly detected as 22 or lower.

Fixes

✔️ Checklist

  • A changeset describing the change and affected packages. (more info)
  • Added or updated documentation
  • Tests for new functionality and regression tests for bug fixes
  • Screenshots attached (for UI changes)
  • All your commits have a Signed-off-by line in the message. (more info)

…vailable

Signed-off-by: Patrick Knight <pknight@redhat.com>
Signed-off-by: Patrick Knight <pknight@redhat.com>
@backstage-goalie
Copy link
Copy Markdown
Contributor

Changed Packages

Package Name Package Path Changeset Bump Current Version
@backstage-community/plugin-catalog-backend-module-keycloak workspaces/keycloak/plugins/catalog-backend-module-keycloak patch v3.19.0

@seilerre
Copy link
Copy Markdown

seilerre commented Apr 6, 2026

Running into this, so thanks for fixing! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🐛 keycloak: Subgroups imports not working cause Keycloak >26.4.0 restrict the use of the server info endpoint

3 participants