Skip to content

feat: adopt shared OAuth configuration and UserInfo - #363

Merged
QuentinBisson merged 5 commits into
mainfrom
feat/mcp-library-adoption
Nov 27, 2026
Merged

QuentinBisson merged 5 commits into
mainfrom
feat/mcp-library-adoption

Conversation

@QuentinBisson

@QuentinBisson QuentinBisson commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

Adopts mcp-oauth v1.24.0 configuration and UserInfo, with separate resource-server and authorization-server values. Deprecated inputs remain supported, including the platform login audience.

What is the effect of this change to users?

Resource-server-only operation supports GitHub exchange without local OAuth client credentials. Automatic cluster OIDC requires an unambiguous provider; creator RBAC requires verified email. Logs identify callers by issuer and subject.

Any background context you can provide?

Part of #349 and giantswarm/giantswarm#39405 slice 5; platform wiring is giantswarm/agent-platform#1512. Provider ID-token forwarding remains the documented compatibility exception tracked in giantswarm/giantswarm#39102, so this is not complete MCP authorization conformance.

Do the docs need to be updated?

Updated identity behavior, chart values and generated documentation. Regression checks cover resource-only MCP requests, audiences, provider ambiguity and creator bindings.

The server reads its OAuth settings with oauthconfig.SettingsFromEnv (mcp-oauth v1.24.0). The --oauth-*, --dex-*, --google-*, --sso-allow-private-ip-jwks-hosts and --allow-public-client-registration flags and their variables map onto the OAUTH_* names for one more release and log a deprecation warning. OAUTH_PROVIDER=github is refused at startup: it issues no ID token. Created clusters' OIDC takes the Dex issuer from OAUTH_DEX_ISSUER_URL and its CA from OAUTH_DEX_CA_FILE. The chart renders the OAUTH_* variables from its existing values and no longer passes the no-op allowPrivateURLs and allowPrivateIPs values.
…nID Provider

The chart reads oauth.resourceServer (resource, additionalResources, authorizationServers, trustedIssuers, requireResourceAccessTokens) and oauth.authorizationServer (enabled, issuer, upstream type/issuer/client/certificateAuthority, dynamicClientRegistration, clientIDMetadataDocuments, storage), and renders them as OAUTH_* variables with client secrets mounted as files. Without trustedIssuers it lists the provider people sign in with in OAUTH_TRUSTED_ISSUERS as the openIDProvider, accepting its ID tokens for the platform client and the MCPServer's requiredAudiences, in place of OAUTH_TRUSTED_AUDIENCES. The earlier oauth.* keys still work for one more release; NOTES names each one that is set.
…dentity package

The request's user is mcp-oauth's validated providers.UserInfo: the authenticated-request debug line names it as user.issuer, user.subject and user.actor.* (UserInfo.LogValue, no profile data) with token_source, instead of caller and source, and create_cluster binds the creator from UserInfo's email. The ID token presented to Kubernetes under --downstream-oauth lives in internal/idtoken; the GitHub App user access token commit mode opens the pull request with is tools.GitHubUserAccessToken.
@circleci-architect

circleci-architect Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Published Helm chart cluster-manager

0.39.10-r14517d4at20261127122138h1028e4e
Chart cluster-manager
Version 0.39.10-r14517d4at20261127122138h1028e4e
OCI reference oci://gsoci.azurecr.io/charts/giantswarm/cluster-manager:0.39.10-r14517d4at20261127122138h1028e4e
Digest sha256:d327d53e974a26bb3d0da65b31dbedeaefd0584a9e7c0184e36171f54e6bc764
Registry public — gsoci.azurecr.io
Git catalog giantswarm-test-catalog (index)
Pull this chart
helm pull oci://gsoci.azurecr.io/charts/giantswarm/cluster-manager --version 0.39.10-r14517d4at20261127122138h1028e4e

Posted by architect-orb · build 5598 · commit 1028e4e · updated in place on every push

@QuentinBisson
QuentinBisson force-pushed the feat/mcp-library-adoption branch from 69bbab2 to 956d967 Compare November 27, 2026 10:30
@QuentinBisson

Copy link
Copy Markdown
Contributor Author

Tested on agentlab-2 (agentlab rc.81, Dex issuer under the lab domain, agent-platform 4.186.0-rc.5) with the image built from 69bbab2 (0.39.10-r14517d4at20261127090024h69bbab2). The lab turns cluster-manager on through devImages.cluster-manager.

  • Released chart 0.39.9, old oauth.* values, this image: each deprecated flag maps to its OAUTH_* name with one warning, and muster's forwarded Dex tokens are accepted.
  • This branch's chart with the values feat(cluster-manager): fill mcp-oauth's values layout and reach its trusted issuers agent-platform#1512 renders (global.identity): Flux was suspended and the release upgraded with helm v3.17.3. OAUTH_TRUSTED_ISSUERS holds Dex as openIDProvider with audiences agent-platform and kubernetes, and there is no OAUTH_TRUSTED_AUDIENCES. No deprecated-flag warnings at startup.
  • Explicit oauth.authorizationServer.upstream.* keys, no global.identity: the Deployment renders identically, with no deprecated-values notice.
  • Auth on /mcp: no token gets 401 with resource_metadata. An unknown token gets 401 invalid_token. The admin's and the viewer's Dex tokens get 200. The protected-resource metadata answers for / and /mcp.
  • ServiceAccount: no bindings, and kubectl auth can-i answers no for Secrets, HelmReleases and Releases.
  • Through muster: 11 x_cluster-manager_* tools are listed. get_info, list_clusters and list_releases answer for the admin. The viewer's list_releases is refused by the apiserver as oidc:viewer@lab.local, so the calls run as the user.
  • Afterwards: Flux resumed, the dev image was removed and cluster-manager is off again. 19 of 19 HelmReleases are Ready.

cluster-manager has no REST API, only probes and /mcp.

@QuentinBisson QuentinBisson changed the title feat: adopt the shared MCP library (OAUTH_* settings, values layout, UserInfo) feat: adopt shared OAuth configuration and UserInfo Nov 27, 2026
@QuentinBisson
QuentinBisson marked this pull request as ready for review November 27, 2026 12:28
@QuentinBisson
QuentinBisson requested a review from a team as a code owner November 27, 2026 12:28
@QuentinBisson
QuentinBisson merged commit 5a1f8a5 into main Nov 27, 2026
18 checks passed
@QuentinBisson
QuentinBisson deleted the feat/mcp-library-adoption branch November 27, 2026 12:30
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