Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
9749dcb
feat(agent-platform): make governance a typed input that survives a r…
Rotfuks Nov 26, 2026
f87631d
feat(plan): read a plan's governance change old to new and name what …
Rotfuks Nov 26, 2026
6cdb0b4
test: name the governance tests' repeated literals for goconst
Rotfuks Nov 26, 2026
888334b
feat(tools): have a second person approve every governance change, on…
Rotfuks Nov 26, 2026
c655359
fix(agent-platform): refuse governance overrides that drop floors or …
Rotfuks Nov 26, 2026
6ec0eb0
fix(plan): compare the effective governance, with muster's own and a …
Rotfuks Nov 26, 2026
ea37b12
fix(tools): compare governance with the last reviewed action and chec…
Rotfuks Nov 26, 2026
ed3196f
docs: describe the governance baseline, the reviewers' team and the s…
Rotfuks Nov 26, 2026
1f2f326
test(e2e): assert the governance audit of a wave and a disable, and t…
Rotfuks Nov 26, 2026
9c83a93
feat(agent-platform): render Giant Swarm's own governance parts as fi…
Rotfuks Nov 26, 2026
3eb427a
docs: the Giant Swarm governance flow lives in the Platform Manager
Rotfuks Nov 26, 2026
2340c45
feat(agent-platform): render the Giant Swarm admin groups as muster's…
Rotfuks Nov 26, 2026
111f8c2
fix(agent-platform): key the Platform Manager by its namespace and se…
Rotfuks Nov 26, 2026
fae585b
docs: the release order and the hand upgrade of Giant Swarm installat…
Rotfuks Nov 26, 2026
723dfda
test(e2e): expect the platform's governance parts on record as a chan…
Rotfuks Nov 26, 2026
9fc3938
fix(tools): keep the governance baseline through unchanged values and…
Rotfuks Nov 26, 2026
79d3de1
docs: the governance baseline skips actions without a snapshot and se…
Rotfuks Nov 26, 2026
46e4ff8
fix(plan): count who may loosen approvals as governance and mark more…
Rotfuks Nov 26, 2026
1d34eeb
style(plan): align the governance constants as gofmt does
Rotfuks Nov 26, 2026
aab6f08
feat(tools): keep a reviewed-governance record per installation and c…
Rotfuks Nov 26, 2026
7cf2c12
docs: describe the reviewed-governance record
Rotfuks Nov 26, 2026
aba44eb
fix(tools): compare-and-swap the reviewed-governance record and show …
Rotfuks Nov 26, 2026
a1ac13f
docs: the record's compare-and-swap, admission policy and disabled mark
Rotfuks Nov 26, 2026
ffe990f
docs: condense tool approval docs
Rotfuks Nov 26, 2026
2defe60
Merge remote-tracking branch 'origin/main' into tool-approval
Rotfuks Nov 27, 2026
d6c5eb4
feat(agent-platform): wire the portal's workload identity for muster'…
Rotfuks Nov 30, 2026
f8aa628
feat(agent-platform): make the portal's inline approval one input tha…
Rotfuks Nov 30, 2026
c33c1bd
Merge remote-tracking branch 'origin/main' into tool-approval
Rotfuks Nov 30, 2026
081b39d
test(e2e): read back the inline approval input with the other switches
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
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ this order, writing nothing before the gate:
and each resulting pull request before the next opens. Approval and merge wait until creation finishes.
The Action stays in *pending approval*: the approval, the merge
and the rollout follow. An action on Giant Swarm's test installations alone — the hub's customer's, not the
hub: the wave's first stage — needs no Team review: the approval is recorded *not required*, the Action reads *ready to merge*, the actor merges
hub: the wave's first stage — needs no Team review unless it changes the platform's governance, which an
active member of `approvals.governanceTeam` other than the actor approves ([docs/governance.md](docs/governance.md)): the approval is recorded *not required*, the Action reads *ready to merge*, the actor merges
with `merge_action` once green, and the merge is told to the team's standup channel — who, what, why and
what changed (`approvals.standupChannel`; unset, such a commit is refused). The hub and every customer
installation keep the review. A failure on the way moves the Action to *failed* and closes the pull requests
Expand All @@ -172,7 +173,8 @@ Slack alone: who asks to enable or reconcile which capability on which installat
account engineer the catalog records), the reason quoted, and *what changes* — a line per component from
the comparison (`spec.changes`, `plan.Summary`): a component created whole reads *new*, versions read old →
new, list entries added and removed, a kustomization's patches by their target with the JSON patch
operations they add, drop or change (op and path), values keys by path without their values, a Secret's keys
operations they add, drop or change (op and path), values keys by path without their values — except the
platform's governance, which reads first with its values old → new and what loosens it —, a Secret's keys
added and removed, the credentials that rotate (the ones asked for marked *on request*) — with the pull requests as
links; a wave whose installations change alike reads once, else per installation. Once a member approves or
denies, the gateway shortens the message in the channel to one line — the outcome, the decider and the
Expand Down
5 changes: 4 additions & 1 deletion definitions/agent-platform/README.md

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions definitions/agent-platform/features.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ features:
- {id: agent-manager-route, kind: configmap, key: "agentManager.route (agent-manager's REST API on the gateway behind its JWT policy, for the credential form's backend; derived from agent-manager.credentials.uiURL)"}
- {id: live-agent-manager-route-protected, kind: live, key: "https://agentgateway.<domain>/agent-manager/api/v1/info answered 401 by the route's JWT policy, where agent-manager.credentials.uiURL is set"}
- {id: platform-tenant-bindings, kind: configmap, key: "tenants / musterMcpServerViewers (who the platform tenant binds in the kagent namespace, and who lists muster's MCP servers)"}
- {id: governance, kind: configmap, key: "governance / governedServers (the platform's governance mode, Giant Swarm's role floors and the servers muster governs with their safe lists; changed only through an Action a second person approves)"}
- {id: connector-admins, kind: configmap, key: "muster.rbac.mcpServerEditor / muster.rbac.workflowEditor (Giant Swarm's connector admins and workflow editors: the admin groups bound to muster's mcpserver-editor and workflow-editor Roles)"}
- {id: own-mcp-servers, kind: configmap, key: "agent-platform-mcps.mcpServers[http://<name>.svc:8080/mcp] / agent-platform-mcps.mcpServers[<scheme>://mcp-<name>.<domain>/mcp] (the installation's own: at the in-cluster Service, or on its own base domain)"}
- {id: own-mcp-kubernetes-url, kind: configmap, key: "agent-platform-mcps.mcpServers[http://mcp-kubernetes.mcp-kubernetes.svc:8080/mcp].url"}
- {id: muster-private-exchange, kind: configmap, key: muster.muster.oauth.mcpClient.tokenExchange.allowPrivateIP}
Expand Down Expand Up @@ -135,4 +137,6 @@ features:
- {id: portal-auth-provider, kind: backstage, key: agent-platform/app-config.yaml gs.authProvider / auth.providers}
- {id: portal-database-client, kind: backstage, key: agent-platform/app-config.yaml backend.database.client}
- {id: portal-extra-app-config, kind: backstage, key: agent-platform/values.yaml backstage.extraAppConfig (the Component's app-config file and its checksum)}
- {id: portal-workload-token, kind: backstage, key: "agent-platform/values.yaml backstage.musterWorkloadToken (the portal's projected token for muster, named in muster.workloadTokenFile)"}
- {id: portal-inline-approval, kind: configmap, key: "muster.rbac.approvalDecider / muster.muster.approval / backstage.oidcClientId (the portal's ServiceAccount bound to muster-approval-decider, and its Dex client as muster's trusted client)"}
- {id: portal-helmrelease-values-from, kind: backstage, key: agent-platform/kustomization.yaml patches (the HelmRelease valuesFrom patch)}
82 changes: 82 additions & 0 deletions definitions/agent-platform/governance.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# The governance the agent-platform definition writes against (Governing tool
# calls, giantswarm/giantswarm#38902), copied from the releases that render and
# read it and held to them by definitions' TestGovernanceMatchesMusterAndTheChart
# (which reads sibling checkouts of muster and agent-platform where present).
#
# muster: the roles muster builds in and the floors of each (muster
# internal/api/governance.go, GovernanceRoles and roleFloors). A floor asks agents
# in both modes; muster refuses to start on one listed as safe on a server of its
# role, and the definition refuses a floor of any role on any safe list.
muster:
roles: [agentManager, connectorManager, sessionManager, modelManager, clusterManager, vmManager, workspaceManager, toolchainManager, skillManager, infrastructure]
floors:
agentManager: [set_agent_approval, set_organization_connector, add_organization_member, set_organization_model, set_organization_egress_policy, replace_organization_credential]
connectorManager: [mcpserver_create, mcpserver_connect, mcpserver_set_approval]
toolchainManager: [approve_source]
modelManager: [add_backend]
# platform: Giant Swarm's own parts of the governance (decision #92: the open-source
# charts and muster carry none), which the definition renders on every installation
# whose meta chart takes the governance, fixed, never an input and never loosened by
# one: muster's role floors of the Platform Manager (the chart's governance.roleFloors,
# a union with muster's built-ins), the Platform Manager as a governed server with
# its safe list (its reads; docs/governance.md), and the connector admins, the Giant
# Swarm admin groups bound to muster's mcpserver-editor Role (the chart's
# muster.rbac.mcpServerEditor.subjects), and the workflow editors, the same groups
# bound to muster's workflow-editor Role (muster.rbac.workflowEditor.subjects; the
# meta chart appends tenants.platformTeam to both).
platform:
roleFloors:
platformManager: [approve_action, merge_action]
# The Platform Manager's MCPServer is giantswarm-platform-manager in its release
# namespace, giantswarm-platform-manager, outside muster's (agent-platform): muster
# keys it namespace/name. A bare name would match no server.
governedServers:
giantswarm-platform-manager/giantswarm-platform-manager:
role: platformManager
safe: [get_info, list_installations, list_actions, get_action, verify_capability]
connectorAdmins:
- apiGroup: rbac.authorization.k8s.io
kind: Group
name: giantswarm-ad:giantswarm-admins
- apiGroup: rbac.authorization.k8s.io
kind: Group
name: giantswarm-github:giantswarm:giantswarm-admins
workflowEditors:
- apiGroup: rbac.authorization.k8s.io
kind: Group
name: giantswarm-ad:giantswarm-admins
- apiGroup: rbac.authorization.k8s.io
kind: Group
name: giantswarm-github:giantswarm:giantswarm-admins
# chart: the meta chart's own governedServers by source (agent-platform
# helm/agent-platform/values.yaml, top-level governedServers). A source's role is
# what the server is: an override may not change it. The plan diffs an override
# against these entries, so a first override reads old -> new.
chart:
agent-manager:
role: agentManager
safe: [get_info, list_agents, get_agent, get_agent_status, validate_agent, list_model_configs, list_egress_policies, list_skills, list_sessions, get_session, get_session_turn, toolchain_users, list_organizations, get_organization, list_organization_members, list_organization_connectors]
kagent:
role: sessionManager
safe: [list_sessions, list_session_checkpoints, list_sandbox_templates, list_sandboxes, get_sandbox, get_sandbox_process, read_sandbox_outputs, read_sandbox_file]
model-manager:
role: modelManager
safe: [get_info, get_backend, list_backends, list_models, get_model, list_loaded_models, list_presets, search_models, check_fit, list_nodes, list_jobs, get_job]
cluster-manager:
role: clusterManager
safe: [get_info, list_clusters, list_releases, list_node_pools]
vm-manager:
role: vmManager
safe: [get_info, get_host, list_images, get_image, list_networks, get_network, list_vms, get_vm, get_vm_metrics, get_vm_attestation]
toolchain-manager:
role: toolchainManager
safe: [list_sources, list_toolchains, describe_toolchain, toolchain_build_status, search_packages]
workspace-manager:
role: workspaceManager
safe: [list_providers, list_owners, list_workspaces, get_workspace, list_repositories, preview_workspace]
skill-manager:
role: skillManager
safe: [list_skill_sources, list_skills, resolve_skills, get_skill, get_skill_file]
mcp-kubernetes:
role: infrastructure
safe: [logs, list_port_forward_sessions, context_list, context_get_current, can_i, api_resources, cluster_health, capi_list_clusters, capi_get_cluster, capi_resolve_cluster, capi_cluster_health, get, list, describe]
Loading
Loading