Upgrading
For what each release changes, read the release notes.
ambit upgrade -f values.yaml does the upgrade in the right order (the dependency CRDs, ambit-crds, ambit) and
lists the sections below that apply to your upgrade. It writes ordinary Helm releases, so ambit upgrade and
helm upgrade are interchangeable, and helm rollback works on both. A release left in pending-install or
pending-upgrade (a laptop that stopped in the middle of an upgrade) is refused; see
ambit upgrade for --recover-pending.
To the release with service accounts (0.5.0)
-
Compression records name the caller. With
evidence.enabledand a Server withresultCompression, the guard's record of each compressed text now also holds the caller's email and key ID, the tool and a call ID (ambit.call_id, also on the gateway's record of the call). New Helm valueprotection.compressionAudit.caller(defaulttrue);falsekeeps the person out of these records. Records written before the upgrade have none of these fields. -
Tool pinning covers more of each tool. A tool's fingerprint now also covers its title, its output schema and the standard annotations (
title,readOnlyHint,destructiveHint,idempotentHint,openWorldHint); before, it covered the name, description and input schema only. Approvals made before the upgrade carry over: the next time Ambit reads a server's tools (when the controller starts, then every 10 minutes), it moves each approval to the new fingerprint if the tool's name, description and input schema are still the approved ones. It takes over the title, annotations and output schema that the server shows at that moment without review, because the older release did not record them. A tool that changed, and a new tool, stays hidden and refused until an admin approves it on the Servers page, as before. Until a server's approvals have moved, the guard also accepts the older fingerprint for them. While theambit-guardpods restart during the upgrade, an older guard pod may hide the moved tools fromtools/listfor a moment. The controller logsapprovals made before 0.5.0 moved to the new tool fingerprintwith the server and the number of tools.Serverstatus gainstools[].legacyFingerprint, used only for this step. -
A shared server whose tools were never read is now closed. A
Serverwithoutconnectionand with no approved tools (its tools could not be read yet) used to pass all its tools without pinning. Now the guard hides and refuses them until the controller reads them; such a server has the conditionToolsPinned=False, reasonNotRead. AServerwithconnectionwhose tools no admin's account has read stays usable, and now showsToolsPinned=False, reasonNotPinned, and "Tool pinning off" on the Servers page. -
Argument limits can set
min. TheAccessRuleCRD gainsarguments[].min. Nothing changes for existing rules: a limit with onlymaxstill allows 0 and negative numbers. -
After a downgrade below 0.5.0, approve the tools again, and remove
min. The older guard does not know the new fingerprints, so it hides and refuses every tool approved under 0.5.0 until an admin approves the server's tools again on the Servers page. The older guard does not enforcemin. -
After a downgrade below 0.5.0, remove the email from the compression records. The older Audit page lists every record that has the person's email, so it shows each compression record written by 0.5.0 as an empty extra row until the record ages out (
evidence.retention). The older guard writes no email, so only the records written before the downgrade need this statement, once (the Savings summaries do not change):ALTER TABLE otel.otel_logs UPDATE LogAttributes = mapFilter((k, v) -> k NOT IN ('jwt.email', 'ambit.key_id'), LogAttributes)WHERE LogAttributes['ambit.kind'] = 'compression' -
allSignedIn: trueno longer grants service accounts. It means every person with a valid token or personal key. No service account exists before this release, so nothing changes at the upgrade. When you add a service account, name its group or its identity in a rule: a rule that relies onallSignedInwill not give it access. -
Tokens with an
@svc.ambit.internalemail are refused by the gateways and the console sign-in, and SCIM refuses a user with such an email. Such an address cannot be a real mailbox (.internalis reserved for private use), so no person should have one. -
New Helm values
serviceAccounts.enabled(defaulttrue),serviceAccounts.maxDays(default90) andserviceAccounts.exposureDays(default7). No admission policy changes (the CRD changes are above). The console records the new settings once in the key History at its first start. -
More new Helm values, all optional:
llm.promptGuard(the prompt guard on the model path,enabled: falseby default, so nothing changes until you turn it on),evidence.exports.enabled(defaulttrue),evidence.exports.maxRows(default5000000) andevidence.exports.maxDays(default366). Access reviews (Settings → Evidence) cover dates from the upgrade on, and only withevidence.enabled. -
Some answers change. A model request with no key or an empty token gets 403 with the message "authorization failed: no Ambit key or token was sent", in Anthropic's error format for
/v1/messagesand OpenAI's for the other paths. A prompt guard refusal is a JSON error (codeprompt_guard), no longer plain text. In audit-only mode, the summary's "refused" count no longer includes prompt guard refusals. -
The MCP guard masks more and withholds more. The default masks find more written forms of card numbers, resident registration numbers (also foreign residents'), US Social Security numbers and emails, and a tool result that is not a JSON object is withheld instead of passed unchecked. Test a tool whose results contain long numbers before you upgrade production. The audit log no longer stores
mcp.error.message;mcp.error.codestays. -
Delete service accounts before a downgrade below 0.5.0. An older console reads a service account as a person who never signed in, so its hourly repair deletes the account's keys within an hour (fail closed). Until that repair runs, the older gateways accept those keys as ordinary keys, also when
serviceAccounts.enabledwasfalse, and no longer refuse tokens with the reserved email.
To the release with agentgateway v1.7.0
- Apply the new dependency CRDs first (
crds.yamlof the release, see Install). The agentgateway CRDs only gain fields, so objects you have stay valid. - The gateway pods are replaced one at a time. On a local kind cluster with two gateway replicas, 177 MCP requests sent during the upgrade all succeeded, and open MCP sessions, Budget counters and tool pins stayed.
- Some answers change. A tool the person may not use is answered
unknown resource(before:Unknown tool: <name>). Gateway errors no longer include internal details. Every streamed chat request ends with a usage chunk, also when the client turned it off./v1/messagesto OpenAI's own API is sent as a Responses request. See the release notes. - Embeddings count against daily request limits after the answer, like other requests: a refused embeddings
request (403 or 429) no longer counts. The controller deletes the policy
ambit-llm-usage, which the gateway made unnecessary. - Audit rows written before the upgrade keep their caller-less model refusals. Only refusals after the upgrade show the caller.
To the release with access rules that name people
- Upgrade the controller and the ambit-guard together (the chart does this). An older guard does not know
usersand does not apply argument limits for people listed there. usersmatch verified emails only. A JWT's email counts only when the token saysemail_verified: true(accessRules.usersRequireVerifiedEmail, default true). If your identity provider does not sendemail_verified, set it to false only if users cannot change their own email.ambit check --productionhas a new check, P12, that warns when it is false.
To the release with audit-only mode
- The controller now writes the access-log policy. The AgentgatewayPolicy
ambit-access-loghas the same name as before, but the chart no longer renders it. The chart renders the ConfigMapambit-access-log-baseinstead, andambit-controllerwrites the policy from it (it addsambit.accessModeandambit.rulesVersion, and in audit-only mode the "would be refused" fields). agentgateway uses only the first access-log policy of a Gateway, so there must be exactly one. The controller creates the policy before it reports Ready, and creates it again whenever it is deleted. It has the labelapp.kubernetes.io/managed-by: ambit-controller. - There is a short gap with no access-log policy during the upgrade. Helm deletes the policy that the old chart
made, and the controller creates its own. Requests served in the gap have no audit record. The mode in that time is
enforce, so no request is allowed without a record that it should have. On a local kind cluster with one gateway pod
the gap was 0.4 to 0.6 seconds in five runs; on your cluster it can be longer.
ambit check --production --deep(P4 and P11) fails when it runs inside the gap. The Audit page warns when no record arrived for an hour. ambit check --productionhas a new check, P11, for audit-only mode. Its line for records with a missing or failed mark runs one query in the ClickHouse pod, which needscreateonpods/exec(see the CLI reference).ambit-access-modestays afterhelm uninstall. The controller writes this ConfigMap (the published mode and rules version). It does no harm. Delete it withkubectl delete configmap -n ambit-system ambit-access-modewhen you remove Ambit.- A rules version is new. The first pass after the upgrade computes the version of your current rules once and publishes it after agentgateway has applied it.
Rolling back to an earlier chart
The earlier chart contains an ambit-access-log object. Helm cannot take over the object that the controller wrote
(Helm 3 refuses with "invalid ownership metadata"; Helm 4 stops with a field conflict with the manager
ambit-controller), and the running controller writes the policy again within a second of a delete. Run these steps
in this order:
kubectl scale deployment -n ambit-system ambit-controller --replicas=0
kubectl wait --for=delete pod -n ambit-system -l app.kubernetes.io/name=ambit-controller --timeout=120s
kubectl delete agentgatewaypolicy -n ambit-system ambit-access-log
helm rollback ambit <revision> -n ambit-system
The rollback brings the old chart's controller back. The wait in the second command matters: a controller pod that is still stopping writes the policy again, and the rollback fails the same way.
- If the cluster is in audit-only mode, switch to
enforcefirst, and wait until the switch is complete (the banner has gone, andkubectl get configmap -n ambit-system ambit-access-mode -o jsonpath='{.data.mode}'printsenforce). The old chart does not knowaccess.mode, and its controller sets every authorization to enforcing without a warning to your team. - Do not force a rollback that Helm 4 stopped with the field conflict. Helm has already rolled back some objects at
that point, and the failed revision is the latest. Run the three steps above again, and then
helm rollbackagain. - During a rollback there is again a gap without an access-log policy, from the delete until Helm creates the old policy. It lasts seconds.
To the release with personal API keys
- Tokens need an email. Gateway JWTs without a usable
emailclaim are refused from this release. To accept them again, setllm.jwt.requireEmail=falseandmcp.jwt.requireEmail=false. Offboarding then cannot block such tokens before they expire. - A call without a token gets 403, not 401, while personal keys are on (the default). With
apiKeys.enabled=falsethe gateways check tokens strictly again. Update scripts that test for 401. - Kubernetes 1.30 or later is required. The chart refuses to render on older clusters.
- The console restarts one pod at a time. The console Deployment now uses
RollingUpdatewithmaxSurge: 0. The old console stops before the new one starts, so the console is briefly unavailable during an upgrade. LLM requests, MCP requests and key checks keep working during a console upgrade, because the gateways read keys from Secrets. Requests that need a Connection token (SaaS access through the console's token broker) fail until the new console is ready. - Emails are lower-case in budgets and audit records. The gateways now identify a person by their email
with
A-Zlower-cased. Per-person budget counters for an email with capitals start again from zero. Audit records from this release show the lower-case email: search for it in lower case. Older records keep the email as it was sent. - Sessions from before the upgrade cannot create keys. People see "Sign in again to create keys" until they sign out and sign in again.
See api-keys.md for the new feature.