Skip to content

Document caBundleRef for custom OIDC CA certificates#946

Open
danbarr wants to merge 2 commits into
mainfrom
document-cabundleref-oidc
Open

Document caBundleRef for custom OIDC CA certificates#946
danbarr wants to merge 2 commits into
mainfrom
document-cabundleref-oidc

Conversation

@danbarr

@danbarr danbarr commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator

Description

Adds a "Use a custom CA certificate for the OIDC issuer" subsection to the K8s auth guide, under the MCPOIDCConfig section. It covers the corporate-Keycloak / non-public-CA scenario: creating the CA bundle ConfigMap, referencing it via caBundleRef on an MCPOIDCConfig, and checking the CABundleRefValidated condition.

The original issue was written against the pre-v1beta1 shape (inline oidcConfig, deprecating thvCABundlePath), which is now stale: thvCABundlePath was removed in v0.15.0, the migration is already covered in migrate-to-v1beta1.mdx, and OIDC config now lives on the dedicated MCPOIDCConfig CRD. This PR is the rescoped remainder, the one missing piece in auth-k8s.mdx.

Two details were verified against the operator source rather than the issue text:

  • The CABundleRefValidated condition is set on the MCPServer status, not the MCPOIDCConfig (mcpserver_controller.go).
  • The CA ConfigMap is resolved in the MCPServer's namespace.

Type of change

  • Documentation update

Related issues/PRs

Closes #466
Documents stacklok/toolhive#3391

Submitter checklist

Content and formatting

  • I have reviewed the content for technical accuracy
  • I have reviewed the content for spelling, grammar, and style

🤖 Generated with Claude Code

Add a worked example under the MCPOIDCConfig section showing how to
trust a non-public CA (e.g., corporate Keycloak) via caBundleRef.
Covers creating the CA ConfigMap and checking the CABundleRefValidated
status condition on the referencing MCPServer.

Closes #466

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 16, 2026 15:02
@vercel

vercel Bot commented Jun 16, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs-website Ready Ready Preview, Comment Jun 16, 2026 3:20pm

Request Review

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.

Pull request overview

This PR updates the Kubernetes authentication/authorization guide to document how to trust an internal/self-signed CA when using OIDC with MCPOIDCConfig, which is a common requirement for corporate IdPs like Keycloak.

Changes:

  • Adds a new subsection explaining how to create a CA bundle ConfigMap and reference it via spec.inline.caBundleRef on an MCPOIDCConfig.
  • Documents how to verify CA bundle resolution by checking the CABundleRefValidated condition on the referencing MCPServer.

Comment thread docs/toolhive/guides-k8s/auth-k8s.mdx Outdated
Comment thread docs/toolhive/guides-k8s/auth-k8s.mdx Outdated
Address Copilot review on #946: the CA bundle is used to reach the
issuer's discovery and JWKS endpoints over TLS, not for token
validation directly. Also name the MCPServer whose oidcConfigRef must
point at the config before the CABundleRefValidated condition appears.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.

Docs update needed: Document caBundleRef for custom CA certificates in OIDC config

2 participants