Skip to content

Conversation

@anamnavi
Copy link
Member

@anamnavi anamnavi commented Dec 1, 2025

If a Container Registry has anonymous pull enabled, PSResourceGet was using that alone to determine that the registry is unauthenticated and therefore retrieving an anonymous access token. However, that doesn't account for push operation which would require permissions. This was causing registries with anonymous pull that had push operation being performed on it to result in a 401 error even if the user had ACRPush permissions.

PR Summary

PR Context

Fixes #1906 #1828

PR Checklist

…ed and non-anonymous access token retrieved
@anamnavi
Copy link
Member Author

anamnavi commented Dec 1, 2025

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@anamnavi
Copy link
Member Author

anamnavi commented Dec 2, 2025

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@anamnavi
Copy link
Member Author

anamnavi commented Dec 2, 2025

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@anamnavi
Copy link
Member Author

anamnavi commented Dec 2, 2025

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@anamnavi
Copy link
Member Author

anamnavi commented Dec 2, 2025

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@anamnavi
Copy link
Member Author

anamnavi commented Dec 2, 2025

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@anamnavi
Copy link
Member Author

anamnavi commented Dec 2, 2025

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

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.

Publish-PSResource uses anonymous token for push when anonymousPull is enabled on ACR

2 participants