Repository navigation
Done
Labels
Description
Depends on: "Keys and gateway entries for the identity broker" (#2538), "Identity broker settings" (#2813)
Mecatl change in deployment and documentation.
Problem
What #2538 and #2813 load must reach mecak8s the way it is actually deployed, the broker client key must rotate without refusing requests, and operators need a guide.
Design
Requirements
- Deployment: the Helm chart delivers the settings, keys, subject claim, and gateway entries.
- Extend the existing
identityBrokersection with the settings, keys, and gateway entries. Today it hasidentityBroker.enabledand AS-1's values, runs one replica with aRecreaterollout while on, and refuses--enable-identity-brokerinextraArgs. - Where the embedded gateway runs: the design (
mcp-gateway-modes.md, "Embedded mode") lets it share the mecak8s process while the broker runs inside mecak8s, with its own storage namespace, and makes it its own deployment with its own storage credentials once the broker is separate ([Phase 3] Run the identity broker as its own service #2807). For phase 1 it stays in mecak8s. - The single replica also covers a known edge. A create whose host session ID already has a broker session for another incarnation skips the early broker open, and the open after the save only logs a refusal. Only a concurrent create on another replica can cause this ([Phase 3] Run mecak8s with the identity broker on more than one replica #2805).
- Extend the existing
- Broker client key rotation: rotate the broker client key without a request refused for a key reason. The operator adds the new public key to the broker client's key set, which AS-1 and the embedded AS-2 read, before the broker signs with the new private key, and removes the old public key afterwards. Each server reads the key set only at startup, so each step is a restart. While AS-1, AS-2, and the broker share one mecak8s replica with the
Recreatestrategy, each restart is a brief outage that drops in-memory broker sessions, so the overlap matters for servers outside the process; the steps for an external gateway are External gateway: Gateway implementation, operator setup, and end-to-end test #2812's. The broker's handling of agent issuer keys during rotation is Identity broker credential renewal and key rotation #2562's. - Signing key rotation: rotate the agent issuer, AS-1, and embedded AS-2 signing keys without a request refused for a key reason. The configuration file and
mcp.brokeralready accept fallback keys (Keys and gateway entries for the identity broker #2538); the chart adds fallback Secret references for the agent issuer and AS-1 keys, as it already has for AS-2's. The operator guide gives the steps: make the new key current with the old one as a fallback, restart, keep the fallback until everything it signed has expired (agent credentials: the maximum credential lifetime plus clock skew; AS-1 access tokens and AS-2 gateway tokens: their lifetimes), then remove it and restart again. - Operator guide:
- Sign-in uses the existing
--oidc-owner-identity=sub_idand--oidc-accepted-client-ids(Helmoidc.ownerIdentity,oidc.acceptedClientIDs), which mecak8s requires with--enable-identity-brokerand OIDC. Reuse them rather than adding broker-specific ones. - Session ownership stays on
oidc.ownerIdentity=sub_id; the subject claim setting does not change it. - The keys, gateway entry, settings and their defaults, and the rotation steps.
- Keeping the keys in a secret manager: the chart mounts keys from Kubernetes Secrets, so an operator can hold them in Vault or AWS Secrets Manager and sync them into those Secrets (External Secrets Operator, the Secrets Store CSI driver). Reading keys from a secret store or signing service directly is [Phase 3] Identity broker keys from secret stores and signing services #2877.
- Sign-in uses the existing
Cross-cutting
Helm chart tests and user docs for operating mecak8s. The broker's configuration file is not in the generated settings.yaml reference; the chart renders each new field only when it is set, because the loader refuses unknown fields and an older image would refuse the file.
How it fits
Slice 7's last ticket: the phase 1 flow becomes deployable from the chart, which the demo (slice 8) needs.
Done when
- mecak8s with the flag on starts from operator settings, keys, subject claim, and gateway entries delivered by the Helm chart.
- A broker client key rotation with overlapping keys refuses no request for a key reason.
- A signing key rotation (agent issuer, AS-1, AS-2) with the old key as a fallback refuses no request for a key reason.
- The operator guide and user docs describe the settings.
- With the flag off, the chart renders and mecak8s starts exactly as before, with no new settings required.
Activity
feat(mecak8s): deliver the identity broker's settings and key fallbac…
ChrisJBurns commentedon Nov 25, 2026
Delivered by #2875, #2946, #2976, and #2977. The items that wait on #2533 (the chart setting for AS-2 to fetch AS-1's keys over loopback, and the company-IdP session caveats) moved to #2533. The kind company-IdP session is #2542's.