Skip to content

fix(skill-manager): take the OAuth client from muster's login, like the other managers - #1381

Merged
fiunchinho merged 2 commits into
mainfrom
skill-manager-oauth-client
Nov 12, 2026
Merged

fiunchinho merged 2 commits into
mainfrom
skill-manager-oauth-client

Conversation

@fiunchinho

@fiunchinho fiunchinho commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

Problem

On enigma, chart 4.179.0 deploys the new skill-manager (#1265) and its HelmRelease fails:

Helm install failed for release agent-platform/skill-manager with chart skill-manager@0.1.5+d4f7ba355aae: execution error at (skill-manager/templates/deployment.yaml:64:33): oauth.dex.clientID (or global.identity.clientId) is required when oauth.enabled

Cause

enigma names muster's login (muster.muster.oauth.server.dex.clientId, dex.issuerUrl, existingSecret) and sets global.identity.issuerUrl and global.identity.existingSecret, but not global.identity.clientId. agent-platform.identity.apply fills a manager's oauth.dex.clientID (and oauth.trustedAudiences, oauth.dex.issuerURL, oauth.existingSecret) from muster's login when its own block and global.identity leave them unset. Its list had model-manager, agent-manager, vm-manager, cluster-manager and workspace-manager, not skill-manager. So the model-manager got muster's client and is Ready, and the skill-manager got no client and its chart refused to render. On installations that set global.identity.clientId (gazelle) it works.

Change

  • helm/agent-platform/templates/_helpers.tpl: skill-manager joins the agent-platform.identity.apply list, with no route wiring (like vm-manager): its chart derives oauth.baseURL as https://skill-manager.<global.domain>, as before. Every key the helper can set (oauth.dex.clientID, oauth.dex.issuerURL, oauth.trustedAudiences, oauth.existingSecret) is in the closed oauth schema of skill-manager 0.1.5; the helper only reads oauth.provider.
  • Nothing else needs it: the skill-manager block does not reach the connectivity release (omitKeys), so no connectivity guard or egress list reads it, and its own chart opens its egress to the identity provider. toolchain-manager already falls back to muster.muster.oauth.server.dex.clientId in agent-platform.toolchainManager.derived.
  • docs/reference.md and the skill-manager values comment say where its login comes from.

Tests

  • tests/verify-manager-identity.py (make verify-managers):
    • skill-manager is checked with the other managers (derived, global.identity wins).
    • New case, enigma's shape: global.identity issuer and Secret without a client; each manager gets muster's client and audience, and keeps the issuer and Secret to global.identity.
    • New roster check: every roster component whose forwarded values have an oauth block is in the helper's list, so the next manager that is an OAuth resource server cannot be forgotten.
    • On origin/main (helper line reverted, test kept): FAIL: skill-manager oauth.dex.issuerURL: got None, want 'https://dex.ci.example.com' and FAIL: roster: ['skill-manager'] forward an oauth block but are not in agent-platform.identity.apply's list.
  • enigma's live values (plus kagent.database.postgres.urlFile and kagent.harness.snapshotLocation placeholders for unrelated guards): helm template of this chart, then skill-manager 0.1.5 with the values it forwards.
    • Before: the exact error above.
    • After: renders; --dex-client-id=49c3d389-…, --oauth-trusted-audiences=49c3d389-…,dex-k8s-authenticator, --dex-issuer-url=https://dex.enigma.egg.gigantic.io, client secret from muster-oauth-credentials.
  • make verify-managers verify-target verify-components-charts pass; make golden-update gives no diff (the CI values set global.identity.clientId).

Review

Finding Severity Result
No case renders global.identity issuer and Secret without a client (the failing shape) Non-blocking Fixed: new case in verify-manager-identity.py
Roster parse assumes quoted values Nit Fixed: parsed as quoted pairs; anything else fails
Roster check compared roster keys, the helper reads valuesFrom keys Nit Fixed: compares valuesFrom keys
values.yaml comment and docs/reference.md did not name the fill from muster's login Nit Fixed
No one-login guard compares the skill-manager's OAuth inputs with the platform's login (its block is in the connectivity release's omitKeys); older than this change Non-blocking Deferred: #1382

Deferred: the skill-manager one-login and absence guards, #1382.

Effect: installations that name muster's login and leave global.identity.clientId unset.

…he other managers

agent-platform.identity.apply now fills skill-manager's oauth.dex.clientID, oauth.trustedAudiences, oauth.dex.issuerURL and oauth.existingSecret from muster.muster.oauth.server when its block and global.identity leave them unset. Without it, an installation that names muster's login and leaves global.identity.clientId unset (enigma) fails the skill-manager install: oauth.dex.clientID (or global.identity.clientId) is required when oauth.enabled.

verify-manager-identity.py checks skill-manager with the other managers and pins that every roster component forwarding an oauth block is in the helper's list.
…'s list as pairs

Adds the case with global.identity issuer and Secret but no client, reads the roster by valuesFrom key, refuses a helper list that is not quoted pairs, and documents that the skill-manager's login falls back to muster's.
@circleci-architect

Copy link
Copy Markdown

Published Helm chart agent-platform

4.179.1-r725c72bct20261112124152h19ffffc
Chart agent-platform
Version 4.179.1-r725c72bct20261112124152h19ffffc
OCI reference oci://gsoci.azurecr.io/charts/giantswarm/agent-platform:4.179.1-r725c72bct20261112124152h19ffffc
Digest sha256:cebbf8f63e19957dbc5834843e0643a798da5a0fb02daaf4353a97fabbc0d8e1
Registry public — gsoci.azurecr.io
Git catalog giantswarm-test-catalog (index)
Pull this chart
helm pull oci://gsoci.azurecr.io/charts/giantswarm/agent-platform --version 4.179.1-r725c72bct20261112124152h19ffffc

Posted by architect-orb · build 32131 · commit 19ffffc · updated in place on every push

@circleci-architect

Copy link
Copy Markdown

Published Helm chart agent-platform-connectivity

4.179.1-r725c72bct20261112124152h19ffffc
Chart agent-platform-connectivity
Version 4.179.1-r725c72bct20261112124152h19ffffc
OCI reference oci://gsoci.azurecr.io/charts/giantswarm/agent-platform-connectivity:4.179.1-r725c72bct20261112124152h19ffffc
Digest sha256:8c9569f9f4955e5358bb53ff542fc93e149bc00e94bff04054896570eaaa4294
Registry public — gsoci.azurecr.io
Git catalog giantswarm-test-catalog (index)
Pull this chart
helm pull oci://gsoci.azurecr.io/charts/giantswarm/agent-platform-connectivity --version 4.179.1-r725c72bct20261112124152h19ffffc

Posted by architect-orb · build 32133 · commit 19ffffc · updated in place on every push

@fiunchinho
fiunchinho merged commit 648f70b into main Nov 12, 2026
17 checks passed
@fiunchinho
fiunchinho deleted the skill-manager-oauth-client branch November 12, 2026 12:57
teemow added a commit that referenced this pull request Nov 13, 2026
* origin/main: (21 commits)
  feat(default-agent): make the General Assistant proactive (#1399)
  fix(connectivity): bound MCPServer descriptions, mirror kagent's and describe mcp-kubernetes (#1398)
  feat: support agent-manager 3.x and on-demand GitHub grants (#1375)
  feat(default-agent): tag the General Assistant general and platform (#1397)
  feat(connectivity): describe the kagent MCPServer for the developer portal (#1390)
  docs(skills): guard agent creation against silent wrong keys, skipped listings and wrong model routes (#1392)
  fix(network-policies): admit only the owning Gateway's Envoy proxy, not every Envoy pod (#1394)
  chore: move the ATS default and the docs example ModelConfig to Claude Sonnet 5.5 (#1395)
  refactor(organizations): one source for agent-platform-operator's names in both charts (#1389)
  feat(agent-manager): take agent-manager 2.24.0 or later, for the Dev Portal's organization pages (#1371)
  feat(helm): annotate component HelmReleases and OCIRepositories with the owning team (#1385)
  fix(skill-manager): reach the login provider on a private installation (#1384)
  fix(skill-manager): take the OAuth client from muster's login, like the other managers (#1381)
  ci: render every component on a schedule against main and the latest releases (#1377)
  docs(skills): show a sign-in muster refuses instead of calling core_auth_login (#1376)
  chore(deps): update gsoci.azurecr.io/giantswarm/agent-manager docker tag to v2.24.0 (#1370)
  test(organizations): wait for every admission policy and RBAC object before the dry runs (#1373)
  fix(tenants): let every organization member read its members (#1369)
  feat: ship the default agent (General Assistant) and the platform skills with the chart (#1265)
  test(organizations): prove that an organization admin's Secret delete never answers with the Secret, and pin the admin mirrors (#1366)
  ...

# Conflicts:
#	helm/agent-platform/README.md
#	helm/agent-platform/examples/customer-bom.yaml
#	helm/agent-platform/templates/_helpers.tpl
#	helm/agent-platform/values.yaml
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.

1 participant