Skip to content

Add GithubOAuthPrivate registry backend AuthMode#231

Open
Crystalflxme wants to merge 2 commits intoUpliftGames:mainfrom
Hex-Interactive:main
Open

Add GithubOAuthPrivate registry backend AuthMode#231
Crystalflxme wants to merge 2 commits intoUpliftGames:mainfrom
Hex-Interactive:main

Conversation

@Crystalflxme
Copy link
Copy Markdown

This PR adds a new AuthMode for the registry backend, GithubOAuthPrivate. It is based on the GithubOAuth mode except that it requires any read or write access API callers to have at least view access on the index repository. This allows private registries to maintain full isolation without having to resort to API keys. It also enforces GitHub based ownership of scopes as GithubOAuth did.

This addition is not a breaking change: the GitHub access token provided to the backend does not need updated in order to check for index repository view access. The minimum required capabilities (content, metadata) of a fine-grained PAT allow checking the repository contributor permissions API.

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