Repository navigation
Conversation
Pulumi PreviewClick to expand preview output |
|
@dsp-ant this is ready for review. Three things need you, all in the Setup → @dsp-ant section of the description:
Sign-in starts as a pilot for me only ( The PR can merge before any of this; the deploy job skips until the secrets exist. Generated by Claude Code |
Automated review (Claude-generated)
Severity key: 🔴 High · 🟠 Medium · 🟡 Low · ⚪ Nit 🔴 High1. 2. Identity is trust-on-first-use of a mutable GitHub login — 🟠 Medium3. GitHub error callback causes a redirect loop — 4. OAuth 5. Key-rotation procedure can break verification for up to the JWKS cache TTL — 6. Deploy gate doesn't require the GitHub client secret — 7. Test fixtures are derived from live 🟡 Low8. 9. Eligibility predicate is re-implemented instead of shared — 10. 11. 12. ⚪ Nit13. Hand-rolled base64url — 14. Generated by Claude Code |
|
@dsp-ant thanks for the review. All 14 items are addressed in bf5bde6, and 72b7dcf simplifies the result:
Worker: 23 tests and typecheck pass. Repo: format, config validation and 79 tests pass. Generated by Claude Code |
|
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 The Workspace SSO pilot is still limited to |
|
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 (
2. The pilot allowlist fails open ( 3. Merge conflict in Two notes on CI. The 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 |
dce9ae3 to
aa706d7
Compare
0a9a350 to
9ba46ca
Compare
| * 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 `( |
There was a problem hiding this comment.
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
ccb1746 to
1a842f6
Compare
45305c3 to
f10a86b
Compare
|
Thanks for the review, @localden. I’ve addressed the profile defaults, GitHub ID and role checks, session duration, offboarding docs, and JSONata tests in I’ve left the NameID thread open. After merge, I’ll use a throwaway Cloudflare app to confirm an unlisted org member gets |
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-ssoGitHub team are the pilot roster. The same entries inusers.tssupply 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 app allows only the GitHub identity provider, and the app and policy each have a one-hour session duration.Verification
Pilot rollout
Before assigning the Google profile
Deploy the Cloudflare Access app with its inert SP values. @sambhav owns the two live checks requested in Den’s review. Both are pending. Use a throwaway SAML app so the pilot team policy can stay in place.
NameIDis exactlyunmapped@access.invalid.NameIDif it does.Record a redacted summary in the review thread. Keep the Google profile unassigned if either result is inconclusive, the unlisted member gets an unexpected NameID, or the broken transform produces the user’s email or another usable identity.
Additional rollout checks for @sambhav. Verify the mapped user receives the expected Workspace address, check an empty transform result, confirm the pilot policy denies a non-team user, and record the tenant’s global session duration. Apply the same stop condition to a usable identity on an empty result.
Connect Google and activate the pilot
Either @dsp-ant or @localden can serve as the Google Workspace admin for the pilot.
sambhav@.The README covers enabling additional members and revoking Google and Cloudflare sessions during offboarding.