Background
#1342 introduces public repositories and a creation-time allowGuestAccess option for application
tokens. The option is coarse: a token can either read every public repository or none of them.
When a team issues a token to an external consumer so that it can read a single repository, the
token should not be able to roam any other repository — including public ones.
Proposal
- Issue a token scoped to a single repository: the scope (
project/repo + a RepositoryRole) is
fixed at creation time.
- Outside its scope the token has no access at all; it is excluded even from the guest fallback,
so it cannot read public repositories either.
- A repository
ADMIN can issue and revoke tokens scoped to their repository without being a
system administrator.
- Project-wide scope is intentionally not supported.
Notes
Background
#1342 introduces public repositories and a creation-time
allowGuestAccessoption for applicationtokens. The option is coarse: a token can either read every public repository or none of them.
When a team issues a token to an external consumer so that it can read a single repository, the
token should not be able to roam any other repository — including public ones.
Proposal
project/repo+ aRepositoryRole) isfixed at creation time.
so it cannot read public repositories either.
ADMINcan issue and revoke tokens scoped to their repository without being asystem administrator.
Notes
the repository is removed.