Repository navigation
Trust a private CA for the hosts of API keys and MCP servers - #185
Merged
Merged
Conversation
The egress proxy checked the certificate of an intercepted host against the public CAs only. A credential for a host with a certificate from a private CA, such as a Kubernetes API server or an MCP server with its own CA, failed with a TLS error. An API key and an MCP server now take an optional upstream CA. The orchestrator stores one CA for each user and host pattern, so all API keys and MCP servers of a user for a host share it. It removes a CA when no API key and no MCP server of the user names the host. The proxy trusts the CA in addition to the public CAs, and only in requests from the boxes of the user. It intercepts a host with an upstream CA also when no credential belongs to the host, so an MCP server without authentication can use the CA too. The OAuth login of an MCP server trusts the CA for the host of the server.
The docs described the proxy as intercepting only credential hosts and had no word on private certificate authorities. They now describe the upstream CA of an API key and an MCP server, the rule that one host has one upstream CA for each user, the interception of hosts with an upstream CA, and the API fields. The API key routes had no section in the REST document and get one.
splitbrain-bot
force-pushed
the
upstream-ca
branch
from
November 9, 2026 18:03
dc01359 to
f0a3b17
Compare
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.
Closes #175.
Summary: An API key and an MCP server take an optional upstream CA. The egress proxy trusts it, in addition to the public CAs, for the hosts of the entry, so a credential works for a host with a certificate from a private CA, e.g., a Kubernetes API server or an MCP server with its own CA.
Changes:
upstream_castable. All API keys and MCP servers of a user that name the same host pattern share the CA.credentials.md,agent-sets.md,egress.mdandrest.md.rest.mdgets a section for the API key routes.Tests: new tests for the store, the API keys, the MCP servers, the policy, the front door and the engine. The engine tests use a stand-in origin with a private CA, with HTTP/1.1, HTTP/2 and a websocket upgrade.