Is there a way to limit access at the repo level within the azure container registry ?

Raghu 20 Reputation points
2024-05-17T18:02:15.8733333+00:00

We want to setup a shared container registry which is expected to be used by multiple teams How can we limit access to specific/individual repository? My understanding, we can create Scope Maps and then create or assign tokens to allow different teams use the same container registry and having access limited to one repository only within the same azure container registry.

But as per documentation we have some limitations that says we cannot do that for service principal. Is that correct ?

https://learn.microsoft.com/en-us/azure/container-registry/container-registry-repository-scoped-permissions#preview-limitations

Is there a way to limit access at the repo level within the azure container registry ?

Are there any other limitations ?

Azure Container Registry
Azure Container Registry
An Azure service that provides a registry of Docker and Open Container Initiative images.
413 questions
0 comments No comments
{count} votes

Accepted answer
  1. v-vvellanki-MSFT 4,760 Reputation points Microsoft Vendor
    2024-05-20T04:14:05.6633333+00:00

    Hi @Raghu ,

    Thanks for contacting Microsoft Q&A platform.

    Tokens were introduced specifically for the purpose of repo scoped access control which other auth options don't share and at the moment. That is the only current solution that is supported for the purpose of offering repository scoped restricted access.

    In your scenario the main limitation seems to be the usage of AAD identities with scope maps, currently it is limited to just token (user and pass) authentication. However, the other limitation that is mentioned in the document about the anonymous pull is not a limitation, and team will update the documentation accordingly.

    Hope this helps.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful