Repository navigation
feat(chart): let apps-mcp trust a private CA for Keycloak (mcp.orgCABundle) - #165
Merged
Merged
Conversation
…undle) The device flow calls Keycloak at its browser-facing URL from inside the cluster; on clusters whose certificate comes from a private CA, authenticate failed with CERTIFICATE_VERIFY_FAILED. mcp.orgCABundle mounts a CA bundle ConfigMap and points SSL_CERT_FILE at it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
📄 Docs preview for |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The MCP
authenticatetool calls Keycloak at its browser-facing URL (keycloak.url) from inside the cluster. When that certificate is signed by a private CA (e.g. the local kind cluster'snebari-local Root CA), it fails with[SSL: CERTIFICATE_VERIFY_FAILED] unable to get local issuer certificate.Adds
mcp.orgCABundle.configMapName/key. When set, the chart mounts the ConfigMap read-only at/etc/ssl/nebariand setsSSL_CERT_FILE, which httpx honors. This is the sameorgCABundleconvention the nebi and frames charts use. Off by default, so nothing changes unless you set it.values.yaml,values.schema.json(strict, rejects unknown keys),templates/mcp.yamlconfiguration.md(apps-mcp table) andmcp.md(Authentication)Testing
helm lintpasses.helm templaterenders the env var, mount and volume only whenconfigMapNameis set, and the schema rejectsmcp.orgCABundle.bogus.kind-nebari-local, in the running apps-mcp pod:httpx.get("https://keycloak.nebari.local/...")fails with the default trust store and returns 200 withSSL_CERT_FILEpointing at the system roots plus the root CA bundle.github.comstill returns 200, so public TLS keeps working.🤖 Generated with Claude Code