8000 Document PKIX path building failed error in truststore guide by kfaseela · Pull Request #55786 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content

Document PKIX path building failed error in truststore guide - #55786

Open
kfaseela wants to merge 5 commits into
keycloak:mainfrom
Nordix:docs/truststore-pkix-troubleshooting
Open

kfaseela wants to merge 5 commits into
keycloak:mainfrom
Nordix:docs/truststore-pkix-troubleshooting

Conversation

@kfaseela
@kfaseela kfaseela commented Dec 3, 2026
Copy link
Copy Markdown
Contributor

Closes #55785.

Identified from the Keycloak community forum topic on this error, ahead of the forum's shutdown. (Ref: https://forum.keycloak.org/t/pkix-path-building-failed-sun-security-provider-certpath-suncertpathbuilderexception-unable-to-find-valid-certification-path-to-requested-target/1593 )

Decisions and assumptions:

  • Added the troubleshooting note to the existing keycloak-truststore.adoc guide rather than a new standalone guide, since the cause and fix already live there.
  • Cross-referenced the database and outgoing-HTTP guides as the other places this error can surface, without duplicating their content.

Drafted with AI assistance (GitHub Copilot), reviewed and verified by me.

Closes keycloak#55785.

Identified from the Keycloak community forum topic on this error, ahead of the forum's shutdown.

Decisions and assumptions:
- Added the troubleshooting note to the existing `keycloak-truststore.adoc` guide rather than a new standalone guide, since the cause and fix already live there.
- Cross-referenced the database and outgoing-HTTP guides as the other places this error can surface, without duplicating their content.

Drafted with AI assistance (GitHub Copilot), reviewed and verified by me.

Signed-off-by: Faseela K <faseela.k@est.tech>
@kfaseela
kfaseela requested review from a team as code owners December 3, 2026 13:11
Copilot AI balanced review requested due to automatic review settings December 3, 2026 13:11
Copilot AI 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.

🟡 Changes recommended

The troubleshooting guidance conflates TLS validation with token signatures, overlooks incomplete server certificate chains, and can direct users to update the wrong truststore.

3 open issues
What changed in this PR

Adds troubleshooting guidance for “PKIX path building failed” to the existing truststore guide, addressing #55785.

Changes:

  • Includes the error text and directs readers to truststore configuration.
  • Links to database and outgoing HTTP guidance.
File Description
docs/​guides/​server/​keycloak-truststore.adoc Adds troubleshooting guidance and cross-guide links.

Review effort: Balanced

@ahus1 ahus1 self-assigned this Dec 3, 2026
Signed-off-by: Faseela K <faseela.k@est.tech>
Copilot AI balanced review requested due to automatic review settings December 3, 2026 14:09
Copilot AI 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.

🟡 Changes recommended

The truststore guidance overlooks JDBC-specific selection behavior and conflates missing intermediate certificates with missing trusted roots, potentially directing readers to ineffective fixes.

1 open issue
1 previously missed issue

In code that hasn't changed since last review

Low severity Distinguish a missing intermediate from a missing trusted root

docs/​guides/​server/​keycloak-truststore.adoc:78

The application's truststore is not necessarily missing a certificate: the missing-intermediate case described above produces the same error even when the application already trusts the root CA. Preserve that distinction here so readers fix the served certificate chain rather than unnecessarily modifying every application's truststore.

3 resolved since last review

Review effort: Balanced

Signed-off-by: Faseela K <faseela.k@est.tech>
Copilot AI balanced review requested due to automatic review settings December 3, 2026 15:48
Copilot AI 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.

🟡 Changes recommended

The guide incorrectly treats a complete chain as proof of an untrusted CA, overlooking certificate validity and algorithm constraints that truststore changes cannot fix.

1 open issue
1 resolved since last review

Review effort: Balanced

Clarified the reasons for TLS client certificate chain failures and updated instructions for ensuring the truststore is correctly configured.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Faseela K <k.faseela@gmail.com>
Copilot AI balanced review requested due to automatic review settings December 3, 2026 16:05
Copilot AI 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.

🔵 Needs a closer look

Human assessment is needed because the guide’s direct-TLS probe may mislead users diagnosing certificate chains for services requiring TLS negotiation, such as LDAP StartTLS and PostgreSQL.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

Signed-off-by: Faseela K <faseela.k@est.tech>
Copilot AI balanced review requested due to automatic review settings December 3, 2026 16:31
Copilot AI 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.

🟢 Approval recommended

No active review issues are recorded for the truststore troubleshooting documentation change.

No open issues 🎉

Review effort: Balanced

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add troubleshooting guidance for "PKIX path building failed" err 4407 ors to the truststore guide

3 participants

0