Skip to content

Latest commit

 

History

History
68 lines (62 loc) · 4.2 KB

UPGRADE.md

File metadata and controls

68 lines (62 loc) · 4.2 KB

Upgrade notes

What an operator has to do or decide when upgrading, newest first. The release notes on GitHub list every change; this file covers the actions.

A section is headed with the version that ships it (## 0.6.0 — <title>). A pull request that adds notes heads them ## Next — <title>; the release renames each Next to its version.

Next — chart values on model-manager's layout

The chart takes mcp-oauth's value names for MCP servers (oauth.resourceServer, oauth.authorizationServer). The old names keep working, deprecated; the install notes list each old name a release sets. Move to the new names before the release that removes the old ones.

Old New
oauth.baseURL oauth.authorizationServer.issuer
oauth.dex.issuerURL oauth.authorizationServer.upstream.issuer
oauth.dex.clientID oauth.authorizationServer.upstream.client.id
oauth.dex.clientSecret, oauth.existingSecret oauth.authorizationServer.upstream.client.secretKeyRef
oauth.dex.caSecret oauth.authorizationServer.upstream.certificateAuthority.secretKeyRef
oauth.trustedAudiences the audiences of an oauth.resourceServer.trustedIssuers entry
oauth.sso.allowPrivateIPJWKSHosts the allowPrivateIPJWKSHosts of an oauth.resourceServer.trustedIssuers entry
oauth.allowPublicClientRegistration nothing: MCP clients register with client ID metadata documents
oauth.dex.allowPrivateURLs, oauth.sso.allowPrivateIPs nothing: they have no effect
networkPolicy.ingressNamespaces a networkPolicy.gatewayPeers entry with a namespaceSelector
networkPolicy.metricsNamespaces a networkPolicy.metricsPeers entry
  • Configuration through OAUTH_* variables. The chart renders mcp-oauth's OAUTH_* variables instead of the flags, and mounts the Dex client secret as a file instead of DEX_CLIENT_SECRET. Dex becomes an OAUTH_TRUSTED_ISSUERS entry marked as the OpenID Provider, accepting the same audiences. Outside the chart, the old flags and variables (--oauth-base-url, --dex-*, --oauth-trusted-audiences, --sso-allow-private-ip-jwks-hosts, --allow-public-client-registration and their variables) keep working, log a warning naming the replacement, and lose to an OAUTH_* variable.
  • Trusted issuers and a private Dex. The entry the chart builds for Dex lists the issuer host in allowPrivateIPJWKSHosts. An entry you write in oauth.resourceServer.trustedIssuers is used as written: list a private JWKS host in it, or every forwarded token is refused with 401.
  • No authorization server of its own. When every caller brings a token from a trusted issuer, as muster, agent-manager and the portal do, set oauth.authorizationServer.enabled: false and list that issuer in oauth.resourceServer.authorizationServers. The Dex client and its secret are then not needed. oauth.authorizationServer.issuer stays set: it is the server's public URL.
  • Token introspection. /oauth/introspect is no longer served. Set OAUTH_ENABLE_INTROSPECTION_ENDPOINT=true in extraEnv if a client uses it.
  • Who may reach the server. The NetworkPolicy admits muster, agentgateway and agent-manager in the release namespace (networkPolicy.gatewayPeers) instead of every pod there, and the alloy-metrics scraper in kube-system (networkPolicy.metricsPeers) instead of every pod in kube-system. A caller in the release namespace with another app.kubernetes.io/name needs a gatewayPeers entry. Namespaces listed in the deprecated ingressNamespaces and metricsNamespaces stay admitted.
  • ServiceMonitor tenant. serviceMonitor.labels defaults to observability.giantswarm.io/tenant: giantswarm, and a ServiceMonitor without that label fails to render.
  • HTTPRoute. httpRoute.* renders an optional Gateway API route, off by default.
  • Stateless endpoint. /mcp hands out no Mcp-Session-Id; any replica answers any request.
  • Browser and proxy access. /mcp refuses cross-origin browser requests and, on a loopback listener, a foreign Host. A proxy in the same pod that keeps the public host needs mcp.allowedHosts; a web application on another origin needs mcp.allowedOrigins.