Skip to content

Add GitHub sign-in for registry admins - #1942

Merged
localden merged 4 commits into
mainfrom
stack-admin-accounts
Dec 1, 2026
Merged

localden merged 4 commits into
mainfrom
stack-admin-accounts

Conversation

@localden

@localden localden commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Adds POST /auth/github-admin, so registry admins can sign in with GitHub. auth.sh opens the browser and uses the authorization code flow with PKCE. The registry exchanges the code using a GitHub app that is only for admin sign-in, and checks that the user is in the registry-admins team, managed in the access repository. The endpoint doesn't accept GitHub tokens.

It is off until mcp-registry:githubAdminClientId is set for a stack, which also turns off Google admin sign-in there. In production, that needs a release that includes this change. The setup steps, including the app's callback URLs, are in deploy/README.md.

auth.sh uses GitHub where the setting is on, and gcloud otherwise. Includes tests and docs.


Generated by Claude Code

@localden localden self-assigned this Dec 1, 2026
@localden
localden marked this pull request as draft December 1, 2026 20:52
@localden localden changed the title Set admin accounts in the stack config Use the registry-admins group for admin sign-in Dec 1, 2026
@localden localden changed the title Use the registry-admins group for admin sign-in Add GitHub sign-in for registry admins Dec 1, 2026
@localden
localden marked this pull request as ready for review December 1, 2026 21:17
@localden
localden marked this pull request as draft December 1, 2026 21:25
@localden
localden marked this pull request as ready for review December 1, 2026 21:33
@localden
localden merged commit 0a04a16 into main Dec 1, 2026
9 checks passed
@localden
localden deleted the stack-admin-accounts branch December 1, 2026 22:19
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.

2 participants