Repository navigation
feat(helm): set tool approval on the muster MCPServer - #264
Conversation
Render spec.approval on the chart's MCPServer from muster.mcpServer.approval, with the "Allow all" preset: rule Allow and every tool of this release named Allow. These are the platform's own management servers, called by the Dev Portal as the signed-in person; agent callers are asked by muster's floors and the governance mode. An installation tightens a tool in its values (Ask or Block).
Helm merges an empty map into the chart's default, so only null renders no spec.approval.
Published Helm chart
|
| Chart | vm-manager |
| Version | 0.29.17-r27740a5ft20261130162044h242ea98 |
| OCI reference | oci://gsoci.azurecr.io/charts/giantswarm/vm-manager:0.29.17-r27740a5ft20261130162044h242ea98 |
| Digest | sha256:b59f1c5a8e760a7bfad80c8924ececa9908fa1b272fe9de3327a8b3ebf427318 |
| Registry | public — gsoci.azurecr.io |
| Git catalog | giantswarm-test-catalog (index) |
Pull this chart
helm pull oci://gsoci.azurecr.io/charts/giantswarm/vm-manager --version 0.29.17-r27740a5ft20261130162044h242ea98Posted by architect-orb · build 5513 · commit 242ea98 · updated in place on every push
Review recordPart of giantswarm/giantswarm#38902 (tool approval, milestone 1). Purpose: this record says what was reviewed on this branch (the chart's per-tool approval defaults for its MCPServer registered with muster: Read this first
Review rounds
What was checked
Findings
Drift test: Lab verificationThis chart was not rendered in the agentlab runs: they used the released component charts (agent-manager is the exception, see its record). Rendering, schema and the per-tool map are covered by the checks above. The governed behaviour for this server (safe list, floors) is a property of the platform chart and muster, which were exercised in the lab; this server itself did not run there. Open itemsFindings still open or partly fixed: none; every finding of this repository is closed. Remaining notes:
Never run:
|
Review supplement for giantswarm/giantswarm#38902Reviewed head: SpecThe platform-management connector intentionally ships explicit Allow entries plus an Allow fallback. Governed safe lists and built-in muster floors remain additional restrictions; destructive Allow entries alone are not a spec violation. Install only after muster's CRD supports spec.approval. This is a scoped contract assessment, not an exhaustive numbered acceptance score. Independent focused specification cross-checks covered the core enforcement/client contracts and platform/manager integration. Declared follow-ups and accepted design changes are not counted as new defects. BlockingNo new blocking code finding established in this pass. Non-blockingNone newly established. SuggestionsNone beyond the existing review follow-ups. Deep verification
Reported checks passed or were skipped; no failed/cancelled check to triage. A skipped job is not evidence that its gate ran. Unverified locally: applicable builds, tests (including race/integration/envtest), vet, formatting/lint/pre-commit, generators, Makefile verification targets, Helm rendering/schema/unit checks, and browser/live-cluster flows. No PR code was executed. GitHub-reported CI provides supporting evidence, not a local reproduction. Recommendation: merge as-is within this review's scope, subject to existing release-order/rollout prerequisites and previously documented open items. Team context: none. |
go.mod: main's dependency versions, go.yaml.in/yaml/v3 kept direct as go mod tidy has it. Drop the non-Linux seccomp stub (seccomp_other.go) and the Linux build tags this branch added: main's sandbox replaced startDenyingIOUring and made the proc package Linux-only, so the stub was dead code.
Review record — merge roundPart of giantswarm/giantswarm#38902. Reviewer: Claude Fable 5.2, independent of the implementing and merging model, read-only, verdicts formed from the code. Full review: Covers the merge of main
Run: |
Part of giantswarm/giantswarm#38902. The review record is the first comment on this PR.
What does this PR do?
muster now decides Allow, Ask or Block for every tool call (giantswarm/muster, linked below). A connector without settings is "not reviewed" and runs unasked. This PR makes VM Manager's chart say it explicitly:
muster.mcpServer.approvalrendersspec.approvalon the musterMCPServerwithrule: Allowand one entry per tool (20 tools, allAllow, the same effect as today). 20 tools, allAllow, ruleAllow.go.mod:go.yaml.in/yaml/v3moves from indirect to direct (the drift test reads the chart's YAML).values.schema.json(ruleand tools:Allow,Ask,Block; at most 512 tools); aruleofBlockhides tools added later until someone sets them.muster.mcpServer.approval: nullclears the default and renders nospec.approval.{}does not: Helm merges an empty map into the default (README says so).Commits:
f5377e2,c6081c7(the value, template, schema, chart tests),7d0952c,5de2701,c58494f(Block rule, README, tests),7c3d461(tip);87eee6d(milestones 2 and 3: the values comment, schema description and README link the tool approval concept page as optional further reading);9197572(chart tests: quote test names that contain a colon so the suite parses);793070e(docs condensed).One commit is unrelated to tool approval and harmless:
fix(proc): build seccomp support on Linux only(7c3d461) adds the missing//go:build linuxtag tointernal/runtime/proc/seccomp.go, sogo test ./internal/api(and with it the drift test) builds on macOS. Linux builds are unchanged.What is the effect of this change to users?
None by itself: every tool stays
Allow. The settings become visible and editable in the portal's connector Tools tab once muster carries tool approval.How does it look like?
Not a visual change. Rendered
MCPServer:Changes from the plan
Where this PR differs from the design in the epic (giantswarm/giantswarm#38902):
rule: Block. The chart value and schema acceptBlockas the rule for tools without their own entry, in addition toAllowandAsk.Any background context you can provide?
MCPServersets its approval explicitly).spec.approval. An older CRD prunes the field (the API server warns) and a later muster upgrade does not re-apply it: after the CRD upgrade runflux reconcile helmrelease <name> -n <ns> --force. Until then muster treats the connector as not reviewed (Allow). muster refuses server tool calls while its served CRD lacks the field.Related pull requests (milestones 1 to 3)
What is needed from the reviewers?
trustedplatform (the PRD says it is).Do the docs need to be updated?
Done: README row for
muster.mcpServer.approvaland the values comment (governed default,Block,nullversus{}).Testing
helm linthelm templatedefault,approval=null,rule=Block,rule=Deny,tools.bogus=maybeBlockrenders; the others refused by the schema, naming the pathhelm/vm-manager/tests/helm unittestnot run (plugin not installed on the reviewers' machine), cases reproduced withhelm templateinternal/api/helm_approval_test.go(c58494f) compares the chart's approval map with the server's registered tool names. It passed in the agentlab re-test onc58494f, cross-compiled for Linux and run in a Linux container (it did not build on macOS before7c3d461). CI runs it.Helm v4.3.2. Not exercised in the first agentlab run (its agent-manager was pinned to 3.4.0 and did not use this chart's defaults). The agentlab re-test (2026-11-25,
lab-tests/m1-retest.md) passed with no blocking defects; it ran this repo's drift test (see above). The milestone 2 and 3 lab runs (2026-11-26,lab-tests/m2-integration.md,m3-integration.md) ran the platform with tool approval per agent and the agent chart 3.x move; they did not exercise this chart's defaults.