Skip to content

remote: resolve push-check credentials against the repository - #2411

Open
mzihlmann wants to merge 1 commit into
google:mainfrom
mzihlmann:check-push-permission-repo-scope
Open

remote: resolve push-check credentials against the repository#2411
mzihlmann wants to merge 1 commit into
google:mainfrom
mzihlmann:check-push-permission-repo-scope

Conversation

@mzihlmann

@mzihlmann mzihlmann commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

Fixes #2410

PR #510 narrowed credential resolution from the registry to the repository level. CheckPushPermission was never updated. Therefore, a config.json holding both a registry-level entry and a more specific repository-level one made the check reject a push that Write then performed successfully.

The test asserts that CheckPushPermission and Write always agree across five credential scopes. The two cases holding both a registry-level and a repository-level entry fail on main, one in each direction.

PR google#510 narrowed credential resolution from the registry to the repository level.
CheckPushPermission was never updated. Therefore, a config.json holding both a
registry-level entry and a more specific repository-level one made the check
reject a push that Write then performed successfully.
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.

CheckPushPermission still resolves credentials at registry scope

1 participant