Skip to content

Fix GitHub OAuth callback sessions - #4

Merged
Pavilion-devs merged 1 commit into
mainfrom
release/glassbox-rc1
Aug 11, 2026
Merged

Pavilion-devs merged 1 commit into
mainfrom
release/glassbox-rc1

Conversation

@Pavilion-devs

Copy link
Copy Markdown
Owner

Root cause

OAuth2 Proxy creates a GitHub session by resolving the authenticated user organization list even when no organization allowlist is configured. The reduced user:email token made that GitHub API call return 403, which OAuth2 Proxy surfaced as a callback 500.

Fix

  • restores the minimum provider-compatible scope: user:email read:org
  • keeps authentication open to every GitHub account
  • keeps unknown users read-only inside GlassBox
  • documents why read:org is operationally required
  • adds a production configuration regression assertion

Verification

  • reproduced the 500 through the real GitHub OAuth callback
  • confirmed the GitHub 403 in production OAuth2 Proxy logs
  • production-edge tests pass 5/5

@Pavilion-devs
Pavilion-devs marked this pull request as ready for review August 11, 2026 11:56
@Pavilion-devs
Pavilion-devs merged commit 7292e3f into main Aug 11, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant