From c904d951efa6ef447c8ef0a1ab3f6968b3736996 Mon Sep 17 00:00:00 2001 From: Jose Armesto Date: Thu, 12 Nov 2026 19:26:27 +0100 Subject: [PATCH] feat(agent-manager): admit agent-manager 3.x beside 2.24.0 and later components.agent-manager.versionRange is >=2.24.0 <4.0.0. agent-manager 3.0.0 removes replaceCredential from the set tools (giantswarm/agent-manager#365); its chart takes the same values as 2.24.0. UPGRADE.md names the operator actions. --- UPGRADE.md | 14 +++++++++++++- docs/organization-credentials.md | 2 +- helm/agent-platform/README.md | 2 +- helm/agent-platform/values.yaml | 9 ++++++++- tests/golden/meta-ci-engine-off.yaml | 2 +- 5 files changed, 24 insertions(+), 5 deletions(-) diff --git a/UPGRADE.md b/UPGRADE.md index 5f2d6f54..15f77de9 100644 --- a/UPGRADE.md +++ b/UPGRADE.md @@ -15,9 +15,21 @@ 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. +## \ → \ (agent-manager 3.x admitted: `replaceCredential` removed) + +`components.agent-manager.versionRange` is `>=2.24.0 <4.0.0`. agent-manager 3.0.0 removes the argument `replaceCredential` from `set_organization_model`, `set_organization_connector` and `set_organization_egress_policy` (giantswarm/agent-manager#365): a call that sends it is refused with `invalid_request` and changes nothing. `replace_organization_credential` is the one way to enter a new value for an existing credential. 3.0.0 also refuses with `conflict` a `set_organization_model` that changes the `provider` of a model that names a credential Secret and keeps that Secret (omits `credentialSecret` or sends the same one) (giantswarm/agent-manager#391), adds `create` to the three set tools (a create whose name is taken is refused with `already_exists`, giantswarm/agent-manager#378, #382) and `permissions.createAgents` to `list_organizations` (giantswarm/agent-manager#392). Its chart takes the same values, ServiceAccount and RBAC as 2.24.0, and its `migrate` command is the same, so this chart forwards the same values to both and the migrate run's image stays `2.24.0`. The range spans both majors: where it is not held, Flux moves agent-manager to 3.0.0 when that chart is published, without a new release of this chart. With `gitops.prereleases` on, the range admits release candidates (`>=2.24.0-0 <4.0.0-0`), so Flux moves agent-manager to the newest 3.0.0 release candidate as soon as this release is applied. When Flux moves to 3.x, the agent-manager Deployment rolls in place; agents, Sessions and organizations stay as they are. + +### Operator action + +- **A Dev Portal before 3.38.0** (`components.backstage` held below it, or a portal installed apart): it rotates an organization credential with `replaceCredential`, so its Replace button fails on agent-manager 3.x. Move it to 3.38.0 or later **before agent-manager 3.x reaches the installation**: before this release with `gitops.prereleases` on, else before agent-manager 3.0.0 is published. A portal on the 2.x chart line has no organization pages and is not affected. +- **A client, agent or script that sends `replaceCredential`**: call `replace_organization_credential` with the Secret and the key. +- **A client that changes the `provider` of a model that names a credential Secret**: send a new `credentialSecret` in the same call. +- **An installation that must stay on agent-manager 2.x for now**: hold `components.agent-manager.versionRange` at `>=2.24.0 <3.0.0` (the platform manager's `versions.components.agent-manager`), and lift the hold once the portal and the clients are ready. +- **An installation that pins the BOM**: nothing to do; `2.24.0` stays in the range. Move the pin to `3.0.0` with the portal check above. + ## \ → \ (agent-manager 2.24: `list_organizations` and write-only organization credentials) -giantswarm/backstage#3364: `components.agent-manager.versionRange` is `>=2.24.0 <3.0.0`. agent-manager 2.24.0 replaces the tool `list_my_organizations` with `list_organizations` (the organizations the person manages or belongs to), makes organization credentials write-only (it writes them without reading the Secret as the caller), adds `replace_organization_credential`, and answers a save whose credential's consumers changed with `credential_consumers_changed`; the Dev Portal 3.38.0 replaces a credential with `replace_organization_credential` and deletes one through its delete dialog (it lists organizations with `list_organizations` from 3.37.0, giantswarm/backstage#3467). 2.24.0 is also `agent-platform.agentManager.skillManagerFloor`: with `components.skill-manager` on (it follows agent-manager), agent-manager now pins skills through the skill-manager (`skillManager.url`) and gets `installation` and, while the default agent is on, `defaultAgentModel`, as the earlier entry on the default agent and the skill-manager describes. With `defaultAgentModel`, agent-manager gives the default agent (`default-agent` in the kagent namespace) the installation's default model once, while it has none: the ModelConfig in the kagent namespace annotated `agent-platform.giantswarm.io/is-default-model-config: "true"`. Below this floor the default agent gets no model and is not ready (`Compatible=False`, `kagent ModelConfig is required`). The agent-manager migrate run's image (`agentManager.migration.image.tag`) is already `2.24.0`, so the migrate run pins skills the same way. The range stays below 3.0.0: admitting agent-manager 3.x is a separate step. +giantswarm/backstage#3364: `components.agent-manager.versionRange` is `>=2.24.0 <3.0.0`. agent-manager 2.24.0 replaces the tool `list_my_organizations` with `list_organizations` (the organizations the person manages or belongs to), makes organization credentials write-only (it writes them without reading the Secret as the caller), adds `replace_organization_credential`, and answers a save whose credential's consumers changed with `credential_consumers_changed`; the Dev Portal 3.38.0 replaces a credential with `replace_organization_credential` and deletes one through its delete dialog (it lists organizations with `list_organizations` from 3.37.0, giantswarm/backstage#3467). 2.24.0 is also `agent-platform.agentManager.skillManagerFloor`: with `components.skill-manager` on (it follows agent-manager), agent-manager now pins skills through the skill-manager (`skillManager.url`) and gets `installation` and, while the default agent is on, `defaultAgentModel`, as the earlier entry on the default agent and the skill-manager describes. With `defaultAgentModel`, agent-manager gives the default agent (`default-agent` in the kagent namespace) the installation's default model once, while it has none: the ModelConfig in the kagent namespace annotated `agent-platform.giantswarm.io/is-default-model-config: "true"`. Below this floor the default agent gets no model and is not ready (`Compatible=False`, `kagent ModelConfig is required`). The agent-manager migrate run's image (`agentManager.migration.image.tag`) is already `2.24.0`, so the migrate run pins skills the same way. The next entry admits agent-manager 3.x. ### Operator action diff --git a/docs/organization-credentials.md b/docs/organization-credentials.md index abba2254..8dc630d5 100644 --- a/docs/organization-credentials.md +++ b/docs/organization-credentials.md @@ -8,7 +8,7 @@ Set `agent-manager.credentials.uiURL` to the HTTPS URL template of the client th The form uses its client's authenticated backend path to post the value to agent-manager's REST API as the person; agent-manager exposes no browser CORS exception. A client backend outside the cluster reaches that API through `agentManager.route` (`https://agentgateway./agent-manager`, `agentManager.route.hostname` overrides the host): turn on `agentManager.route.enabled`, and `agentManager.route.jwtAuthentication.enabled` with the identity provider's issuer. agent-manager validates the token itself (`agent-manager.oauth`), so the audience of the ID token the client sends must be one it trusts (`agent-manager.oauth.trustedAudiences` and the muster audiences it accepts). -Credential operations and `agent-manager.githubTokenExchange` need a floor of `2.22.0` or later in `components.agent-manager.versionRange`. The default floor, `2.24.0`, makes credentials write-only (agent-manager writes them without reading the Secret as the caller): `replace_organization_credential` replaces one, and a save whose credential's consumers changed is answered `credential_consumers_changed`. The Dev Portal's credential form needs it ([giantswarm/backstage#3364](https://github.com/giantswarm/backstage/issues/3364)). The organization switch keeps its own `2.20.0` floor. muster reaches the elicitation to the client from `5.61.0` (giantswarm/muster#1812), the floor of `components.muster.versionRange`. +Credential operations and `agent-manager.githubTokenExchange` need a floor of `2.22.0` or later in `components.agent-manager.versionRange`. The default floor, `2.24.0`, makes credentials write-only (agent-manager writes them without reading the Secret as the caller): `replace_organization_credential` replaces one, and a save whose credential's consumers changed is answered `credential_consumers_changed`. The Dev Portal's credential form needs it ([giantswarm/backstage#3364](https://github.com/giantswarm/backstage/issues/3364)). The range admits agent-manager 3.x, whose set tools take no `replaceCredential` ([giantswarm/agent-manager#365](https://github.com/giantswarm/agent-manager/pull/365)): `replace_organization_credential` is then the only way to replace a credential, and a Dev Portal before 3.38.0 cannot replace one. The organization switch keeps its own `2.20.0` floor. muster reaches the elicitation to the client from `5.61.0` (giantswarm/muster#1812), the floor of `components.muster.versionRange`. `agent-manager.credentials.uiURL` needs `agentPlatformOrganizations.enabled`: agent-manager serves the form link only with its organization tools and downstream OAuth on. diff --git a/helm/agent-platform/README.md b/helm/agent-platform/README.md index 6dd5dd61..6fba8c6e 100644 --- a/helm/agent-platform/README.md +++ b/helm/agent-platform/README.md @@ -565,7 +565,7 @@ The map is merged into each component's own `nodeSelector` (`muster.nodeSelector | components.model-manager.dependsOn[2] | string | `"kserve-llmisvc-resources"` | | | components.agent-manager.chart | string | `"agent-manager"` | | | components.agent-manager.repository | string | `"oci://gsoci.azurecr.io/charts/giantswarm"` | | -| components.agent-manager.versionRange | string | `">=2.24.0 <3.0.0"` | | +| components.agent-manager.versionRange | string | `">=2.24.0 <4.0.0"` | | | components.agent-manager.valuesFrom | string | `"agent-manager"` | | | components.agent-manager.omitEmptyKeys[0] | string | `"harness.egress"` | | | components.agent-manager.enabled | bool | `false` | | diff --git a/helm/agent-platform/values.yaml b/helm/agent-platform/values.yaml index 0bf2f851..c3da76f3 100644 --- a/helm/agent-platform/values.yaml +++ b/helm/agent-platform/values.yaml @@ -1166,7 +1166,14 @@ components: # @schema additionalProperties: true # agent-platform.agentManager.skillManagerFloor: from it agent-manager pins # skills through the skill-manager and takes installation and # defaultAgentModel (giantswarm/agent-manager#290). - versionRange: ">=2.24.0 <3.0.0" + # The ceiling admits agent-manager 3.x: 3.0.0 removes replaceCredential + # from set_organization_model, set_organization_connector and + # set_organization_egress_policy (giantswarm/agent-manager#365; a call + # with it is refused invalid_request, replace_organization_credential + # replaces a credential), and its chart takes the same values as 2.24.0, + # so the range spans both majors and Flux moves to 3.x once it is + # published (with gitops.prereleases, to its newest release candidate). + versionRange: ">=2.24.0 <4.0.0" valuesFrom: agent-manager # harness.egress travels only when set: the key is new in agent-manager # 1.11.0, and an older chart's closed harness block refuses it; unset, the diff --git a/tests/golden/meta-ci-engine-off.yaml b/tests/golden/meta-ci-engine-off.yaml index e5e2f517..9980a1a2 100644 --- a/tests/golden/meta-ci-engine-off.yaml +++ b/tests/golden/meta-ci-engine-off.yaml @@ -3174,7 +3174,7 @@ spec: mediaType: application/vnd.cncf.helm.chart.content.v1.tar+gzip operation: copy ref: - semver: ">=2.24.0 <3.0.0" + semver: ">=2.24.0 <4.0.0" --- # Source: agent-platform/templates/components.yaml apiVersion: source.toolkit.fluxcd.io/v1