Skip to content

fix(agent-platform): restart the skill-manager on a rotation of muster's credentials - #929

Merged
fiunchinho merged 2 commits into
mainfrom
skill-manager-muster-consumer
Nov 12, 2026
Merged

fiunchinho merged 2 commits into
mainfrom
skill-manager-muster-consumer

Conversation

@fiunchinho

Copy link
Copy Markdown
Member

Closes #916

Problem

From agent-platform 4.179.0, the meta chart runs the skill-manager beside the agent-manager. The skill-manager's pods read the platform client's secret from muster's credentials Secret (muster-oauth-credentials, through global.identity.existingSecret) once, at start. musterConsumers did not list it. A rotation of muster's credentials therefore restarted every other reader, but not the skill-manager, and it stayed on the old secret until someone restarted it by hand.

render-consumption still pinned agent-platform 4.178.0, so CI never rendered the skill-manager or the inputs of #821 against a chart that has them.

Change

  • musterConsumers (render/agentplatform/render.go) lists the skill-manager, as it lists the agent-, cluster- and model-manager. The skill-manager's HelmRelease reads the credentials revision onto podAnnotations.muster-credentials-revision, and the runtime feature probes Deployment skill-manager Available in agent-platform.
  • The consumer runs where the meta chart runs the skill-manager ((*Input).skillManager): the agent-manager runs, on the 4 line, with no versions.chart hold below 4.179.0-rc.9 (reachesSkillManagerChart, the gate of the feat(agent-platform): default agent and skill-manager inputs #821 inputs). An installation on the 3 line, without the agent-manager, or with a hold below rc.9 gets neither the wiring nor the probe.
  • migrations.yaml (M44) plans the new key, and features.yaml names it. The next dry run therefore shows the key as a planned addition, not as drift.
  • render-consumption pins:
    • agent-platform and agent-platform-connectivity: 4.179.2, the newest stable release;
    • agent-platform-operator: 0.3.1 (the 4.179 range is >=0.3.0 <0.4.0);
    • skill-manager: 0.1.5, a new pin. Renovate keeps it in the 4-line group.
  • Two new shapes, each rendered as goldens and by render-consumption, set skillManager.sources (a URL, and an object with ref, path and readOnly) and skillManager.github.app.secretName:
    • skill-manager-default-agent-off also sets defaultAgent.enabled: false;
    • skill-manager-default-agent-model also sets defaultAgent.modelConfig.

What the next reconcile changes on an installation that sets none of the new inputs

On every 4-line installation with the agent-manager and no versions.chart hold below 4.179.0-rc.9 (gazelle today), the next dry run shows one change, in installations/<name>/apps/agent-platform/configmap-values.yaml.patch. It is planned with reason M44:

components:
  skill-manager:
    valuesFromRefs:
      - kind: Secret
        name: muster-credentials-revision
        valuesKey: revision
        targetPath: podAnnotations.muster-credentials-revision

Nothing else in the values file changes. No Secret changes, and no other file changes. The probe list gains Deployment agent-platform/skill-manager Available under live-platform-workloads. When Flux applies the change, the skill-manager's pod template gets the annotation, so the skill-manager restarts once.

Installations on the 3 line, without the agent-manager, or with a hold below rc.9 render exactly what they rendered before.

Tests

  • TestSkillManagerReadsMusterCredentials checks the wiring and the probe in seven cases: no hold, a hold on ~4.179.0, on 4.179.0-rc.9, on 4.179.0-rc.8, on ~4.178.0, on ~4.174.0, and no agent-manager.
  • TestMusterCredentialsRevision and TestGolden pass over all shapes. 13 existing goldens changed. In each, the only change is the 6-line components.skill-manager.valuesFromRefs block and the 9-line probe; nothing else changed. The platformctl hub-join golden changed only in the text of the live-platform-workloads dimension.
  • make test-render-consumption passes at agent-platform 4.179.2, the new shapes included. Its assertMusterConsumers fails on any workload that reads muster's credentials and is not a listed consumer, so the pass also shows that no other 4.179 component (default agent included) is missing.
  • Also run locally, all pass: go test ./..., make scenario-test, golangci-lint run ./... and the pre-commit hooks.

Review

# Severity Finding Outcome
1 non-blocking The live-platform-workloads dimension text in features.yaml did not name the skill-manager Fixed
2 non-blocking The README list of muster credential consumers did not name the skill-manager Fixed
3 suggestion No case for a hold on 4.179.0-rc.8, the candidate just below the floor Fixed: case added
4 suggestion One doc-comment line in render.go was not wrapped Fixed

…r's credentials

From agent-platform 4.179.0 the meta chart runs the skill-manager beside the
agent-manager. Its pods read the platform client's secret from muster's
credentials Secret once, at start, but musterConsumers did not list it, so a
rotation left it on the old value until a hand-run restart.

The skill-manager is now a consumer where the meta chart runs it: the
agent-manager runs, on the 4 line, with no versions.chart hold below
4.179.0-rc.9. Its HelmRelease reads the revision onto a pod annotation, and the
runtime feature probes Deployment skill-manager Available. migrations.yaml
plans the new key (M44).

render-consumption pins agent-platform and connectivity 4.179.1,
agent-platform-operator 0.3.1 and skill-manager 0.1.5, and renders two new
shapes with skillManager.sources, skillManager.github.app.secretName and
defaultAgent (off, or on a named ModelConfig).

Closes #916

Signed-off-by: Jose Armesto <github@armesto.net>
… consumers are listed; pin agent-platform 4.179.2

The live-platform-workloads dimension and the README name the skill-manager
among the workloads that read muster's credentials. A test case pins the
gate at a hold on 4.179.0-rc.8, the candidate before the skill-manager.
render-consumption renders agent-platform and connectivity 4.179.2, the
newest stable release.

Signed-off-by: Jose Armesto <github@armesto.net>
@fiunchinho fiunchinho self-assigned this Nov 12, 2026
@fiunchinho
fiunchinho marked this pull request as ready for review November 12, 2026 14:18
@fiunchinho
fiunchinho requested a review from a team as a code owner November 12, 2026 14:18
@circleci-architect

Copy link
Copy Markdown

Published Helm chart giantswarm-platform-manager

0.87.1-rb8027951t20261112141529hd729650
Chart giantswarm-platform-manager
Version 0.87.1-rb8027951t20261112141529hd729650
OCI reference oci://gsoci.azurecr.io/charts/giantswarm/giantswarm-platform-manager:0.87.1-rb8027951t20261112141529hd729650
Digest sha256:3a483967f48b270ed9790e1e1e5d24e4198ef52b67195c2887e5405308ab7840
Registry public — gsoci.azurecr.io
Git catalog giantswarm-test-catalog (index)
Pull this chart
helm pull oci://gsoci.azurecr.io/charts/giantswarm/giantswarm-platform-manager --version 0.87.1-rb8027951t20261112141529hd729650

Posted by architect-orb · build 39782 · commit d729650 · updated in place on every push

@fiunchinho
fiunchinho merged commit c1149c3 into main Nov 12, 2026
17 checks passed
@fiunchinho
fiunchinho deleted the skill-manager-muster-consumer branch November 12, 2026 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

agent-platform definition: a muster credentials rotation does not restart the skill-manager; render-consumption still pins 4.178.0

1 participant