8000 Clarify documentation of OS-level dependencies for Kerberos by ASzc · Pull Request #45764 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content

Clarify documentation of OS-level dependencies for Kerberos - #45764

Merged
rmartinc merged 1 commit into
keycloak:mainfrom
ASzc:issue_32527
May 28, 2026
Merged

rmartinc merged 1 commit into
keycloak:mainfrom
ASzc:issue_32527

Conversation

@ASzc
@ASzc ASzc commented Jan 26, 2026 •
Copy link
Copy Markdown
Contributor

Closes #32527

For a long time the Kerberos authentication documentation has implied that freeipa or krb5-libs packages are a necessary dependency. This isn't actually the case. This causes concern and confusion in the case of the container deployment, which doesn't have these packages installed by default due to security hardening.

As evidenced by the use of the org.ietf.jgss package, Keycloak uses the Java Generic Security Services API (JGSS) for kerberos, not krb5-libs via JNA. JGSS by default has no native dependencies. It will use a pure Java implementation unless sun.security.jgss.native is set to true

Unless overridden by the java.security.krb5.conf property, JGSS will look for the kerberos configuration in the same place that krb5-libs puts it, i.e. /etc/krb5.conf. This file seems to be the only actual dependency of Keycloak.

This PR updates the migration, container, and server admin guides to make this distinction more apparent.

Closes keycloak#32527

Signed-off-by: Alex Szczuczko <aszczucz@redhat.com>
@ahus1
ahus1 commented Jan 29, 2026
Copy link
Copy Markdown
Member

@ASzc - I see that @hwanders gave this PR a thumbs-up ... any more reviews you're anticipating from any Keycloak member before this should be merged?

@ASzc
ASzc commented Jan 29, 2026
Copy link
Copy Markdown
Contributor Author

@ahus1 Ideally someone with an understanding of the kerberos features would double check my analysis

@rmartinc rmartinc left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @ASzc! LGTM! I see no problem adding these comments to the documentation.

@rmartinc
rmartinc merged commit d506650 into keycloak:main May 28, 2026
59 checks passed
@stianst stianst mentioned this pull request Jun 1, 2026
sashyo pushed a commit to tide-foundation/keycloak-IGA that referenced this pull request Jul 20, 2026
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.

Provide default krb5.conf in Docker image or extend migration docs

4 participants

0