Skip to content

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

Closed

Description

@jhrozek

Context

Commit: 1853ae98069b6238d599d7b7394bf8ddd2b19ea3 in stacklok/toolhive
PR: #3391
Author: @jhrozek

Summary

The MCPServer CRD gains a new caBundleRef field (on both InlineOIDCConfig and ConfigMapOIDCRef) that auto-mounts a CA certificate ConfigMap for OIDC token validation against issuers with non-public certificates (e.g., corporate Keycloak instances). The existing thvCABundlePath field is deprecated.

Pages Requiring Updates

Priority Page What Needs Changing
High https://docs.stacklok.com/toolhive/guides-k8s/auth-k8s Document caBundleRef field for custom CA certificates; add deprecation note for thvCABundlePath; add example for corporate IdP with custom CA

Suggested Changes

  • Add a new section or subsection under the OIDC authentication approaches explaining how to use caBundleRef when the OIDC provider uses a non-public CA (e.g., corporate Keycloak with self-signed or internal CA)
  • Show an example MCPServer manifest with caBundleRef pointing to a ConfigMap containing the CA bundle:
    oidcConfig:
      type: inline
      inline:
        issuer: "https://keycloak.corp.example.com/realms/myrealm"
        audience: "my-audience"
        caBundleRef:
          configMapRef:
            name: corporate-ca-bundle
            key: ca.crt
  • Add a deprecation note for thvCABundlePath explaining that users should migrate to caBundleRef which automatically handles volume mounting
  • Mention the CABundleRefValidated status condition that operators can check for validation errors

Auto-generated by doc-impact analysis

Activity

  1. jhrozek commented on Jan 23, 2026

    @jhrozek
    ContributorAuthor

    Apologies for the AI slop, testing a skill and prematurely agreed to open an issue

  2. danbarr commented on Feb 2, 2026

    @danbarr
    Collaborator

    Apologies for the AI slop, testing a skill and prematurely agreed to open an issue

    @jhrozek Should this be closed then? Or assigned?

  3. jhrozek commented on Feb 2, 2026

    @jhrozek
    ContributorAuthor

    I'm going to self-assign this, the basic ask of the issue is valid

  4. self-assigned this
    on Feb 2, 2026
  5. danbarr commented on Apr 29, 2026

    @danbarr
    Collaborator

    Status check after the v1beta1 docs work:

    Already covered elsewhere:

    • migrate-to-v1beta1.mdx documents the thvCABundlePath → caBundleRef migration with before/after examples. Note: thvCABundlePath was removed in v0.15.0, not just deprecated, so the deprecation-note ask is moot.
    • mcp-server-entry.mdx, telemetry-and-metrics.mdx, and remote-mcp-proxy.mdx each document caBundleRef on their respective CRDs.
    • The MCPOIDCConfig CRD schema confirms caBundleRef lives at spec.inline.caBundleRef.

    v1beta1 reshaped the original ask: OIDC config moved out of MCPServer.spec.oidcConfig into the dedicated MCPOIDCConfig CRD referenced via oidcConfigRef. So the original example (inline oidcConfig on MCPServer) is no longer the right shape - caBundleRef now belongs on an MCPOIDCConfig.

    Still missing: auth-k8s.mdx has zero mentions of caBundleRef, custom CAs, or corporate IdP scenarios, despite being the page this issue named. The remaining work is small: add a worked example under "Set up shared OIDC configuration with MCPOIDCConfig" showing an MCPOIDCConfig with caBundleRef for a corporate Keycloak (or similar) with a non-public CA.

    Proposing we rescope the issue to that single addition rather than the original four-part ask.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions