Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
778dadf
feat(helm): add the governance value and render muster's governance c…
Rotfuks Nov 25, 2026
daaf080
feat(helm): set explicit tool approval on the connectivity chart's MC…
Rotfuks Nov 25, 2026
41f06d8
feat(helm): bind muster-approval-binder to agent-manager's ServiceAcc…
Rotfuks Nov 25, 2026
7aa7270
test(helm): verify governance, connector admins, the binder and tool …
Rotfuks Nov 25, 2026
b661f0a
docs: describe tool approval and the governance mode
Rotfuks Nov 25, 2026
f63bd4a
docs(skills): teach tool approval in the tools, building-blocks and a…
Rotfuks Nov 25, 2026
43c2ba3
feat(helm): render muster's approval installation and redirect allowlist
Rotfuks Nov 25, 2026
7839308
test(helm): verify approval installation, redirect allowlist and the …
Rotfuks Nov 25, 2026
9270b56
docs(skills): name approval's prerequisites and the derived redirect …
Rotfuks Nov 25, 2026
11d625f
feat(helm): accept Block as the tool approval rule on the connectivit…
Rotfuks Nov 25, 2026
bde1e10
feat(helm): render muster's governed servers with safe lists and bind…
Rotfuks Nov 25, 2026
e083c76
test(helm): cover governed servers, their coverage, the binder and po…
Rotfuks Nov 25, 2026
5d6e6f3
docs(skills): describe the Block rule, the governed default, retry ov…
Rotfuks Nov 25, 2026
fbbc912
docs: bind tool approvals to the calling client, not the MCP session
Rotfuks Nov 25, 2026
7b252d9
fix(helm): refuse a backstage.publicPort above 65535
Rotfuks Nov 25, 2026
694b80d
test(helm): refuse safe-list entries that look like writes unless ann…
Rotfuks Nov 25, 2026
3b68924
docs(skills): describe agent-manager's split update tools and set_age…
Rotfuks Nov 26, 2026
0d059ee
feat(helm): turn on agent-manager's tool approval from the floors tha…
Rotfuks Nov 26, 2026
390e795
feat(helm): call muster's session bindings API on its own port, admit…
Rotfuks Nov 26, 2026
51edf53
feat(helm): move the agent chart line to 3.x only with agent-manager'…
Rotfuks Nov 26, 2026
ee77498
docs: upgrade notes and skill for agent chart 3.0's default: Ask
Rotfuks Nov 26, 2026
0a5dd8f
chore(helm): regenerate schema for tool-approval values
Rotfuks Nov 26, 2026
f9ebf7a
chore(helm): mirror tool-approval defaults in the meta chart, regener…
Rotfuks Nov 26, 2026
1d75eb4
test(helm): check the unknown governedServers key in the schema and t…
Rotfuks Nov 26, 2026
5ad19d1
fix(helm): keep the tool approval floors unset until their releases e…
Rotfuks Nov 26, 2026
27c0db1
feat(helm): let the migrate run read organization namespaces
Rotfuks Nov 26, 2026
e5bee96
docs: upgrade notes for unset floors, mandatory migrate check and run…
Rotfuks Nov 26, 2026
56c776a
fix(helm): tighten the agent chart line guard, scope the migrate read…
Rotfuks Nov 26, 2026
ffeb04c
docs: running sessions need approval prerequisites once tool approval…
Rotfuks Nov 26, 2026
e3441ce
feat(helm): let agents call the Platform Manager's reads unasked on g…
Rotfuks Nov 26, 2026
624f1b8
feat(helm): add a migrate preflight that dry-runs the 3.x path before…
Rotfuks Nov 26, 2026
8e2f0b4
docs: run the mandatory 3.x dry run through the migrate preflight, an…
Rotfuks Nov 26, 2026
e48616a
feat(helm): make governance a map with roleFloors and drop installati…
Rotfuks Nov 26, 2026
b39fe67
docs: describe governance as a map, the editor placeholders and how a…
Rotfuks Nov 26, 2026
379a599
fix(helm): default the muster editors to subjects no identity provide…
Rotfuks Nov 26, 2026
0d6218b
docs: neutral governed-server example and the fail-closed editor defa…
Rotfuks Nov 26, 2026
2739b10
fix(helm): read a next-major pre-release upper bound as written for H…
Rotfuks Nov 26, 2026
7749f52
fix(helm): refuse floors that need the governance wiring while its fl…
Rotfuks Nov 26, 2026
86671d6
fix(helm): let migrate rewrite organization releases on the 3.x line …
Rotfuks Nov 26, 2026
775a52a
docs(skills): organizations wait at chart 2.x until migrate marks the…
Rotfuks Nov 26, 2026
be00ba2
fix(helm): grant migrate's organization writes only during the cut-ov…
Rotfuks Nov 26, 2026
4098230
fix(connectivity): accept only a boolean true as migration cutover
Rotfuks Nov 26, 2026
03a17f4
fix(helm): let agent-manager read the default agent's release for its…
Rotfuks Nov 26, 2026
d6423ab
fix(helm): pass the default agent's approval values to agent-manager …
Rotfuks Nov 26, 2026
5d705d1
fix(approval): tell agent-manager which Agent the default agent's rel…
Rotfuks Nov 26, 2026
b430dbf
feat(approval): sign the portal in with its own OAuth client and trus…
Rotfuks Nov 26, 2026
be57118
feat(approval): trust the portal's own client for muster's inline app…
Rotfuks Nov 26, 2026
c6d0c77
fix(approval): bind the portal's workload for muster's inline decisio…
Rotfuks Nov 26, 2026
018d14d
fix(approval): list the portal as muster's trusted client only from t…
Rotfuks Nov 26, 2026
fcd8f8c
docs: condense tool approval docs
Rotfuks Nov 26, 2026
9f88c41
Merge remote-tracking branch 'origin/main' into tool-approval
Rotfuks Nov 27, 2026
d2ff7f7
docs: move tool approval docs into the repository
Rotfuks Nov 27, 2026
9493705
fix(agent-platform): refuse agent chart ranges that admit a major pas…
Rotfuks Nov 28, 2026
7167a7f
fix(muster): fail the render for explicit trusted client lists below …
Rotfuks Nov 28, 2026
fa31efe
Merge remote-tracking branch 'origin/main' into tool-approval
Rotfuks Nov 28, 2026
e13abf4
fix(muster): bind only ServiceAccounts as approval deciders
Rotfuks Nov 30, 2026
f4c0b3f
fix(backstage): refuse a second projection of the portal's workload t…
Rotfuks Nov 30, 2026
2b5ef10
Merge remote-tracking branch 'origin/main' into tool-approval
Rotfuks Nov 30, 2026
31f5290
feat: set the tool approval release floors and move the component ran…
Rotfuks Nov 30, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions Makefile.custom.mk
Original file line number Diff line number Diff line change
Expand Up @@ -1478,6 +1478,17 @@ verify-mcp-kubernetes-registration: ## Assert the bundled mcp-kubernetes registr
@python3 tests/verify-mcp-kubernetes-registration.py $(CHART_DIR) $(CONNECTIVITY_DIR)
@echo "mcp-kubernetes registration shapes verified."

.PHONY: verify-agent-chart-line
verify-agent-chart-line: ## Assert that agent-manager.agentChart.semver moves to agent chart 3.x only together with agent-manager at agent-platform.agentManager.agentChartV3Floor (its migrate rewrites muster.requireApproval to default: Ask), muster at agent-platform.muster.agentApprovalFloor (enforces it), agent-manager's tool approval on and the default agent's range on the same major; a range is read as agent-manager's migrate reads it (spanning majors or only pre-releases fails, ~3.2 and bounded forms count as 3.x); the placeholder floors are unset (every 3.x line refused) or above the last release without the feature, and the gated paths run on a chart copy with test floors; the 3.x line reaches agent-manager, the migrate run's connectivity release and the default agent's source; the migrate run may list namespaces and, with organizations on, read releases, sources and Agents cluster-wide, and only on the 3.x line itself (not a preflight) update HelmReleases and write its report ConfigMap, held by agent-platform-organization-migrate-scope; every alternative of a || range and every version a range names count (3.0.1 || 2.6.0 spans two majors). Stdlib only. HELM selects the binary.
@echo "====> $@ ($(CHART_DIR), $(CONNECTIVITY_DIR))"
@HELM="$(HELM)" HELM_LEGACY="$(if $(filter-out $(HELM_PINNED_VERSION)+%,$(HELM_VERSION)),$(wildcard $(HELM_PINNED)))" python3 tests/verify-agent-chart-line.py $(CHART_DIR) $(CONNECTIVITY_DIR)

.PHONY: verify-tool-approval
verify-tool-approval: ## Assert the platform side of Governing tool calls: the top-level governance and governedServers values render muster's governance configuration into the muster release (muster.governance: mode, governedServers {server, role, safe} per shipped MCPServer, keyed namespace/name outside muster's namespace, an own entry standing) from the muster floor agent-platform.muster.governanceFloor, none below it, governed below it, the earlier servers shape, unknown keys and conflicting or unknown modes failing; coverage: every shipped MCPServer source (meta releases carrying muster.mcpServer, the connectivity chart's MCPServers, agent-platform-mcps' families, and the component charts beside this checkout, COMPONENT_CHECKOUTS) is governed or in governanceExempt, no floor is safe, every safe entry names a tool of its server, the two kubernetes maps agree; the redirect allowlist (portal /sessions with backstage.publicPort, klaus-gateway's return with its port, invalid ports and URLs failing); the connector-admin role binds the Giant Swarm admin groups plus tenants.platformTeam; muster-approval-binder's subjects are agent-manager's ServiceAccount only (muster.rbac.approvalBinder.subjects), none from the connectivity chart; agent-manager's muster.toolApproval.enabled on from its floor and muster's agent approval floor, off below muster's, absent below its own, an own value standing; the connectivity MCPServers carry explicit approval settings (a Block rule renders, overrides reach spec.approval also from the meta chart, null renders none, invalid values fail naming the key). Stdlib only. HELM selects the binary.
@echo "====> $@ ($(CHART_DIR), $(CONNECTIVITY_DIR))"
@HELM="$(HELM)" python3 tests/verify-tool-approval.py $(CHART_DIR) $(CONNECTIVITY_DIR)
@echo "tool approval verified."

.PHONY: verify-self
verify-self: ## Assert self-management's shapes: engine off renders nothing of it; engine on renders the self OCIRepository + suspended HelmRelease, the -6/-5/0 hooks, the identity and the admission policy (CLI day-0 only); engine on with self off (lab, hand-back) renders the -6/-5 hooks at pre-upgrade too and nothing else; the guards and knobs. HELM selects the binary.
@echo "====> $@ ($(CHART_DIR))"
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ Then point any MCP client at `https://muster.<your-domain>/mcp`. Its traffic cro
| [Operator reference](docs/reference.md) | Every component and value: GitOps engine, self-management, serving and runtime slices, network policies, observability, CRD lifecycle |
| [Authentication](docs/authentication.md) | The request path, OAuth discovery, token forwarding and exchange, edge JWT validation |
| [Toolset presets](docs/toolset-presets.md) | Choosing which tools an agent gets |
| [Tool approval](docs/tool-approval.md) | Allow, Ask or Block per connector and tool, the governance mode and who sets what ([chart values](helm/agent-platform/README.md#tool-approval-and-the-governance-mode)) |
| [Serving presets](docs/serving-presets.md) | Adding and benchmarking a model recipe |
| [ChatGPT login](docs/chatgpt-login.md) | Running codex on each person's own ChatGPT subscription |
| [Agent Substrate security](docs/substrate-security.md) | What the agent runtime changes on the cluster, and what protects it |
Expand Down
55 changes: 55 additions & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,61 @@ Every component ships its own CRDs and upgrades them with its release; there is

A CRD version change that needs more than an apply (a stored version dropped, as with kagent's `v1alpha2`) has its own entry below, with the hook that does it.

## \<current\> → \<next\> (agent chart 3.0: `muster.requireApproval` becomes `default: Ask`)

Agent chart 3.0 removes `muster.requireApproval` and the default of `modelConfig.name`. `default: Ask` replaces `requireApproval: true`: muster asks a person before every tool call the agent makes through it, from every client. `agent-manager.agentChart.semver` moves the agents of the whole installation: agent-manager composes new agents on it, its migrate run (the connectivity release's start hook) rewrites the existing releases, and the agent-platform-operator moves each organization's chart source once migrate marks that organization ready.

The render allows the 3.x line only together with `make verify-agent-chart-line`'s conditions: agent-manager at `agent-platform.agentManager.agentChartV3Floor`, muster at `agent-platform.muster.agentApprovalFloor`, agent-manager's tool approval on, and the default agent's range on the same major. **Both floors are unset in this chart** until the releases carrying tool approval exist, so every 3.x range is refused for now; the platform release that pins those versions sets them. The other tool approval floors (`agentManager.toolApprovalFloor`, `muster.governanceFloor`, `muster.sessionBindingsPortFloor`) behave the same: unset, what they gate stays off and `governance: governed` fails. A range admitting two majors or only pre-releases fails.

What migrate does:

| Case | Result |
|------|--------|
| Release owned by agent-manager | Rewritten: `requireApproval: true` becomes `default: Ask`, the key is dropped, an unset `modelConfig.name` becomes `default-model-config` |
| Release with `spec.valuesFrom` | `failed`: move the settings into `spec.values` |
| Pinned, git-owned or platform release | `pending` with a diff to apply |
| Organization namespace | Same rules; GitOps-owned releases get a diff. Annotates the namespace `agent-platform.giantswarm.io/agent-chart-ready-major: "3"` once every release is on 3.x values |

Any `failed` or `pending` release keeps the namespace in the expand phase. The operator moves an organization's source only on that annotation; until then the organization is `Ready=False` (`ChartSourceHeld`) and its releases stay on 2.x, still asking. A release created on the 2.x source after the run is not covered: the operator holds the source and names it until migrate runs again.

### Operator action

- **Before the upgrade (mandatory), with the line still on 2.x:** set `agentManager.migration.preflightSemver: ">=3.0.0 <4.0.0"`, run `kubectl -n <kagent namespace> create job --from=cronjob/<release>-agent-manager-migrate-preflight preflight-1` and read `kubectl -n <kagent namespace> logs job/preflight-1` (a dry run writes nothing). Fix every release it lists that the run will not write (`failed`, and `diff` ones you own in git), organization namespaces included, then unset `preflightSemver`. Also list releases with `valuesFrom` or without the 3.x settings: `kubectl get helmreleases -A -o json | jq -r '.items[] | select(.spec.values.muster.requireApproval != null or .spec.values.modelConfig.name == null or (.spec.valuesFrom // [] | length > 0)) | "\(.metadata.namespace)/\(.metadata.name)"'`.
- **The repair is always `muster.requireApproval: true` to `default: Ask`**, never just deleting the key (that turns asks off); drop `false` and `null`; set `modelConfig.name` where unset. In git, apply it together with moving that release's chart source to 3.x.
- Once the floors are set, move `agent-manager.agentChart.semver` and `components.default-agent.versionRange` to `>=3.0.0 <4.0.0` together with `components.agent-manager.versionRange` and `components.muster.versionRange` at or above the floors. With organizations on, set `agentManager.migration.cutover: true` in the same change (a boolean; without it the organizations' sources stay held).
- Tool approval's prerequisites must hold (muster's OAuth server with Dex sign-in, Valkey; see the next entry): without them muster refuses every call that asks, so a migrated agent cannot call its tools. It never runs them unasked.
- Running Sessions: with agent-manager at `agentManager.toolApprovalFloor`, it binds `default: Ask` for a Session of an agent still on `requireApproval: true` already on 2.x. That agent needs the prerequisites from then on and is asked twice (kagent and muster) until migrated. Sessions from an older agent-manager carry no settings and muster applies the agent's `X-Muster-Tool-Approval: default=Ask`.
- Read the report: `kubectl -n <kagent namespace> get configmap agent-manager-migrate-report -o jsonpath='{.data.report\.yaml}'`. A release with `requireApproval: true` beside tool approval settings is `failed`: set its settings by hand. The run needs list on namespaces and, in organization namespaces, read access and update on HelmReleases and its report ConfigMap (granted only on the 3.x line with `cutover`, scoped by the ValidatingAdmissionPolicy `agent-platform-organization-migrate-scope`); without them it fails before writing.
- **Per organization:** `kubectl get agentplatformorganizations -A -o json | jq -r '.items[] | select(any(.status.conditions[]?; .reason == "ChartSourceHeld")) | "\(.metadata.namespace)/\(.metadata.name)"'` lists those still on 2.x; the report in the organization's namespace names the releases that hold it. Apply each diff in the organization's repository, then run migrate again: `kubectl -n <kagent namespace> create job --from=cronjob/<release>-agent-manager-migrate migrate-2` (also after a failed write, and when the condition names releases created after the run). Once none is held, unset `cutover`.

## \<current\> → \<next\> (tool approval and the governance mode)

muster decides Allow, Ask or Block for every tool call; the chart renders its governance configuration, the approval page's installation name, the redirect allowlist and the approval binder ([chart README](helm/agent-platform/README.md#tool-approval-and-the-governance-mode)). None of it reaches a muster below `agent-platform.muster.governanceFloor`.

### Operator action

- Move `components.muster.versionRange` to the muster release carrying tool approval. `governance.mode: governed` below it fails the render.
- The floors are muster `5.67.0-rc.61` and agent-manager `4.1.0-rc.1`. A pinned BOM moves muster, agent-manager and the MCPServer components to the pins in `examples/customer-bom.yaml`.
- After muster's CRD upgrade, force a reconcile of the releases that render MCPServers (connectivity, agent-platform-mcps, the managers) if any was applied while the old CRD was served (its `spec.approval` was pruned): `flux reconcile helmrelease <name> -n <ns> --force`. Until then muster refuses every server tool. Check with `kubectl get mcpservers -A -o custom-columns=NAME:.metadata.name,RULE:.spec.approval.rule`.
- **Editor defaults changed.** `muster.rbac.mcpServerEditor.subjects` (connector admins) and `muster.rbac.workflowEditor.subjects` default to a ServiceAccount nobody can authenticate as (`kube-system/agent-platform-unset-connector-admins`, `...-workflow-editors`); before, they named two fixed admin groups. Set both to your admin groups (with the OIDC groups prefix); `tenants.platformTeam` is still appended. Until then only cluster admins register servers, author workflows or change tool approval. Keep the lists non-empty: muster's chart fails the upgrade with an empty list while its old `system:authenticated` binding exists (`muster.rbac.mcpServerEditor.allowRemovingBinding: true` drops it). `tenants.platform.editors` keeps its earlier default groups: replace them too.
- **`governance` is a map.** Write `governance.mode: governed` where you wrote `governance: governed`; a string fails the render.
- **No server outside the platform's components is governed by default.** Own servers go in `governedServers` with `governance.roleFloors` (set below the muster governance floor, the render fails):

```yaml
governance:
roleFloors:
exampleManager: [approve_change, merge_change]
governedServers:
example-manager:
role: exampleManager
safe: [get_info, list_changes]
```
- Replace an own `muster.muster.governance.servers.<role>` with `governedServers` entries (the earlier shape fails the render).
- An edge not on 443: set `backstage.publicPort` and remove a hand-written portal entry from `muster.muster.oauth.mcpClient.postLoginRedirectAllowlist`. The allowlist reaches muster only with `muster.muster.oauth.mcpClient.enabled`.
- An agent-manager ServiceAccount the chart does not create (`agent-manager.serviceAccount.create: false`) needs `agent-manager.serviceAccount.name`.
- The connectivity release no longer renders `agent-platform:muster-approval-binder`; the muster release binds `muster-approval-binder` in muster's namespace instead.
- Clients (portal, klaus-gateway, kagent) retry an approved call as the same client of the same person; another client asks anew.

## \<current\> → \<next\> (vm-manager 0.29: guests run only signed code, pods only from signed layers)

`components.vm-manager.versionRange` selects `>=0.29.0 <0.30.0` (the component is off by default). The chart's values are unchanged since 0.27. From 0.28.0 the guest image runs only code from its own signed dm-verity root and sysexts under IPE (giantswarm/vm-manager#266); vm-manager writes the image certificate the guest image artifact carries into each VM's UEFI db, so nothing is configured for it. From 0.29.0 a Kubernetes node runs pods only from container layers whose dm-verity root hash is signed with a trusted key (giantswarm/vm-manager#286). `create_vm` takes two optional arguments: `layer_certificates`, the installation's PEM certificates that layers may be signed with, and `cni_version`, the CNI sysext (default: the newest Cilium the image offers). Release guest images enroll no Giant Swarm layer certificate yet (giantswarm/architect-orb#1084), so a release node trusts only the certificates passed in `layer_certificates`.
Expand Down
17 changes: 17 additions & 0 deletions docs/authentication.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,23 @@ muster aggregates many MCP servers behind `/mcp`. Each server entry in `agent-pl

muster signs no tokens of its own: every downstream server validates against Dex. A kagent agent acts as the person who started its Session: agent-manager binds the Session's Actor to that person at muster, and the egress gateway puts the Actor's JWT on every call to muster, which serves it as the bound person. The runtime never holds or forwards the person's token: the Harness sets no `KAGENT_PROPAGATE_TOKEN`, so no MCP server receives it, and muster refuses a Session nobody bound. model-manager, agent-manager, cluster-manager and mcp-kubernetes receive the person's token with the audience `dex-k8s-authenticator` and act on the cluster with that person's RBAC (install.md, [The identity provider](install.md#the-identity-provider)).

### The portal's own client and sign-in handoff

By default the portal signs in with the platform's shared client (`global.identity.clientId`). `backstage.oidcClientId` gives it a client of its own at the same issuer:

- The identity provider registers it with the portal's redirect URI only (`https://<portal>/api/auth/oidc-agent-platform/handler/frame`); its secret goes into `global.identity.existingSecret` under `portal-dex-client-secret`.
- The portal also requests the platform client's audience (`audience:server:client_id:<global.identity.clientId>`, added to `backstage.extraScopes`), so every component that trusts the platform client accepts its tokens unchanged; `azp` names the portal's client. On Dex, the platform client and `dex-k8s-authenticator` list the portal's client under `trustedPeers`.
- muster keys a forwarded token's session by its client too: a person's connector sign-ins through the shared client are not the portal's, except subject-scoped ones (`spec.auth.grantScope: subject`).

With a dedicated client and `backstage.signInHandoff` on (default), the chart lists that client, and only it, in muster's `approval.trustedClients` (from `agent-platform.muster.trustedClientsFloor`; below it none). The portal then shows a tool approval inline and posts the decision to muster (`POST /approvals/{id}/decision`) with the person's token and the digest of what was shown, and *Open* on a connector sign-in prompt gets a one-time ticket from `POST /handoff-tickets`. A person's portal token is not held by the portal backend alone (the browser, `forwardToken` servers and runtimes hold it too), so muster takes it on these two endpoints only together with the backend's own workload identity: its projected ServiceAccount token (audience `muster`, in `X-Muster-Approval-Client`, checked by `TokenReview` and a `LocalSubjectAccessReview` for `decide` on `toolapprovals.muster.giantswarm.io`). The chart binds muster's Role `muster-approval-decider` to the portal's ServiceAccount (`muster.rbac.approvalDecider.subjects`; an own list stands) and projects the token at `/var/run/secrets/muster.giantswarm.io/serviceaccount/token`. Either token alone decides nothing and mints no ticket. A portal deployed as its own release (`components.backstage` off) gets neither: name its ServiceAccount in `muster.rbac.approvalDecider.subjects` (ServiceAccounts only, any other kind fails the render) and its client in `muster.muster.approval.trustedClients`, and project the token into its pod yourself.

- Trade-off: the portal backend can approve a person's pending requests without muster's browser sign-in, on the person's click only.
- muster refuses tokens naming an acting party, an agent's credential, another client, another workload or another person. A ticketed connector sign-in still asks the browser on muster's page first.
- Only the portal's dedicated client may be listed: the render fails when `muster.muster.approval.trustedClients` or `handoffClients` names any other id (the shared client, `dex-k8s-authenticator`, the kagent UI's, klaus-gateway's or a CLI's).
- `backstage.signInHandoff: false` keeps every decision and sign-in on muster's own pages.

`agentlab portal dev` has no projected token: agentlab mints a lab-only one for the lab portal's ServiceAccount (audience `muster`) on every start and points `muster.workloadTokenFile` at it. Never copy an installation's portal token to a laptop.

## 4. Edge JWT validation and JWKS

agentgateway verifies the JWT itself (`Strict`, against `global.identity.issuerUrl`) on three routes: the kagent controller route ([5](#5-the-kagent-controller-route)), the agent-manager route (`agentManager.route` with its `jwtAuthentication.enabled`, both off by default) and the models Gateway ([6](#6-the-models-gateway)). Each takes its key set from its own `jwtAuthentication.jwks` (`host`, `port`, `path`, `tls`). The agentgateway controller fetches it and pushes the keys to the data plane. A failed fetch refuses every caller with `401 token uses the unknown key`.
Expand Down
Loading
Loading