Skip to content

GitHub sign-in for Google Workspace via Cloudflare Access - #230

Open
sambhav wants to merge 1 commit into
mainfrom
sambhav/access-site
Open

sambhav wants to merge 1 commit into
mainfrom
sambhav/access-site

Conversation

@sambhav

@sambhav sambhav commented Oct 24, 2026 •

Copy link
Copy Markdown
Member

Summary

Allow a single maintainer, sambhav, to sign in to MCP Google Workspace with GitHub through Cloudflare Access for SaaS. Cloudflare signs the SAML assertion. The earlier custom OIDC Worker, GitHub App and D1 database are no longer part of this change.

The direct members of the workspace-sso GitHub team are the pilot roster. The same entries in users.ts supply the numeric GitHub ID → Workspace email mapping. An enabled member needs a GitHub login and a current Google provisioning role, including inherited roles. CI resolves each enabled ID with GitHub and checks the login. The policy uses the slug from the Pulumi-managed team and requires a GitHub login method. The app allows only the GitHub identity provider, disables Cloudflare One Client authentication, and sends one constant SAML attribute (source: cloudflare-access) in place of Access's default group attributes. The app and policy each use a one-hour session duration.

The NameID transform checks GitHub org membership and looks up the numeric GitHub ID. It does not check the identity provider, because Cloudflare's transform input has no idp field (verified live, see below). The policy's login-method rule enforces GitHub instead. allowedIdps only limits which providers the login page offers.

Verification

  • Local checks pass: npm run validate, npm test, npm run check-github-ids (live GitHub ID → login check, its own CI step) and npm run format:check.
  • Live-tested on a throwaway Access SaaS app in the MCP account (since deleted), using a local test SP. Redacted example responses are in the live-checks thread.

Live results

The test used the app settings from src/cloudflare.ts and Google's SP values were never set. Its policy admitted the whole GitHub org rather than the workspace-sso team, so an unmapped member could reach the transform.

Case Outcome
API read-back Both transforms and nameIdFormat returned byte-for-byte, with no custom attributes
Original expression Everyone, including the mapped pilot, got unmapped@access.invalid. The transform input is {id, name, email, groups[{id, name, teams[{name}]}]}, with no idp field, so the idp.id clause was always false. Fixed in this PR, and the tests now use the captured shape.
Fixed expression, mapped member Signed Success, NameID <pilot>@modelcontextprotocol.io, format emailAddress, empty AttributeStatement
Unmapped Exactly unmapped@access.invalid
Transform error No assertion. Access shows "Failed to generate a SAML Response".
Empty result ("") Signed Success with an empty <NameID/> and the format switched to persistent. No fallback to email. buildNameIdTransform always ends in a non-empty string literal, so it can't produce this.
Propagation A transform change took about 20–40s to reach the edge. The NameID is recomputed for each assertion, not fixed for the session.

Second round, on Den's follow-ups. The app allowed GitHub and one-time PIN, so the PIN case could be exercised, and the policy included the login-method rule:

Case Outcome
Final expression, table without the signer's ID Signed Success, NameID exactly unmapped@access.invalid
One-time PIN session, same user, after a GitHub sign-in in another browser Refused. Access sent the user back to the sign-in picker and issued no assertion. It was also refused with the login-method rule removed, because the org include already fails for a PIN identity. Access did not reuse the stored GitHub groups.
Login-method rule on its own Same app and email include (which the identity matched); only requires.loginMethod changed. Requiring PIN: a GitHub sign-in was refused ("That account does not have access", no assertion). Requiring GitHub: the same sign-in was admitted. The rule enforces the login method by itself.
Dashboard save Comparing the full app before and after, only updated_at changed. A mapped sign-in after the save still worked.
Constant attribute Exactly one attribute, source = cloudflare-access (xs:string). The NameID is unaffected, both mapped and unmapped.

PIN codes were delivered to an address the policy admitted. In our tests no code arrived for addresses the policy did not admit, including every address under an org-only policy. Delivery was intermittent during testing, so that negative case is observed rather than proven.

Neither negative case fell back to email, so nameIdFormat: 'id' is not needed.

Pilot rollout

Before merge

  • Live checks on a throwaway app (above)
  • Dashboard save and read-back (second round, above)
  • Den's follow-ups: login-method rule (tested on its own), unmapped lookup with the final expression, PIN refusal, constant attribute
  • @localden resolves the live-checks thread

Not covered, and not blocking: checking the signature against the app certificate.

After merge — connect Google and activate the pilot

  1. Deploy with inert SP values. Wait about a minute for the edge to update. Then @sambhav:
    • Reads the app back (cf zero-trust access applications get) and confirms:
      • the NameID transform matches buildNameIdTransform and has no idp clause
      • the attribute transform is {"source": "cloudflare-access"}
      • the policy has the GitHub login-method rule
      • allowed_idps is GitHub only and the Cloudflare One Client option is off
      • both the app and the policy use 1h
    • Verifies that an org member outside the workspace-sso team is denied.
    • Records the tenant's global session duration.
    • Optional: signs in with a SAML tracer browser extension and confirms the NameID is the mapped address. The POST to access.invalid fails, but the signed response is visible before it's sent.
  2. @localden owns the Access edit token follow-up. Complete it before connecting Google.
  3. @sambhav supplies the Access SSO URL, entity ID and signing certificate. Either @dsp-ant or @localden creates a modern SAML profile, leaves it unassigned, and returns its SP entity ID and ACS URL. Keep legacy SSO disabled.
  4. @sambhav sets both Google values in a follow-up PR. After deployment, wait about a minute, then:
    • the Workspace admin confirms that post-SSO verification applies to SSO-profile users, 2-Step Verification is enforced for the pilot, and sambhav@ is enrolled and has no Workspace admin role
    • then the admin assigns the profile to the OU that contains only that account.
  5. @sambhav tests a fresh sign-in to the expected mailbox. If rollback is needed, the Workspace admin removes the pilot OU assignment.

The README covers enabling more members and revoking Google and Cloudflare sessions during offboarding. A mapping change takes effect on the next assertion, about a minute after deploy. Existing Google sessions and Access sessions still have to be revoked.

@sambhav
sambhav requested a review from a team as a code owner October 24, 2026 16:34
@github-actions

github-actions Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Pulumi Preview

Click to expand preview output
Previewing update (prod):
  pulumi:pulumi:Stack: (same)
    [urn=urn:pulumi:prod::mcp-access::pulumi:pulumi:Stack::mcp-access-prod]
    + github:index/team:Team: (create)
        [urn=urn:pulumi:prod::mcp-access::github:index/team:Team::workspace-sso]
        [provider=urn:pulumi:prod::mcp-access::pulumi:providers:github::default_6_12_1::9dc4cfd7-8c80-477f-9406-ba2b0eddff00]
        description        : "Members enabled for Google Workspace SAML sign-in \n(Managed by github.com/modelcontextprotocol/access)"
        name               : "workspace-sso"
        notificationSetting: "notifications_enabled"
        parentTeamId       : ""
        privacy            : "closed"
    + cloudflare:index/zeroTrustAccessPolicy:ZeroTrustAccessPolicy: (create)
        [urn=urn:pulumi:prod::mcp-access::cloudflare:index/zeroTrustAccessPolicy:ZeroTrustAccessPolicy::access-policy-workspace-sso]
        [provider=urn:pulumi:prod::mcp-access::pulumi:providers:cloudflare::cloudflare::6486a556-2f83-4a2a-806d-3494b1196a85]
        accountId      : "c39d6379ccfdb20a3627eeddffa80ec9"
        decision       : "allow"
        includes       : [
            [0]: {
                githubOrganization: {
                    identityProviderId: "1e53bc11-a504-4572-92d1-4c8d56fc198b"
                    name              : "modelcontextprotocol"
                    team              : [unknown]
                }
            }
        ]
        name           : "Google Workspace sign-in"
        requires       : [
            [0]: {
                loginMethod: {
                    id: "1e53bc11-a504-4572-92d1-4c8d56fc198b"
                }
            }
        ]
        sessionDuration: "1h"
    + cloudflare:index/zeroTrustAccessApplication:ZeroTrustAccessApplication: (create)
        [urn=urn:pulumi:prod::mcp-access::cloudflare:index/zeroTrustAccessApplication:ZeroTrustAccessApplication::access-app-workspace-sso]
        [provider=urn:pulumi:prod::mcp-access::pulumi:providers:cloudflare::cloudflare::6486a556-2f83-4a2a-806d-3494b1196a85]
        accountId               : "c39d6379ccfdb20a3627eeddffa80ec9"
        allowAuthenticateViaWarp: false
        allowedIdps             : [
            [0]: "1e53bc11-a504-4572-92d1-4c8d56fc198b"
        ]
        appLauncherVisible      : false
        autoRedirectToIdentity  : true
        name                    : "Google Workspace"
        policies                : [
            [0]: {
                id        : [unknown]
                precedence: 1
            }
        ]
        saasApp                 : {
            authType                     : "saml"
            consumerServiceUrl           : "https://access.invalid/acs"
            nameIdFormat                 : "email"
            nameIdTransformJsonata       : "(\n  $allowed := \"modelcontextprotocol\" in groups.name and $type(id) in [\"number\", \"string\"];\n  $email := $allowed ? $lookup({\"16130816\":\"sambhav@modelcontextprotocol.io\"}, $string(id));\n..."
            samlAttributeTransformJsonata: (json) {
                source: "cloudflare-access"
            }

            spEntityId                   : "https://access.invalid/sp"
        }
        sessionDuration         : "1h"
        type                    : "saas"
    ~ googleworkspace:index/orgUnit:OrgUnit: (update)
        [id=id:03ph8a2z0nc6rsr]
        [urn=urn:pulumi:prod::mcp-access::googleworkspace:index/orgUnit:OrgUnit::mcp-org-unit]
        [provider=urn:pulumi:prod::mcp-access::pulumi:providers:googleworkspace::default_0_11_2::2a78e29b-bbb9-425e-a8de-1a161a6a7d9f]
        description      : "Model Context Protocol"
        name             : "Model Context Protocol"
        parentOrgUnitPath: "/"
    + github:index/teamMembership:TeamMembership: (create)
        [urn=urn:pulumi:prod::mcp-access::github:index/teamMembership:TeamMembership::sambhav-workspace-sso]
        [provider=urn:pulumi:prod::mcp-access::pulumi:providers:github::default_6_12_1::9dc4cfd7-8c80-477f-9406-ba2b0eddff00]
        role      : "member"
        teamId    : [unknown]
        username  : "sambhav"
    ~ googleworkspace:index/groupSettings:GroupSettings: (update)
        [id=maintainers@modelcontextprotocol.io]
        [urn=urn:pulumi:prod::mcp-access::googleworkspace:index/groupSettings:GroupSettings::maintainers]
        [provider=urn:pulumi:prod::mcp-access::pulumi:providers:googleworkspace::default_0_11_2::2a78e29b-bbb9-425e-a8de-1a161a6a7d9f]
        allowExternalMembers : true
        email                : "maintainers@modelcontextprotocol.io"
        whoCanContactOwner   : "ALL_OWNERS_CAN_CONTACT"
        whoCanJoin           : "INVITED_CAN_JOIN"
        whoCanLeaveGroup     : "NONE_CAN_LEAVE"
        whoCanModerateMembers: "NONE"
        whoCanPostMessage    : "ALL_OWNERS_CAN_POST"
        whoCanViewGroup      : "ALL_OWNERS_CAN_VIEW"
        whoCanViewMembership : "ALL_IN_DOMAIN_CAN_VIEW"
    ~ googleworkspace:index/groupSettings:GroupSettings: (update)
        [id=registry-wg@modelcontextprotocol.io]
        [urn=urn:pulumi:prod::mcp-access::googleworkspace:index/groupSettings:GroupSettings::registry-wg]
        [provider=urn:pulumi:prod::mcp-access::pulumi:providers:googleworkspace::default_0_11_2::2a78e29b-bbb9-425e-a8de-1a161a6a7d9f]
        allowExternalMembers : true
        email                : "registry-wg@modelcontextprotocol.io"
        whoCanContactOwner   : "ALL_OWNERS_CAN_CONTACT"
        whoCanJoin           : "INVITED_CAN_JOIN"
        whoCanLeaveGroup     : "NONE_CAN_LEAVE"
        whoCanModerateMembers: "NONE"
        whoCanPostMessage    : "ALL_OWNERS_CAN_POST"
        whoCanViewGroup      : "ALL_OWNERS_CAN_VIEW"
        whoCanViewMembership : "ALL_IN_DOMAIN_CAN_VIEW"
    ~ googleworkspace:index/groupSettings:GroupSettings: (update)
        [id=security@modelcontextprotocol.io]
        [urn=urn:pulumi:prod::mcp-access::googleworkspace:index/groupSettings:GroupSettings::security]
        [provider=urn:pulumi:prod::mcp-access::pulumi:providers:googleworkspace::default_0_11_2::2a78e29b-bbb9-425e-a8de-1a161a6a7d9f]
        allowExternalMembers : false
        email                : "security@modelcontextprotocol.io"
        whoCanContactOwner   : "ALL_OWNERS_CAN_CONTACT"
        whoCanJoin           : "INVITED_CAN_JOIN"
        whoCanLeaveGroup     : "NONE_CAN_LEAVE"
        whoCanModerateMembers: "NONE"
        whoCanPostMessage    : "ANYONE_CAN_POST"
        whoCanViewGroup      : "ALL_MEMBERS_CAN_VIEW"
        whoCanViewMembership : "ALL_IN_DOMAIN_CAN_VIEW"
    ~ googleworkspace:index/groupSettings:GroupSettings: (update)
        [id=moderators@modelcontextprotocol.io]
        [urn=urn:pulumi:prod::mcp-access::googleworkspace:index/groupSettings:GroupSettings::moderators]
        [provider=urn:pulumi:prod::mcp-access::pulumi:providers:googleworkspace::default_0_11_2::2a78e29b-bbb9-425e-a8de-1a161a6a7d9f]
        allowExternalMembers : false
        email                : "moderators@modelcontextprotocol.io"
        whoCanContactOwner   : "ALL_OWNERS_CAN_CONTACT"
        whoCanJoin           : "INVITED_CAN_JOIN"
        whoCanLeaveGroup     : "NONE_CAN_LEAVE"
        whoCanModerateMembers: "NONE"
        whoCanPostMessage    : "ALL_OWNERS_CAN_POST"
        whoCanViewGroup      : "ALL_OWNERS_CAN_VIEW"
        whoCanViewMembership : "ALL_IN_DOMAIN_CAN_VIEW"
    ~ googleworkspace:index/groupSettings:GroupSettings: (update)
        [id=antitrust@modelcontextprotocol.io]
        [urn=urn:pulumi:prod::mcp-access::googleworkspace:index/groupSettings:GroupSettings::antitrust]
        [provider=urn:pulumi:prod::mcp-access::pulumi:providers:googleworkspace::default_0_11_2::2a78e29b-bbb9-425e-a8de-1a161a6a7d9f]
        allowExternalMembers : true
        email                : "antitrust@modelcontextprotocol.io"
        whoCanContactOwner   : "ALL_OWNERS_CAN_CONTACT"
        whoCanJoin           : "INVITED_CAN_JOIN"
        whoCanLeaveGroup     : "NONE_CAN_LEAVE"
        whoCanModerateMembers: "NONE"
        whoCanPostMessage    : "ANYONE_CAN_POST"
        whoCanViewGroup      : "ALL_MEMBERS_CAN_VIEW"
        whoCanViewMembership : "ALL_IN_DOMAIN_CAN_VIEW"
    ~ googleworkspace:index/groupSettings:GroupSettings: (update)
        [id=core-maintainers@modelcontextprotocol.io]
        [urn=urn:pulumi:prod::mcp-access::googleworkspace:index/groupSettings:GroupSettings::core-maintainers]
        [provider=urn:pulumi:prod::mcp-access::pulumi:providers:googleworkspace::default_0_11_2::2a78e29b-bbb9-425e-a8de-1a161a6a7d9f]
        allowExternalMembers : false
        email                : "core-maintainers@modelcontextprotocol.io"
        whoCanContactOwner   : "ALL_OWNERS_CAN_CONTACT"
        whoCanJoin           : "INVITED_CAN_JOIN"
        whoCanLeaveGroup     : "NONE_CAN_LEAVE"
        whoCanModerateMembers: "NONE"
        whoCanPostMessage    : "ALL_OWNERS_CAN_POST"
        whoCanViewGroup      : "ALL_OWNERS_CAN_VIEW"
        whoCanViewMembership : "ALL_IN_DOMAIN_CAN_VIEW"
    ~ googleworkspace:index/groupSettings:GroupSettings: (update)
        [id=catch-all@modelcontextprotocol.io]
        [urn=urn:pulumi:prod::mcp-access::googleworkspace:index/groupSettings:GroupSettings::catch-all]
        [provider=urn:pulumi:prod::mcp-access::pulumi:providers:googleworkspace::default_0_11_2::2a78e29b-bbb9-425e-a8de-1a161a6a7d9f]
        allowExternalMembers : true
        email                : "catch-all@modelcontextprotocol.io"
        whoCanContactOwner   : "ALL_OWNERS_CAN_CONTACT"
        whoCanJoin           : "INVITED_CAN_JOIN"
        whoCanLeaveGroup     : "NONE_CAN_LEAVE"
        whoCanModerateMembers: "NONE"
        whoCanPostMessage    : "ANYONE_CAN_POST"
        whoCanViewGroup      : "ALL_MEMBERS_CAN_VIEW"
        whoCanViewMembership : "ALL_IN_DOMAIN_CAN_VIEW"
    ~ googleworkspace:index/groupSettings:GroupSettings: (update)
        [id=lead-maintainers@modelcontextprotocol.io]
        [urn=urn:pulumi:prod::mcp-access::googleworkspace:index/groupSettings:GroupSettings::lead-maintainers]
        [provider=urn:pulumi:prod::mcp-access::pulumi:providers:googleworkspace::default_0_11_2::2a78e29b-bbb9-425e-a8de-1a161a6a7d9f]
        allowExternalMembers : false
        email                : "lead-maintainers@modelcontextprotocol.io"
        whoCanContactOwner   : "ALL_OWNERS_CAN_CONTACT"
        whoCanJoin           : "INVITED_CAN_JOIN"
        whoCanLeaveGroup     : "NONE_CAN_LEAVE"
        whoCanModerateMembers: "NONE"
        whoCanPostMessage    : "ALL_OWNERS_CAN_POST"
        whoCanViewGroup      : "ALL_OWNERS_CAN_VIEW"
        whoCanViewMembership : "ALL_IN_DOMAIN_CAN_VIEW"
    ~ googleworkspace:index/groupSettings:GroupSettings: (update)
        [id=appeals@modelcontextprotocol.io]
        [urn=urn:pulumi:prod::mcp-access::googleworkspace:index/groupSettings:GroupSettings::appeals]
        [provider=urn:pulumi:prod::mcp-access::pulumi:providers:googleworkspace::default_0_11_2::2a78e29b-bbb9-425e-a8de-1a161a6a7d9f]
        allowExternalMembers : false
        email                : "appeals@modelcontextprotocol.io"
        whoCanContactOwner   : "ALL_OWNERS_CAN_CONTACT"
        whoCanJoin           : "INVITED_CAN_JOIN"
        whoCanLeaveGroup     : "NONE_CAN_LEAVE"
        whoCanModerateMembers: "NONE"
        whoCanPostMessage    : "ANYONE_CAN_POST"
        whoCanViewGroup      : "ALL_MEMBERS_CAN_VIEW"
        whoCanViewMembership : "ALL_IN_DOMAIN_CAN_VIEW"
    --outputs:--
  ~ cloudflareAccessPolicies : {
      ~ security-room-maintainers: {
            accountId                   : "c39d6379ccfdb20a3627eeddffa80ec9"
            appCount                    : 1
          + approvalGroups              : [unknown]
          + approvalRequired            : [unknown]
            connectionRules             : {
                rdp: {}
            }
            createdAt                   : "2026-08-30T07:04:32Z"
            decision                    : "allow"
          + excludes                    : [unknown]
            id                          : "11a6814e-bb85-4ea2-aa12-6b081b09aa56"
            includes                    : [
                [0]: {
                    githubOrganization: {
                        identityProviderId: "1e53bc11-a504-4572-92d1-4c8d56fc198b"
                        name              : "modelcontextprotocol"
                        team              : "core-maintainers"
                    }
                }
                [1]: {
                    githubOrganization: {
                        identityProviderId: "1e53bc11-a504-4572-92d1-4c8d56fc198b"
                        name              : "modelcontextprotocol"
                        team              : "lead-maintainers"
                    }
                }
                [2]: {
                    githubOrganization: {
                        identityProviderId: "1e53bc11-a504-4572-92d1-4c8d56fc198b"
                        name              : "modelcontextprotocol"
                        team              : "security-managers"
                    }
                }
                [3]: {
                    githubOrganization: {
                        identityProviderId: "1e53bc11-a504-4572-92d1-4c8d56fc198b"
                        name              : "modelcontextprotocol"
                        team              : "security-team"
                    }
                }
            ]
          + isolationRequired           : [unknown]
          + mfaConfig                   : [unknown]
            name                        : "Maintainers"
          + purposeJustificationPrompt  : [unknown]
          + purposeJustificationRequired: [unknown]
          + requires                    : [unknown]
            reusable                    : true
          + sessionDuration             : [unknown]
            updatedAt                   : "2026-09-29T22:44:09Z"
            urn                         : "urn:pulumi:prod::mcp-access::cloudflare:index/zeroTrustAccessPolicy:ZeroTrustAccessPolicy::access-policy-security-room-maintainers"
        }
    }
  ~ githubTeams              : {
        agents-ig                    : {
            createDefaultMaintainer: false
            description            : "Agents Interest Group \n(Managed by github.com/modelcontextprotocol/access)"
            etag                   : "W/\"4fcd42493b777b5ea703dd376c23123c1e00cf0abff98d76b6e6e2bf0d83d838\""
            id                     : "20346310"
            ldapDn                 : ""
            membersCount           : 4
            name                   : "agents-ig"
            nodeId                 : "T_kwDOCt2Azc4BNnXG"
            notificationSetting    : "notifications_enabled"
            parentTeamId           : "14435869"
            parentTeamReadId       : "14435869"
            parentTeamReadSlug     : "interest-groups"
            privacy                : "closed"
            slug                   : "agents-ig"
            urn                    : "urn:pulumi:prod::mcp-access::github:index/team:Team::agents-ig"
        }
        auth-contributors            : {
            createDefaultMaintainer: false
            description            : "Auth extension contributors with write access to ext-auth \n(Managed by github.com/modelcontextprotocol/access)"
            etag                   : "W/\"932649f149cfbe7069da24bad881e3cbedd1dbf1527b0d247f1736c9fd65a94a\""
            id                     : "20865410"
            ldapDn                 : ""
            membersCount           : 2
            name                   : "auth-contributors"
            nodeId                 : "T_kwDOCt2Azc4BPmGC"
            notificationSetting    : "notifications_enabled"
            parentTeamId           : ""
            parentTeamReadId       : ""
            parentTeamReadSlug     : ""
            privacy                : "closed"
            slug                   : "auth-contributors"
            urn                    : "urn:pulumi:prod::mcp-access::github:index/team:Team::auth-contributors"
        }
        auth-maintainers             : {
            createDefaultMaintainer: false
            description            : "Auth Maintainers \n(Managed by github.com/modelcontextprotocol/access)"
            etag                   : "W/\"53c167326c4351b466d1330652dad4adb4e27f23a7352f0149a4170e95faba07\""
            id                     : "16083315"
            ldapDn                 : ""
            membersCount           : 7
            name                   : "auth-maintainers"
            nodeId                 : "T_kwDOCt2Azc4A9Wlz"
            notificationSetting    : "notifications_enabled"
            parentTeamId           : "14435868"
            parentTeamReadId       : "14435868"
            parentTeamReadSlug     : "working-groups"
            privacy                : "closed"
            slug                   : "auth-maintainers"
            urn                    : "urn:pulumi:prod::mcp-access::github:index/team:Team::auth-maintainers"
        }
        auth-wg-fine-grained-authz   : {
            createDefaultMaintainer: false
            description            : "Auth Fine-Grained Authorization Working Group \n(Managed by github.com/modelcontextprotocol/access)"
            etag                   : "W/\"6f484b9184cc8356e5f9a346ed27d36f167bbdf2add04f1cb8e3310ff811b745\""
            id                     : "19051555"
            ldapDn                 : ""
            membersCount           : 0
            name                   : "auth-wg-fine-grained-authz"
            nodeId                 : "T_kwDOCt2Azc4BIrQj"
            notificationSetting    : "notifications_enabled"
            parentTeamId           : "14435868"
            parentTeamReadId       : "14435868"
            parentTeamReadSlug     : "working-groups"
            privacy                : "closed"
            slug                   : "auth-wg-fine-grained-authz"
            urn                    : "urn:pulumi:prod::mcp-access::github:index/team:Team::auth-wg-fine-grained-authz"
        }
        auth-wg-tool-scopes          : {
            createDefaultMaintainer: false
            description            : "Auth Tool Scopes Working Group \n(Managed by github.com/modelcontextprotocol/access)"
            etag                   : "W/\"ff9cc3dccd530918386976de51cfdde4cf8af8a56c773467cfce17cbe04f5d7f\""
            id                     : "19051557"
            ldapDn                 : ""
            membersCount           : 0
            name                   : "auth-wg-tool-scopes"
            nodeId                 : "T_kwDOCt2Azc4BIrQl"
            notificationSetting    : "notifications_enabled"
            parentTeamId           : "14435868"
            parentTeamReadId       : "14435868"
            parentTeamReadSlug     : "working-groups"
            privacy                : "closed"
            slug                   : "auth-wg-tool-scopes"
            urn                    : "urn:pulumi:prod::mcp-access::github:index/team:Team::auth-wg-tool-scopes"
        }
        conformance-auth             : {
            createDefaultMaintainer: false
            description            : "Conformance authorization-server code owners \n(Managed by github.com/modelcontextprotocol/access)"
            etag                   : "W/\"334cc64cff0a801f31abfd3b7a3235e51b0a8810d59707272ae460f54e254064\""
            id                     : "19337897"
            ldapDn                 : ""
            membersCount           : 2
            name                   : "conformance-auth"
            nodeId                 : "T_kwDOCt2Azc4BJxKp"
            notificationSetting    : "notifications_enabled"
            parentTeamId           : ""
            parentTeamReadId       : ""
            parentTeamReadSlug     : ""
            privacy                : "closed"
            slug                   : "conformance-auth"
            urn                    : "urn:pulumi:prod::mcp-access::github:index/team:Team::conformance-auth"
        }
        core-maintainers             : {
            createDefaultMaintainer: false
            description            : "Core maintainers \n(Managed by github.com/modelcontextprotocol/access)"
            etag                   : "W/\"1c430f99cec48990d97ceef402f75d179d6cc2b38cebb2998663971e26ef9f18\""
            id                     : "14435865"
            ldapDn                 : ""
            membersCount           : 12
            name                   : "core-maintainers"
            nodeId                 : "T_kwDOCt2Azc4A3EYZ"
            notificationSetting    : "notifications_enabled"
            parentTeamId           : "14435861"
            parentTeamReadId       : "14435861"
            parentTeamReadSlug     : "steering-committee"
            privacy                : "closed"
            slug                   : "core-maintainers"
            urn                    : "urn:pulumi:prod::mcp-access::github:index/team:Team::core-maintainers"
        }
        core-primitive-wg            : {
            createDefaultMaintainer: false
            description            : "Core Primitive Working Group \n(Managed by github.com/modelcontextprotocol/access)"
            etag                   : "W/\"7150cf5128dfc48ad195425ec2d711bb4b72b75ef4592449926807c9f48e2c88\""
            id                     : "19087061"
            ldapDn                 : ""
            membersCount           : 2
            name                   : "core-primitive-wg"
            nodeId                 : "T_kwDOCt2Azc4BIz7V"
            notificationSetting    : "notifications_enabled"
            parentTeamId           : "14435868"
            parentTeamReadId       : "14435868"
            parentTeamReadSlug     : "working-groups"
            privacy                : "closed"
            slug                   : "core-primitive-wg"
            urn                    : "urn:pulumi:prod::mcp-access::github:index/team:Team::core-primitive-wg"
        }
        core-primitives-wg-leads     : {
            createDefaultMaintainer: false
            description            : "Core Primitives Working Group leads \n(Managed by github.com/modelcontextprotocol/access)"
            etag                   : "W/\"17715c6707a9a3e265773362f36f3cc2dc7f4184b5aadd257cfcf0ce515e0f79\""
            id                     : "20555391"
            ldapDn                 : ""
            membersCount           : 2
            name                   : "core-primitives-wg-leads"
            nodeId                 : "T_kwDOCt2Azc4BOaZ_"
            notificationSetting    : "notifications_enabled"
            parentTeamId           : "19087061"
            parentTeamReadId       : "19087061"
            parentTeamReadSlug     : "core-primitive-wg"
            privacy                : "closed"
            slug                   : "core-primitives-wg-leads"
            urn                    : "urn:pulumi:prod::mcp-access::github:index/team:Team::core-primitives-wg-leads"
        }
        csharp-sdk                   : {
            createDefaultMaintainer: false
            description            : "Official C# SDK maintainers \n(Managed by github.com/modelcontextprotocol/access)"
            etag                   : "W/\"c770d34abc6dff9046fa997af7745679ba691b6de81778e1f31d3968e8047e02\""
            id                     : "14435898"
            ldapDn                 : ""
            membersCount           : 10
            name                   : "csharp-sdk"
            nodeId                 : "T_kwDOCt2Azc4A3EY6"
            notificationSetting    : "notifications_enabled"
            parentTeamId           : "14435871"
            parentTeamReadId       : "14435871"
            parentTeamReadSlug     : "sdk-maintainers"
            privacy                : "closed"
            slug                   : "csharp-sdk"
            urn                    : "urn:pulumi:prod::mcp-access::github:index/team:Team::csharp-sdk"
        }
        csharp-sdk-admin             : {
            createDefaultMaintainer: false
            description            : "C# SDK repository admins \n(Managed by github.com/modelcontextprotocol/access)"
            etag                   : "W/\"106c3b45a2b88cab6e0d1ca060a26d993ff437f967b31614c9747470d02273e4\""
            id                     : "16644883"
            ldapDn                 : ""
            membersCount           : 8
            name                   : "csharp-sdk-admin"
            nodeId                 : "T_kwDOCt2Azc4A_fsT"
            notificationSetting    : "notifications_enabled"
            parentTeamId           : "14435898"
            parentTeamReadId       : "14435898"
            parentTeamReadSlug     : "csharp-sdk"
            privacy                : "closed"
            slug                   : "csharp-sdk-admin"
            urn                    : "urn:pulumi:prod::mcp-access::github:index/team:Team::csharp-sdk-admin"
        }
        docs-maintainers             : {
            createDefaultMaintainer: false
            description            : "MCP docs maintainers \n(Managed by github.com/modelcontextprotocol/access)"
            etag                   : "W/\"6bae7327ea7f8e46ceeb2a9f247f66ca21b02b503968000a48911c0078099d5a\""
            id                     : "15811679"
            ldapDn                 : ""
            membersCount           : 13
            name                   : "docs-maintainers"
            nodeId                 : "T_kwDOCt2Azc4A8URf"
            notificationSetting    : "notifications_enabled"
            parentTeamId           : "14435861"
            parentTeamReadId       : "14435861"
            parentTeamReadSlug     : "steering-committee"
            privacy                : "closed"
            slug                   : "docs-maintainers"
            urn                    : "urn:pulumi:prod::mcp-access::github:index/team:Team::docs-maintainers"
        }
        file-uploads-wg              : {
            createDefaultMaintainer: false
            description            : "File Uploads Working Group \n(Managed by github.com/modelcontextprotocol/access)"
            etag                   : "W/\"4d25c010509d3c965b0a5e60e3934bfc6588a63a6659d43c1ca6cc27db3efa14\""
            id                     : "17260661"
            ldapDn                 : ""
            membersCount           : 6
            name                   : "file-uploads-wg"
            nodeId                 : "T_kwDOCt2Azc4BB2B1"
            notificationSetting    : "notifications_enabled"
            parentTeamId           : "14435868"
            parentTeamReadId       : "14435868"
            parentTeamReadSlug     : "working-groups"
            privacy                : "closed"
            slug                   : "file-uploads-wg"
            urn                    : "urn:pulumi:prod::mcp-access::github:index/team:Team::file-uploads-wg"
        }
        filesystems-wg               : {
            createDefaultMaintainer: false
            description            : "Filesystems Working Group \n(Managed by github.com/modelcontextprotocol/access)"
            etag                   : "W/\"be29d16794d259b84d6f91317ed330b7c3a3a405eba92661184c24440d2b9521\""
            id                     : "19423521"
            ldapDn                 : ""
            membersCount           : 7
            name                   : "filesystems-wg"
            nodeId                 : "T_kwDOCt2Azc4BKGEh"
            notificationSetting    : "notifications_enabled"
            parentTeamId           : "14435868"
            parentTeamReadId       : "14435868"
            parentTeamReadSlug     : "working-groups"
            privacy                : "closed"
            slug                   : "filesystems-wg"
            urn                    : "urn:pulumi:prod::mcp-access::github:index/team:Team::filesystems-wg"
        }
        filesystems-wg-leads         : {
            createDefaultMaintainer: false
            description            : "Filesystems Working Group leads \n(Managed by github.com/modelcontextprotocol/access)"
            etag                   : "W/\"cddccf1d337363839aa2a6fd5aab3c70a9776e46ffe1a3d7fd265c49ad24b9eb\""
            id                     : "20140141"
            ldapDn                 : ""
            membersCount           : 3
            name                   : "filesystems-wg-leads"
            nodeId                 : "T_kwDOCt2Azc4BM1Bt"
            notificationSetting    : "notifications_enabled"
            parentTeamId           : "19423521"
            parentTeamReadId       : "19423521"
            parentTeamReadSlug     : "filesystems-wg"
            privacy                : "closed"
            slug                   : "filesystems-wg-leads"
            urn                    : "urn:pulumi:prod::mcp-access::github:index/team:Team::filesystems-wg-leads"
        }
        go-sdk                       : {
            createDefaultMaintainer: false
            description            : "The Go SDK Team \n(Managed by github.com/modelcontextprotocol/access)"
            etag                   : "W/\"02db603ca89061d7bcd0161d6cd5cb6d8f086986402b1e91dc2ced54093bd792\""
            id                     : "14435896"
            ldapDn                 : ""
            membersCount           : 10
            name                   : "go-sdk"
            nodeId                 : "T_kwDOCt2Azc4A3EY4"
            notificationSetting    : "notifications_enabled"
            parentTeamId           : "14435871"
            parentTeamReadId       : "14435871"
            parentTeamReadSlug     : "sdk-maintainers"
            privacy                : "closed"
            slug                   : "go-sdk"
            urn                    : "urn:pulumi:prod::mcp-access::github:index/team:Team::go-sdk"
        }
        governance-wg                : {
            createDefaultMaintainer: false
            description            : "Governance Working Group \n(Managed by github.com/modelcontextprotocol/access)"
            etag                   : "W/\"57a9935dc3c99542bf3d6d3bb48138849e0405b34809b6e8d16a67f70d6a3558\""
            id                     : "20197338"
            ldapDn                 : ""
            membersCount           : 4
            name                   : "governance-wg"
            nodeId                 : "T_kwDOCt2Azc4BNC_a"
            notificationSetting    : "notifications_enabled"
            parentTeamId           : "14435868"
            parentTeamReadId       : "14435868"
            parentTeamReadSlug     : "working-groups"
            privacy                : "closed"
            slug                   : "governance-wg"
            urn                    : "urn:pulumi:prod::mcp-access::github:index/team:Team::governance-wg"
        }
        ig-financial-services        : {
            createDefaultMaintainer: false
            description            : "Financial Services Interest Group \n(Managed by github.com/modelcontextprotocol/access)"
            etag                   : "W/\"45fc67947ab809403524f5750096338ae7c6ac8f828d5ed882772091b2c742a6\""
            id                     : "14435884"
            ldapDn                 : ""
            membersCount           : 7
            name                   : "ig-financial-services"
            nodeId                 : "T_kwDOCt2Azc4A3EYs"
            notificationSetting    : "notifications_enabled"
            parentTeamId           : "14435869"
            parentTeamReadId       : "14435869"
            parentTeamReadSlug     : "interest-groups"
            privacy                : "closed"
            slug                   : "ig-financial-services"
            urn                    : "urn:pulumi:prod::mcp-access::github:index/team:Team::ig-financial-services"
        }
        infrastructure-wg            : {
            createDefaultMaintainer: false
            description            : "Infrastructure Working Group \n(Managed by github.com/modelcontextprotocol/access)"
            etag                   : "W/\"4021f4f52698db0df61b8f1710acf8cf9cb84c9c41b827daf15fd1de4e43ad22\""
            id                     : "19662960"
            ldapDn                 : ""
            membersCount           : 4
            name                   : "infrastructure-wg"
            nodeId                 : "T_kwDOCt2Azc4BLAhw"
            notificationSetting    : "notifications_enabled"
            parentTeamId           : "14435868"
            parentTeamReadId       : "14435868"
            parentTeamReadSlug     : "working-groups"
            privacy                : "closed"
            slug                   : "infrastructure-wg"
            urn                    : "urn:pulumi:prod::mcp-access::github:index/team:Team::infrastructure-wg"
        }
        inspector-maintainers        : {
            createDefaultMaintainer: false
            description            : "MCP Inspector maintainers \n(Managed by github.com/modelcontextprotocol/access)"
            etag                   : "W/\"0a9bda50d1a89f6c1a6263dd7f50d72947f48f47b85eef2b73e5e2995f31a572\""
            id                     : "14642559"
            ldapDn                 : ""
            membersCount           : 4
            name                   : "inspector-maintainers"
            nodeId                 : "T_kwDOCt2Azc4A321_"
            notificationSetting    : "notifications_enabled"
            parentTeamId           : "14435861"
            parentTeamReadId       : "14435861"
            parentTeamReadSlug     : "steering-committee"
            privacy                : "closed"
            slug                   : "inspector-maintainers"
            urn                    : "urn:pulumi:prod::mcp-access::github:index/team:Team::inspector-maintainers"
        }
        interceptors-wg              : {
            createDefaultMaintainer: false
            description            : "Interceptors Working Group \n(Managed by github.com/modelcontextprotocol/access)"
            etag                   : "W/\"441ab0ae6f4c556b89df724e24c81920b4261584d10a0228a281bdfc316ca417\""
            id                     : "17218506"
            ldapDn                 : ""
            membersCount           : 10
            name                   : "interceptors-wg"
            nodeId                 : "T_kwDOCt2Azc4BBrvK"
            notificationSetting    : "notifications_enabled"
            parentTeamId           : "14435868"
            parentTeamReadId       : "14435868"
            parentTeamReadSlug     : "working-groups"
            privacy                : "closed"
            slug                   : "interceptors-wg"
            urn                    : "urn:pulumi:prod::mcp-access::github:index/team:Team::interceptors-wg"
        }
        interest-groups              : {
            createDefaultMaintainer: false
            description            : "Interest Groups \n(Managed by github.com/modelcontextprotocol/access)"
            etag                   : "W/\"1cd8fc20a7b3d97ff71d487b831df7f7249a8f7d7e581c8bd999ace859dd80df\""
            id                     : "14435869"
            ldapDn                 : ""
            membersCount           : 23
            name                   : "interest-groups"
            nodeId                 : "T_kwDOCt2Azc4A3EYd"
            notificationSetting    : "notifications_enabled"
            parentTeamId           : "14435861"
            parentTeamReadId       : "14435861"
            parentTeamReadSlug     : "steering-committee"
            privacy                : "closed"
            slug                   : "interest-groups"
            urn                    : "urn:pulumi:prod::mcp-access::github:index/team:Team::interest-groups"
        }
        java-sdk                     : {
            createDefaultMaintainer: false
            description            : "Official Java SDK maintainers \n(Managed by github.com/modelcontextprotocol/access)"
            etag                   : "W/\"2994257511319e4102acae2dfb87c0b8a7a9ff98e631243ca63bbd024706e535\""
            id                     : "14435899"
            ldapDn                 : ""
            membersCount           : 4
            name                   : "java-sdk"
            nodeId                 : "T_kwDOCt2Azc4A3EY7"
            notificationSetting    : "notifications_enabled"
            parentTeamId           : "14435871"
            parentTeamReadId       : "14435871"
            parentTeamReadSlug     : "sdk-maintainers"
            privacy                : "closed"
            slug                   : "java-sdk"
            urn                    : "urn:pulumi:prod::mcp-access::github:index/team:Team::java-sdk"
        }
        kotlin-sdk                   : {
            createDefaultMaintainer: false
            description            : "Official Kotlin SDK maintainers \n(Managed by github.com/modelcontextprotocol/access)"
            etag                   : "W/\"c4b385c6efa00460f17a7093485286b1a884b694ed423dfa739eac72122f1aaa\""
            id                     : "14435895"
            ldapDn                 : ""
            membersCount           : 6
            name                   : "kotlin-sdk"
            nodeId                 : "T_kwDOCt2Azc4A3EY3"
            notificationSetting    : "notifications_enabled"
            parentTeamId           : "14435871"
            parentTeamReadId       : "14435871"
            parentTeamReadSlug     : "sdk-maintainers"
            privacy                : "closed"
            slug                   : "kotlin-sdk"
            urn                    : "urn:pulumi:prod::mcp-access::github:index/team:Team::kotlin-sdk"
        }
        lead-maintainers             : {
            createDefaultMaintainer: false
            description            : "Lead core maintainers \n(Managed by github.com/modelcontextprotocol/access)"
            etag                   : "W/\"1c58d47df013cf345413a264a5b818c1f44693ac53115b25c8009211615bc495\""
            id                     : "15811944"
            ldapDn                 : ""
            membersCount           : 5
            name                   : "lead-maintainers"
            nodeId                 : "T_kwDOCt2Azc4A8UVo"
            notificationSetting    : "notifications_enabled"
            parentTeamId           : "14435861"
            parentTeamReadId       : "14435861"
            parentTeamReadSlug     : "steering-committee"
            privacy                : "closed"
            slug                   : "lead-maintainers"
            urn                    : "urn:pulumi:prod::mcp-access::github:index/team:Team::lead-maintainers"
        }
        maintainers                  : {
            createDefaultMaintainer: false
            description            : "General maintainers \n(Managed by github.com/modelcontextprotocol/access)"
            etag                   : "W/\"d802411091686d15ea894a4541213da2ec3e41887a379bd12b23e1f114cdda09\""
            id                     : "19344364"
            ldapDn                 : ""
            membersCount           : 31
            name                   : "maintainers"
            nodeId                 : "T_kwDOCt2Azc4BJyvs"
            notificationSetting    : "notifications_enabled"
            parentTeamId           : ""
            parentTeamReadId       : ""
            parentTeamReadSlug     : ""
            privacy                : "closed"
            slug                   : "maintainers"
            urn                    : "urn:pulumi:prod::mcp-access::github:index/team:Team::maintainers"
        }
        mcp-apps-sdk                 : {
            createDefaultMaintainer: false
            description            : "Official MCP Apps SDK maintainers \n(Managed by github.com/modelcontextprotocol/access)"
            etag                   : "W/\"45276a239242f7904ef4cd5f8b160fdec5f6fde5a438ad068b09f1c09379a513\""
            id                     : "15826445"
            ldapDn                 : ""
            membersCount           : 5
            name                   : "mcp-apps-sdk"
            nodeId                 : "T_kwDOCt2Azc4A8X4N"
            notificationSetting    : "notifications_enabled"
            parentTeamId           : "14435871"
            parentTeamReadId       : "14435871"
            parentTeamReadSlug     : "sdk-maintainers"
            privacy                : "closed"
            slug                   : "mcp-apps-sdk"
            urn                    : "urn:pulumi:prod::mcp-access::github:index/team:Team::mcp-apps-sdk"
        }
        mcp-apps-wg                  : {
            createDefaultMaintainer: false
            description            : "MCP Apps Working Group \n(Managed by github.com/modelcontextprotocol/access)"
            etag                   : "W/\"7df5184111c4248ed1de0951c62df01ce15693fcf8e54724327685b6921dea15\""
            id                     : "15826444"
            ldapDn                 : ""
            membersCount           : 3
            name                   : "mcp-apps-wg"
            nodeId                 : "T_kwDOCt2Azc4A8X4M"
            notificationSetting    : "notifications_enabled"
            parentTeamId           : "14435868"
            parentTeamReadId       : "14435868"
            parentTeamReadSlug     : "working-groups"
            privacy                : "closed"
            slug                   : "mcp-apps-wg"
            urn                    : "urn:pulumi:prod::mcp-access::github:index/team:Team::mcp-apps-wg"
        }
        mcpb-maintainers             : {
            createDefaultMaintainer: false
            description            : "MCPB (Model Context Protocol Bundle) maintainers \n(Managed by github.com/modelcontextprotocol/access)"
            etag                   : "W/\"bfc0977bea9e3a925eda295dabf22e08038b166200993ace6ee1dcea1d5a6c46\""
            id                     : "14899069"
            ldapDn                 : ""
            membersCount           : 5
            name                   : "mcpb-maintainers"
            nodeId                 : "T_kwDOCt2Azc4A41d9"
            notificationSetting    : "notifications_enabled"
            parentTeamId           : "14435861"
            parentTeamReadId       : "14435861"
            parentTeamReadSlug     : "steering-committee"
            privacy                : "closed"
            slug                   : "mcpb-maintainers"
            urn                    : "urn:pulumi:prod::mcp-access::github:index/team:Team::mcpb-maintainers"
        }
        members                      : {
            createDefaultMaintainer: false
            description            : "Members on the contributor ladder (https://modelcontextprotocol.io/community/contributor-ladder#member) \n(Managed by github.com/modelcontextprotocol/access)"
            etag                   : "W/\"3a236e108fbafdf869fd3d86f9f638881f56a00994f57d48ece194f31dcadb0d\""
            id                     : "20555319"
            ldapDn                 : ""
            membersCount           : 9
            name                   : "members"
            nodeId                 : "T_kwDOCt2Azc4BOaY3"
            notificationSetting    : "notifications_enabled"
            parentTeamId           : ""
            parentTeamReadId       : ""
            parentTeamReadSlug     : ""
            privacy                : "closed"
            slug                   : "members"
            urn                    : "urn:pulumi:prod::mcp-access::github:index/team:Team::members"
        }
        moderators                   : {
            createDefaultMaintainer: false
            description            : "Community moderators \n(Managed by github.com/modelcontextprotocol/access)"
            etag                   : "W/\"9c0832372aade6d1c21f5ea7e63f2832636eef8821205aed35d6c70fa1f0e670\""
            id                     : "14435866"
            ldapDn                 : ""
            membersCount           : 12
            name                   : "moderators"
            nodeId                 : "T_kwDOCt2Azc4A3EYa"
            notificationSetting    : "notifications_enabled"
            parentTeamId           : "14435861"
            parentTeamReadId       : "14435861"
            parentTeamReadSlug     : "steering-committee"
            privacy                : "closed"
            slug                   : "moderators"
            urn                    : "urn:pulumi:prod::mcp-access::github:index/team:Team::moderators"
        }
        php-sdk                      : {
            createDefaultMaintainer: false
            description            : "Official PHP SDK maintainers \n(Managed by github.com/modelcontextprotocol/access)"
            etag                   : "W/\"6a9b65ea93af9ef1d46125291ca24467de6fd309797de0a57bd77418196000d7\""
            id                     : "14435889"
            ldapDn                 : ""
            membersCount           : 10
            name                   : "php-sdk"
            nodeId                 : "T_kwDOCt2Azc4A3EYx"
            notificationSetting    : "notifications_enabled"
            parentTeamId           : "14435871"
            parentTeamReadId       : "14435871"
            parentTeamReadSlug     : "sdk-maintainers"
            privacy                : "closed"
            slug                   : "php-sdk"
            urn                    : "urn:pulumi:prod::mcp-access::github:index/team:Team::php-sdk"
        }
        primitive-grouping-ig        : {
            createDefaultMaintainer: false
            description            : "Primitive Grouping Interest Group \n(Managed by github.com/modelcontextprotocol/access)"
            etag                   : "W/\"5a18f54c9366e1ebe9394cf63e0057515e5703a84a882d4f628951d0ac15168d\""
            id                     : "16220576"
            ldapDn                 : ""
            membersCount           : 3
            name                   : "primitive-grouping-ig"
            nodeId                 : "T_kwDOCt2Azc4A94Gg"
            notificationSetting    : "notifications_enabled"
            parentTeamId           : "14435869"
            parentTeamReadId       : "14435869"
            parentTeamReadSlug     : "interest-groups"
            privacy                : "closed"
            slug                   : "primitive-grouping-ig"
            urn                    : "urn:pulumi:prod::mcp-access::github:index/team:Team::primitive-grouping-ig"
        }
        python-sdk                   : {
            createDefaultMaintainer: false
            description            : "Official Python SDK maintainers \n(Managed by github.com/modelcontextprotocol/access)"
            etag                   : "W/\"f28410be05b77163df9c173cc67caadf5b329807835d93ecb9988ea861ecc0c0\""
            id                     : "14435893"
            ldapDn                 : ""
            membersCount           : 10
            name                   : "python-sdk"
            nodeId                 : "T_kwDOCt2Azc4A3EY1"
            notificationSetting    : "notifications_enabled"
            parentTeamId           : "14435871"
            parentTeamReadId       : "14435871"
            parentTeamReadSlug     : "sdk-maintainers"
            privacy                : "closed"
            slug                   : "python-sdk"
            urn                    : "urn:pulumi:prod::mcp-access::github:index/team:Team::python-sdk"
        }
        python-sdk-auth              : {
            createDefaultMaintainer: false
            description            : "Python SDK auth code owners \n(Managed by github.com/modelcontextprotocol/access)"
            etag                   : "W/\"25b9e93175232069640ae36e004e34e5db75eae364a21ec95ca690f195f08fc7\""
            id                     : "14435945"
            ldapDn                 : ""
            membersCount           : 2
            name                   : "python-sdk-auth"
            nodeId                 : "T_kwDOCt2Azc4A3EZp"
            notificationSetting    : "notifications_enabled"
            parentTeamId           : "14435893"
            parentTeamReadId       : "14435893"
            parentTeamReadSlug     : "python-sdk"
            privacy                : "closed"
            slug                   : "python-sdk-auth"
            urn                    : "urn:pulumi:prod::mcp-access::github:index/team:Team::python-sdk-auth"
        }
        reference-servers-maintainers: {
            createDefaultMaintainer: false
            description            : "Reference servers maintainers \n(Managed by github.com/modelcontextprotocol/access)"
            etag                   : "W/\"d6d1480d2ebd1c8b144e53fae8dec7d54b36004d4e11a2cca67ca7085822b521\""
            id                     : "16791801"
            ldapDn                 : ""
            membersCount           : 3
            name                   : "reference-servers-maintainers"
            nodeId                 : "T_kwDOCt2Azc4BADj5"
            notificationSetting    : "notifications_enabled"
            parentTeamId           : ""
            parentTeamReadId       : ""
            parentTeamReadSlug     : ""
            privacy                : "closed"
            slug                   : "reference-servers-maintainers"
            urn                    : "urn:pulumi:prod::mcp-access::github:index/team:Team::reference-servers-maintainers"
        }
        registry-collaborators       : {
            createDefaultMaintainer: false
            description            : "Registry working group collaborators \n(Managed by github.com/modelcontextprotocol/access)"
            etag                   : "W/\"7b74572b3df07f301d1322320f85d1afbd4f16bedca238373c1069b973811dad\""
            id                     : "17849690"
            ldapDn                 : ""
            membersCount           : 1
            name                   : "registry-collaborators"
            nodeId                 : "T_kwDOCt2Azc4BEF1a"
            notificationSetting    : "notifications_enabled"
            parentTeamId           : "14435879"
            parentTeamReadId       : "14435879"
            parentTeamReadSlug     : "registry-wg"
            privacy                : "closed"
            slug                   : "registry-collaborators"
            urn                    : "urn:pulumi:prod::mcp-access::github:index/team:Team::registry-collaborators"
        }
        registry-wg                  : {
            createDefaultMaintainer: false
            description            : "Official registry builders and maintainers \n(Managed by github.com/modelcontextprotocol/access)"
            etag                   : "W/\"667496377a96936bb8e86cc554ecb15448bc72ae4d944aa2d11f574ad485d06d\""
            id                     : "14435879"
            ldapDn                 : ""
            membersCount           : 4
            name                   : "registry-wg"
            nodeId                 : "T_kwDOCt2Azc4A3EYn"
            notificationSetting    : "notifications_enabled"
            parentTeamId           : "14435868"
            parentTeamReadId       : "14435868"
            parentTeamReadSlug     : "working-groups"
            privacy                : "closed"
            slug                   : "registry-wg"
            urn                    : "urn:pulumi:prod::mcp-access::github:index/team:Team::registry-wg"
        }
        ruby-sdk                     : {
            createDefaultMaintainer: false
            description            : "Official Ruby SDK maintainers \n(Managed by github.com/modelcontextprotocol/access)"
            etag                   : "W/\"3975655c5214199e1163e40b2f436021230bff4035ac623bcdaa0052569208b9\""
            id                     : "14435891"
            ldapDn                 : ""
            membersCount           : 4
            name                   : "ruby-sdk"
            nodeId                 : "T_kwDOCt2Azc4A3EYz"
            notificationSetting    : "notifications_enabled"
            parentTeamId           : "14435871"
            parentTeamReadId       : "14435871"
            parentTeamReadSlug     : "sdk-maintainers"
            privacy                : "closed"
            slug                   : "ruby-sdk"
            urn                    : "urn:pulumi:prod::mcp-access::github:index/team:Team::ruby-sdk"
        }
        rust-sdk                     : {
            createDefaultMaintainer: false
            description            : "Official Rust SDK maintainers \n(Managed by github.com/modelcontextprotocol/access)"
            etag                   : "W/\"4f86e31e2e6f13587a0b812d6de56291d8641c9b6a3a2f210d6d9307ba7e53d2\""
            id                     : "14435894"
            ldapDn                 : ""
            membersCount           : 8
            name                   : "rust-sdk"
            nodeId                 : "T_kwDOCt2Azc4A3EY2"
            notificationSetting    : "notifications_enabled"
            parentTeamId           : "14435871"
            parentTeamReadId       : "14435871"
            parentTeamReadSlug     : "sdk-maintainers"
            privacy                : "closed"
            slug                   : "rust-sdk"
            urn                    : "urn:pulumi:prod::mcp-access::github:index/team:Team::rust-sdk"
        }
        sdk-maintainers              : {
            createDefaultMaintainer: false
            description            : "Authors and maintainers of official MCP SDKs \n(Managed by github.com/modelcontextprotocol/access)"
            etag                   : "W/\"3b4be2d9369432933c8c3bcc3b58523f9a3fd2587957fdf6543e45b820735277\""
            id                     : "14435871"
            ldapDn                 : ""
            membersCount           : 66
            name                   : "sdk-maintainers"
            nodeId                 : "T_kwDOCt2Azc4A3EYf"
            notificationSetting    : "notifications_enabled"
            parentTeamId           : "14435861"
            parentTeamReadId       : "14435861"
            parentTeamReadSlug     : "steering-committee"
            privacy                : "closed"
            slug                   : "sdk-maintainers"
            urn                    : "urn:pulumi:prod::mcp-access::github:index/team:Team::sdk-maintainers"
        }
        sdk-wg                       : {
            createDefaultMaintainer: false
            description            : "SDK Working Group \n(Managed by github.com/modelcontextprotocol/access)"
            etag                   : "W/\"06123d4d5a82e870bd8756574389d9219ea98a6fda587c8437eb3d7b9da373fb\""
            id                     : "20589236"
            ldapDn                 : ""
            membersCount           : 2
            name                   : "sdk-wg"
            nodeId                 : "T_kwDOCt2Azc4BOiq0"
            notificationSetting    : "notifications_enabled"
            parentTeamId           : "14435868"
            parentTeamReadId       : "14435868"
            parentTeamReadSlug     : "working-groups"
            privacy                : "closed"
            slug                   : "sdk-wg"
            urn                    : "urn:pulumi:prod::mcp-access::github:index/team:Team::sdk-wg"
        }
        security-ig                  : {
            createDefaultMaintainer: false
            description            : "Security Interest Group \n(Managed by github.com/modelcontextprotocol/access)"
            etag                   : "W/\"ab706705b97c56a594dca92f6ed879a027704623e6deaa14c5c1e356b75612de\""
            id                     : "19051552"
            ldapDn                 : ""
            membersCount           : 9
            name                   : "security-ig"
            nodeId                 : "T_kwDOCt2Azc4BIrQg"
            notificationSetting    : "notifications_enabled"
            parentTeamId           : "14435869"
            parentTeamReadId       : "14435869"
            parentTeamReadSlug     : "interest-groups"
            privacy                : "closed"
            slug                   : "security-ig"
            urn                    : "urn:pulumi:prod::mcp-access::github:index/team:Team::security-ig"
        }
        security-managers            : {
            createDefaultMaintainer: false
            description            : "Organization security managers (security_manager org role via orgRoles.ts) \n(Managed by github.com/modelcontextprotocol/access)"
            etag                   : "W/\"879aef20feffdf54cd9fd02b7eca2939a2cfb0d436cdb3c3688315d9ce0b56a4\""
            id                     : "18394080"
            ldapDn                 : ""
            membersCount           : 6
            name                   : "security-managers"
            nodeId                 : "T_kwDOCt2Azc4BGKvg"
            notificationSetting    : "notifications_enabled"
            parentTeamId           : ""
            parentTeamReadId       : ""
            parentTeamReadSlug     : ""
            privacy                : "closed"
            slug                   : "security-managers"
            urn                    : "urn:pulumi:prod::mcp-access::github:index/team:Team::security-managers"
        }
        security-team                : {
            createDefaultMaintainer: false
            description            : "MCP Security Team: SDK security leads who coordinate advisories across SDKs \n(Managed by github.com/modelcontextprotocol/access)"
            etag                   : "W/\"06a3bf7fbf66222ce716a51e3bca4255c4c015d82d86150640ed73e45871e48a\""
            id                     : "19795782"
            ldapDn                 : ""
            membersCount           : 18
            name                   : "security-team"
            nodeId                 : "T_kwDOCt2Azc4BLg9G"
            notificationSetting    : "notifications_enabled"
            parentTeamId           : ""
            parentTeamReadId       : ""
            parentTeamReadSlug     : ""
            privacy                : "closed"
            slug                   : "security-team"
            urn                    : "urn:pulumi:prod::mcp-access::github:index/team:Team::security-team"
        }
        server-card-wg               : {
            createDefaultMaintainer: false
            description            : "Server Card Working Group \n(Managed by github.com/modelcontextprotocol/access)"
            etag                   : "W/\"37e84c231e92f3f472afcddb38a19a0616becd086817c6de2bd27006cb17656b\""
            id                     : "17071826"
            ldapDn                 : ""
            membersCount           : 3
            name                   : "server-card-wg"
            nodeId                 : "T_kwDOCt2Azc4BBH7S"
            notificationSetting    : "notifications_enabled"
            parentTeamId           : "14435868"
            parentTeamReadId       : "14435868"
            parentTeamReadSlug     : "working-groups"
            privacy                : "closed"
            slug                   : "server-card-wg"
            urn                    : "urn:pulumi:prod::mcp-access::github:index/team:Team::server-card-wg"
        }
        skills-over-mcp-wg           : {
            createDefaultMaintainer: false
            description            : "Skills Over MCP Working Group \n(Managed by github.com/modelcontextprotocol/access)"
            etag                   : "W/\"e42b432aefc12b2e315aaf54b17978ee9595d3467f0cdfb4c77e4c8ec73c4123\""
            id                     : "19051556"
            ldapDn                 : ""
            membersCount           : 15
            name                   : "skills-over-mcp-wg"
            nodeId                 : "T_kwDOCt2Azc4BIrQk"
            notificationSett

... (truncated)

sambhav commented Oct 24, 2026

Copy link
Copy Markdown
Member Author

@dsp-ant this is ready for review. Three things need you, all in the Setup → @dsp-ant section of the description:

  1. Create the GitHub App (needs an org owner) and post its client ID here
  2. Generate the OIDC client secret into GitHub secrets (one command; you keep the file for step 3)
  3. Once the discovery URL is live, add the custom OIDC SSO profile in the Admin console, assign it to a pilot sub-OU with only sambhav@, and post the redirect URI here

Sign-in starts as a pilot for me only (PILOT_GITHUB_LOGINS = "sambhav"), so nothing changes for anyone else until we widen it. Super admins are exempt from the SSO profile, so your login is unaffected.

The PR can merge before any of this; the deploy job skips until the secrets exist.


Generated by Claude Code

dsp-ant commented Oct 26, 2026

Copy link
Copy Markdown
Member

Automated review (Claude-generated)

Heads-up: everything below was produced by Claude Code's /code-review running over this PR's diff (two passes, merged and de-duplicated here). The severity labels are also Claude's judgement. The top items were spot-checked against the code, but none of this has been verified by a human yet — please treat each item as a claim to confirm, not an established fact.

Severity key: 🔴 High · 🟠 Medium · 🟡 Low · ⚪ Nit


🔴 High

1. existingGWSUser accounts are locked out — access-site/src/eligibility.ts:30
workspaceEmailFor() requires hasProvisionUserRole(...), but scripts/validate-config.ts and src/google.ts both treat existingGWSUser: true entries as real, kept accounts that are exempt from the role rule. There are ~14 such entries in users.ts today (several with memberOf: []). Once the OIDC profile is assigned to the whole OU, those people hit no_account → 403 and are told to "add a googleEmailPrefix" they already have, with no password fallback for non-super-admins. The README's "same rule Pulumi uses" claim is not currently true.
Suggested fix: export one shared "has a Workspace account" predicate from src/config/utils.ts and use it in google.ts, validate-config.ts, and the Worker (this also closes the firstName/lastName divergence noted under #9).

2. Identity is trust-on-first-use of a mutable GitHub login — access-site/src/db.ts:110
pinGithubIdentity binds login→GitHub ID on first sign-in. On day one the pin table is empty, so any users.ts login whose owner has since renamed their GitHub account can be registered by a stranger, who then completes /login and is issued an ID token for that person's @modelcontextprotocol.io mailbox; the real owner is afterwards refused with identity_mismatch. Impact is full mailbox/Drive access, so rating this High even though it needs a stale login to exist.
Suggested fix: anchor on something GitHub tracks by immutable ID — record the numeric GitHub user ID in users.ts (validated in CI), or require org/team membership at sign-in — rather than TOFU on the login string.

🟠 Medium

3. GitHub error callback causes a redirect loop — access-site/src/index.ts:86
/login?error=access_denied&state=… (user clicks Cancel, app suspended, temporarily_unavailable) has no code, so githubAuth treats it as a fresh start and 302s straight back to GitHub. The denial is never surfaced, Google never gets an error response, nothing is logged, and for non-interactive errors it's a tight loop until the browser gives up or the rate limiter 429s.
Suggested fix: check c.req.query('error') before invoking githubAuth and render an error page / redirect back to Google with error=access_denied.

4. OAuth state cookie is not __Host- and not bound to the pending authorization — access-site/src/index.ts:94
The state cookie from @hono/oauth-providers is a plain host cookie. Anyone who can run script on any *.modelcontextprotocol.io origin can toss a Domain=modelcontextprotocol.io; Path=/login state cookie and splice their own unredeemed GitHub code into a victim's pending Google sign-in (login-CSRF into the attacker's Workspace account). Preconditions are narrow (subdomain script execution), hence Medium rather than High.
Suggested fix: use a __Host- prefixed state cookie and/or bind state to the __Host-mcp_pending value.

5. Key-rotation procedure can break verification for up to the JWKS cache TTL — access-site/README.md:79, access-site/src/oidc.ts:91
/jwks is served with max-age=300, and the documented rotation starts signing with the new key in the same deploy that first publishes it (only a previous slot exists). A relying party holding a cached JWKS sees an unknown kid for up to 5 minutes. Google usually refetches on kid miss, but that isn't guaranteed.
Suggested fix: document "publish new public key via OIDC_PREVIOUS_JWK first → wait past TTL → swap SIGNING_KEY → move old key to previous", or add a NEXT_JWK slot.

6. Deploy gate doesn't require the GitHub client secret — .github/workflows/access-site.yml:68
ready=true needs the Cloudflare token, signing key and OIDC client secret, but not ACCESS_SITE_GITHUB_CLIENT_SECRET. A first deploy with steps 1/2/4 done but not 3 ships a live issuer where every sign-in fails at the GitHub token exchange ("Sign-in was interrupted"), and revokeGitHubToken sends Basic <id>:undefined.
Suggested fix: add HAS_GITHUB_SECRET to the gate (or have deploy.sh require it when no secret exists yet).

7. Test fixtures are derived from live src/config and gate the deploy job — access-site/test/helpers.ts:99
memberWithoutAccount() / ineligibleMember() throw if users.ts happens not to contain a member of that shape. Since the workflow runs these tests on every src/config/** change and deploy has needs: test, an unrelated, valid users.ts PR can break CI and stop the Worker redeploying (so removed users keep signing in) until someone edits the tests.
Suggested fix: use synthetic logins / injected MEMBERS for the negative cases.

🟡 Low

8. Cross-Origin-Opener-Policy: same-origin on the redirect responses — access-site/src/index.ts:25
secureHeaders() defaults add COOP to every response including the 302s on /authorize and /login. If Google ever runs this federated hop inside a popup (GIS popup mode, re-auth popups), the opener is severed and the result can't be posted back. Workspace SSO is normally full-page, so Low, but the fix is one line: crossOriginOpenerPolicy: false.

9. Eligibility predicate is re-implemented instead of shared — access-site/src/eligibility.ts:27
Beyond #1, the Worker's copy also drops the firstName/lastName requirement that src/google.ts applies, so it can assert email_verified: true for an address Pulumi never created. test/helpers.ts copies the predicate a third time. One exported helper in src/config/utils.ts fixes all of these.

10. no_account conflates several distinct situations and is checked before the pilot gate — access-site/src/oidc.ts:168
"Not in users.ts", "opted out via skipGoogleUserProvisioning", "alias entry without a prefix" and "no eligible role" all render noAccountPage telling the user to open a PR adding googleEmailPrefix, which is wrong advice for most of those cases and will prompt bogus config PRs during the pilot.

11. onError turns the deliberate 502 into a generic 500 — access-site/src/index.ts:143
Only HTTPExceptions with status < 500 keep their status/message, so HTTPException(502, 'GitHub did not return a user.') is logged as unexpected and returned as 500 "Something went wrong", making upstream GitHub failures indistinguishable from Worker bugs.

12. pinGithubIdentity does two sequential D1 round-trips — access-site/src/db.ts:116
INSERT OR IGNORE then SELECT on every successful sign-in. One statement (INSERT … ON CONFLICT(login) DO UPDATE SET login=login RETURNING github_id) or a db.batch([...]) halves hot-path latency, and avoids a read-after-write surprise if D1 read replication is ever enabled.

⚪ Nit

13. Hand-rolled base64url — access-site/src/crypto.ts:13: jose (already a dependency) exports base64url.encode(Uint8Array).

14. /authorize is GET-only — access-site/src/index.ts:56: OIDC Core §3.1.2.1 says the OP must accept GET and POST. Google uses GET, so this is spec-compliance only; app.on(['GET','POST'], '/authorize', …) if you want it.


Generated by Claude Code

sambhav commented Nov 9, 2026

Copy link
Copy Markdown
Member Author

@dsp-ant thanks for the review. All 14 items are addressed in bf5bde6, and 72b7dcf simplifies the result:

# Item Resolution
1 existingGWSUser accounts locked out hasGoogleWorkspaceAccount() in src/config/utils.ts is the one predicate used by google.ts, validate-config.ts and the Worker, so existing accounts sign in without a provisioning role (tested)
2 Trust-on-first-use of a mutable login Removed the pin table. The numeric githubUserId is recorded in users.ts (validated in CI, unique, behind CODEOWNERS) and must match before any token is issued. Accounts without one get identity_unverified
3 GitHub error callback loop ?error= returns to Google with access_denied / temporarily_unavailable and its original state, and consumes the pending request
4 Unbound state cookie Dropped @hono/oauth-providers. OAuth state and S256 PKCE are both derived from the __Host-mcp_pending value, so there is no separate state cookie
5 Key rotation vs JWKS cache /jwks can publish an extra key before cutover and keep the old one after. 72b7dcf folds the two slots into one OIDC_ROTATION_JWKS JWK Set; runbook in access-site/README.md
6 Deploy gate Gate and deploy.sh now require ACCESS_SITE_GITHUB_CLIENT_SECRET
7 Tests depend on live users.ts Tests mock users.ts with synthetic members. The only live-config test checks that pilot logins have a verified ID. 72b7dcf moves login uniqueness into validate-config.ts
8 COOP on redirects crossOriginOpenerPolicy: false
9 Predicate re-implemented Same fix as 1, including firstName/lastName
10 no_account advice and order Pilot is checked first; refusal pages say "ask the Infrastructure WG to check your entry" rather than suggesting a googleEmailPrefix PR
11 502 turned into 500 HTTPExceptions keep their status; 502s are logged as upstream warnings
12 Two D1 round-trips Gone with the pin table
13 Hand-rolled base64url Uses jose's base64url
14 GET-only /authorize Accepts GET and form POST (303 after POST)

Worker: 23 tests and typecheck pass. Repo: format, config validation and 79 tests pass. wrangler deploy --dry-run builds.


Generated by Claude Code

sambhav commented Nov 9, 2026

Copy link
Copy Markdown
Member Author

Ready for review. The review fixes are in, and the access-site, repository CI, and Pulumi preview checks all passed. I also backfilled the numeric GitHub IDs for all 139 configured usernames in src/config/users.ts using their current GitHub profiles.

The Workspace SSO pilot is still limited to sambhav. Before widening it, we’ll confirm each account with its maintainer.

dsp-ant commented Nov 16, 2026

Copy link
Copy Markdown
Member

Thanks for working through the review. The overall design looks good to me. Three things we should fix before merging:

1. Sign-in fails in the Workers runtime (access-site/src/github.ts:38, :59, :82)
All three GitHub fetches use redirect: 'error'. workerd rejects that value and throws a TypeError before the request goes out. exchangeGitHubCode swallows the error, so every sign-in ends in a 502. Token revocation fails silently for the same reason. The tests don't catch it because they run in Node with a mocked fetch.

redirect: 'manual' fixes it, since the existing response.ok checks already reject a 3xx. I had Claude run the full flow in workerd 1.20261012.1 with GitHub mocked. As is, the callback returns 502 with no outbound calls. With only that change, sign-in, /token and /userinfo all pass.

2. The pilot allowlist fails open (access-site/src/oidc.ts:155)
An empty PILOT_GITHUB_LOGINS lets every Workspace account with a recorded ID sign in. Removing the last pilot user leaves exactly that value, so offboarding or pausing the pilot would open sign-in to everyone. Can we make unset or empty mean nobody, and require an explicit * to open it up? The comments in wrangler.toml and env.ts and the README need to change with it.

3. Merge conflict in scripts/validate-config.ts
It's only the import block, after #247.

Two notes on CI. The production environment now only accepts main. environment: production in access-site.yml is still fine, but please store all four access-site secrets with --env production and not at the repository level. Preview will fail on your next push because it also uses that environment. I'm fixing that separately on main, and it's not a required check.

The rest can be follow-ups, but verifying the backfilled GitHub IDs has to happen before we widen the pilot beyond you.


Generated by Claude Code

@sambhav
sambhav force-pushed the sambhav/access-site branch from dce9ae3 to aa706d7 Compare November 18, 2026 06:24
@sambhav
sambhav force-pushed the sambhav/access-site branch from 0a9a350 to 9ba46ca Compare November 24, 2026 09:57
@sambhav sambhav changed the title Add access.modelcontextprotocol.io: GitHub sign-in for Google Workspace GitHub sign-in for Google Workspace via Cloudflare Access Nov 24, 2026

@localden localden left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for trimming this - some notes on the changes.


Generated by Claude Code

Comment thread src/cloudflare.ts Resolved
Comment thread README.md Resolved
* closed to UNMAPPED_NAME_ID. Literals are JSON-encoded, so config can't inject JSONata.
*/
export function buildNameIdTransform(table: Record<string, string>, githubIdpId: string): string {
return `(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The description says an engine difference fails closed. The expression does, but Cloudflare doesn't document what it sends when a transform errors or returns nothing, and the default NameID is the user's email. If it falls back to that, the allowlist is skipped for any org member whose GitHub email is on our domain.

Before the Google profile is assigned, can you capture the SAML response for an unlisted org member and confirm the NameID is unmapped@access.invalid, then do the same with a deliberately broken transform on a throwaway app? Narrowing the Access policy from the whole org to a dedicated team would also limit the damage if it does fall back.


Generated by Claude Code

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both checks use a throwaway app, so they don't need this merged, and this thread has to be resolved before merge anyway. Can you run them first and post the results here? While the app is up:

  • Use the exact expression from buildNameIdTransform.
  • Save the app once in the dashboard, then read it back through the API to confirm the transform survives.
  • If an error or empty result falls back to the email, try nameIdFormat: 'id' and check that a mapped user still gets the emailAddress format.
  • Keep Google's SP values off the throwaway app, and delete it afterwards.

Generated by Claude Code

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ran both checks, plus the follow-ups from your second comment, on a throwaway SaaS app in the MCP account. It used the same settings as src/cloudflare.ts: GitHub IdP only, allowAuthenticateViaWarp: false, 1h, nameIdFormat: 'email', samlAttributeTransformJsonata: '{}', and the exact buildNameIdTransform output. Google's SP values were never set; the ACS was a local listener (http://localhost:8765/acs). The app has been deleted. Identifiers below are redacted (<…>), and signatures and certificates are trimmed.

Found a bug, now fixed in ad842e3. The NameID transform input has no idp field, so the original idp.id = "<github idp>" clause was always false. Everyone, including the mapped pilot, got unmapped@access.invalid. I captured the input by setting the transform to $string($):

{"id": <github-user-id>, "name": "<name>", "email": "<github-email>",
 "groups": [{"id": 182288589, "name": "modelcontextprotocol",
             "teams": [{"name": "<team>"}, … 8 teams]}]}

The last-seen identity API does include idp, which is why the original expression passed against it locally. The fix drops the clause. GitHub is still enforced by allowedIdps, and the org and numeric-ID checks remain. The tests now use this captured shape.

Results

Case Outcome
API read-back Both transforms and nameIdFormat returned byte-for-byte, with no custom attributes. The one dashboard save was not done.
Original expression, org member Signed Success, NameID unmapped@access.invalid (emailAddress)
Fixed expression, mapped member Signed Success, NameID <pilot>@modelcontextprotocol.io (emailAddress), empty AttributeStatement
Transform error ($error("…")) No assertion. Access shows "Failed to generate a SAML Response — JSONata expression failed to transform the data … Error: pr230 forced error"
Empty result ("") Signed Success with an empty <NameID/>, format switched to persistent. No fallback to email.

Neither negative case falls back to the email, so I didn't try nameIdFormat: 'id'. The empty case still issues an assertion, but buildNameIdTransform always ends in a non-empty string literal, so it can't produce one.

Other observations:

  • A transform change took about 20–40s to reach the edge. The NameID isn't fixed for the session, so the next assertion uses the current mapping.
  • Not covered: a second, unlisted org member signing in live (the unmapped path is shown by the original-expression result above), and checking the signature against the app certificate (Signature elements were present on both Response and Assertion).
Fixed expression, mapped member (abridged)
<saml2p:Response Version="2.0" ID="_wS52bS14upoNoToc0P24L" IssueInstant="2026-11-29T03:36:48.531Z" Destination="http://localhost:8765/acs" InResponseTo="_d2939b40…">
  <saml2:Issuer Format="urn:oasis:names:tc:SAML:2.0:nameid-format:entity">https://modelcontextprotocol.cloudflareaccess.com/<aud></saml2:Issuer>
  <Signature>… rsa-sha256 …</Signature>
  <saml2p:Status><saml2p:StatusCode Value="urn:oasis:names:tc:SAML:2.0:status:Success"/></saml2p:Status>
  <saml2:Assertion Version="2.0" ID="_wMRdgZD8Q9k0Z6cpMtmuI" IssueInstant="2026-11-29T03:36:48.531Z">
    <saml2:Issuer …>https://modelcontextprotocol.cloudflareaccess.com/<aud></saml2:Issuer>
    <Signature>… rsa-sha256 …</Signature>
    <saml2:Subject>
      <saml2:NameID Format="urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress"><pilot>@modelcontextprotocol.io</saml2:NameID>
      <saml2:SubjectConfirmation Method="urn:oasis:names:tc:SAML:2.0:cm:bearer">
        <saml2:SubjectConfirmationData InResponseTo="_d2939b40…" Recipient="http://localhost:8765/acs" NotOnOrAfter="2026-11-29T03:41:48.536Z"/>
      </saml2:SubjectConfirmation>
    </saml2:Subject>
    <saml2:Conditions NotBefore="2026-11-29T03:31:48.536Z" NotOnOrAfter="2026-11-29T03:41:48.536Z">
      <saml2:AudienceRestriction><saml2:Audience>https://sso-test.invalid/sp</saml2:Audience></saml2:AudienceRestriction>
    </saml2:Conditions>
    <saml2:AuthnStatement AuthnInstant="2026-11-29T03:36:48.531Z" SessionNotOnOrAfter="2026-11-29T04:36:49.000Z">…PasswordProtectedTransport…</saml2:AuthnStatement>
    <saml2:AttributeStatement/>
  </saml2:Assertion>
</saml2p:Response>
Original expression, org member: Subject
<saml2:NameID Format="urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress">unmapped@access.invalid</saml2:NameID>
Empty result (""): Subject
<saml2:Subject>
  <saml2:NameID Format="urn:oasis:names:tc:SAML:2.0:nameid-format:persistent"/>
  <saml2:SubjectConfirmation Method="urn:oasis:names:tc:SAML:2.0:cm:bearer">
    <saml2:SubjectConfirmationData InResponseTo="_bbcaf5be…" Recipient="http://localhost:8765/acs" NotOnOrAfter="2026-11-29T03:43:36.033Z"/>
  </saml2:SubjectConfirmation>
</saml2:Subject>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for running these, and good catch on idp. Four things left:

  • With that check gone, GitHub-only rests on allowedIdps, which Cloudflare documents as the providers a user can select, and Access evaluates a user's last-known state. Can we add requires: [{ loginMethod: { id: githubIdentityProviderId } }] to the policy, and confirm a one-time PIN session is refused, including after the same user signs in with GitHub in another browser?
  • The unmapped result came from the old expression, which never reached the lookup. Can you rerun the final expression with a table that doesn't contain your ID? That needs no second person.
  • The dashboard save is still open. If it clears the transform, nameIdFormat: 'id' is still the fix to try.
  • The empty AttributeStatement isn't valid under the SAML schema, which requires at least one attribute, so Google may reject it. Can the transform return one constant attribute instead of {}?

Generated by Claude Code

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. All four are in 1c778fe. I ran them on a second throwaway app with the same settings, except that the app allowed GitHub and one-time PIN so the PIN case could be exercised. It's deleted, and the identifiers below are redacted.

1. GitHub-only. Added requires: [{ loginMethod: { id: githubIdentityProviderId } }] to the policy. To reproduce your scenario without touching another app, a second throwaway app that allowed only PIN gave the same Access user (<github-email>) a PIN session in a private window. In the other browser, that user had signed in with GitHub a few minutes earlier. In the private window, opening the test app showed the sign-in picker. Access issued no assertion, and the request log has no onetimepin request for the app. I repeated it with the login-method rule removed and got the same picker, so Access didn't reuse the stored GitHub groups for the PIN session. The rule stays as defense in depth. One side note: Access only sends a PIN code to an address the app's policy could admit, so with an org-only policy no code is sent at all.

2. Unmapped with the final expression. I used the exact buildNameIdTransform output with a table that leaves out my ID ({"1": "someone-else@…"}). A GitHub sign-in by an org member returned a signed Success with NameID unmapped@access.invalid in emailAddress format, so the expression reaches the lookup and misses.

3. Dashboard save. I opened the app in the dashboard and saved without changes. Comparing the full app object from the API before and after, the only differences are the updated_at timestamps on the app and the policy. Everything else was unchanged: both transforms, nameIdFormat, the SP values, allowedIdps, the Cloudflare One Client setting, the session duration and the login-method rule. After that, a mapped sign-in returned <pilot>@modelcontextprotocol.io in emailAddress format. So nameIdFormat: 'id' isn't needed.

4. Constant attribute. samlAttributeTransformJsonata is now {"source": "cloudflare-access"}, exported as SAML_ATTRIBUTE_TRANSFORM and unit-tested. Both mapped and unmapped assertions carry exactly that one attribute, and the NameID is unaffected:

<saml2:AttributeStatement>
  <saml2:Attribute Name="source" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified">
    <saml2:AttributeValue xsi:type="xs:string">cloudflare-access</saml2:AttributeValue>
  </saml2:Attribute>
</saml2:AttributeStatement>

The PR description has the updated results and rollout step 1, which now also checks the login-method rule and the constant attribute on the deployed app. Still not covered: checking the signature against the app certificate.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Follow-up on point 1: the login-method rule is now tested on its own. On a throwaway app whose email include matched the identity, I changed only requires.loginMethod. Requiring PIN refused a GitHub sign-in ("That account does not have access", no assertion), and requiring GitHub admitted the same sign-in. I also confirmed that PIN codes are delivered to the admitted address. All test apps have been deleted.

Comment thread src/config/workspaceSso.ts Resolved
Comment thread src/cloudflare.ts Resolved
Comment thread README.md Resolved
Comment thread package.json Resolved

sambhav commented Nov 29, 2026

Copy link
Copy Markdown
Member Author

Thanks for the review, @localden. I’ve addressed the profile defaults, GitHub ID and role checks, session duration, offboarding docs, and JSONata tests in f10a86b. CI and the Pulumi preview passed. I’ve also added your token-hardening follow-up to the rollout plan so we complete it before connecting Google.

I’ve left the NameID thread open. After merge, I’ll use a throwaway Cloudflare app to confirm an unlisted org member gets unmapped@access.invalid and check what Cloudflare sends when the transform errors. I’ll post the redacted results in that thread before we assign the Google profile. Ready for another look when you are.

@sambhav
sambhav requested a review from localden November 29, 2026 02:18

@localden localden left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the quick fixes - a few small follow-ups.


Generated by Claude Code

Comment thread src/cloudflare.ts Resolved
Comment thread src/cloudflare.ts Resolved
Comment thread README.md Resolved
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch had an error being deployed

1 failed (outdated) and 1 active deployments
preview — 1c778fe7 Deployed Nov 29, 2026 by sambhav via Preview Changes #454
production — 9ba46ca1 Deployed Nov 24, 2026 by sambhav via Preview Changes #427
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.

4 participants