Skip to content

fix(hub): decouple GitHub username prefix from login_service label#147

Open
mariodruiz wants to merge 2 commits into
AMDResearch:developfrom
mariodruiz:github-fix
Open

fix(hub): decouple GitHub username prefix from login_service label#147
mariodruiz wants to merge 2 commits into
AMDResearch:developfrom
mariodruiz:github-fix

Conversation

@mariodruiz

Copy link
Copy Markdown
Contributor

Summary

The multiauthenticator library derives a user's identity prefix from the
login_service display label, so the "github:" prefix that team sync, group
assignment, and resource resolution depend on only worked because the
default label happened to normalize to "github". Setting login_service to
something like "GitHub Enterprise" would silently break every
startswith("github:") check.

Pin an explicit prefix on CustomGitHubOAuthenticator so identity no longer
tracks the display label, and centralize the literal as GITHUB_USERNAME_PREFIX
to replace the 10 scattered "github:" strings across setup, handlers, and
groups.

Changes

Define global GITHUB_USERNAME_PREFIX

Checklist

  • Code follows project style guidelines
  • Changes are backward compatible
  • Tested on local Kubernetes cluster
  • Documentation links updated

@mariodruiz mariodruiz requested a review from KerwinTsaiii as a code owner June 17, 2026 11:51
@mariodruiz mariodruiz deleted the branch AMDResearch:develop June 17, 2026 11:51
@mariodruiz mariodruiz closed this Jun 17, 2026
@mariodruiz mariodruiz reopened this Jun 17, 2026
@mariodruiz

Copy link
Copy Markdown
Contributor Author

Please, squash before merging

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