-
Notifications
You must be signed in to change notification settings - Fork 358
website(blog): add ACR repository permissions with ABAC #5421
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
shashankbarsin
merged 12 commits into
Azure:master
from
johnsonshi:johnsonshi/ga-acr-abac-repository-permissions
Jan 24, 2026
+124
−1
Merged
Changes from 7 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
a67d131
website(blog): add ACR repository permissions with ABAC
johnsonshi 5f7d02f
address comments
johnsonshi 2c5376c
change publish date to 2025-12-05
johnsonshi 6b16d8d
docs(acr): address PR comments
johnsonshi 2e01297
docs(acr): address comments
johnsonshi 2ad728c
docs(acr): update ABAC blog post date
johnsonshi 7e16912
Update website/blog/2025-12-18-acr-abac-repository-permissions/index.md
sabbour 0c43a0d
Update website/blog/2025-12-18-acr-abac-repository-permissions/index.md
sabbour 213752f
Address review comments: add doc links, expand acronyms, add role ass…
johnsonshi 0eab302
Merge branch 'master' into johnsonshi/ga-acr-abac-repository-permissions
johnsonshi c0e1832
Update website/blog/2025-12-18-acr-abac-repository-permissions/index.md
johnsonshi 9a3b42f
blog(acr): update date
johnsonshi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,3 @@ | ||
| .DS_Store | ||
| .vscode | ||
| .vscode | ||
| package-lock.json |
Binary file added
BIN
+77.1 KB
...5-12-18-acr-abac-repository-permissions/acr-enabling-abac-during-acr-create.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+70.1 KB
...5-12-18-acr-abac-repository-permissions/acr-enabling-abac-during-acr-update.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+62.7 KB
...2-18-acr-abac-repository-permissions/aks-cluster-pulling-from-acr-with-abac.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
82 changes: 82 additions & 0 deletions
82
website/blog/2025-12-18-acr-abac-repository-permissions/index.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,82 @@ | ||
| --- | ||
| title: "Azure Container Registry Repository Permissions with Attribute-based Access Control (ABAC)" | ||
| date: "2025-12-18" | ||
| description: Azure Container Registry now supports Microsoft Entra ABAC for granular repository permissions in CI/CD pipelines and AKS clusters. | ||
| authors: | ||
| - johnson-shi | ||
| tags: | ||
| - azure-container-registry | ||
| - entra | ||
| - best-practices | ||
| - general | ||
| - operations | ||
| - security | ||
| image: ./hero.png | ||
| hide_table_of_contents: false | ||
| draft: false | ||
| --- | ||
|
|
||
| Enterprises are converging on centralized container registries that serve multiple business units and application domains. Azure role-based access control (RBAC) uses role assignments to control access to Azure resources. Each Azure RBAC role assignment specifies an identity (who will gain permissions), an Azure role with Entra actions and data actions (what permissions are granted), and an assignment scope (which resources). For ACR, traditional Azure RBAC scopes are limited to the subscription, resource group, or registry level—meaning permissions apply to all repositories within a registry. | ||
johnsonshi marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| In this shared registry model, traditional Azure role-based access control (RBAC) forces an all-or-nothing choice: either grant broad registry-wide permissions or manage separate registries per team. Neither approach aligns with least-privilege principles or modern zero trust architectures. | ||
|
|
||
| Microsoft Entra attribute-based access control (ABAC) for Azure Container Registry solves this challenge. ABAC augments Azure RBAC with fine-grained conditions, enabling platform teams to scope permissions precisely to specific repositories or namespaces within a shared registry. CI/CD pipelines and AKS clusters can now access only their authorized repositories, eliminating overprivileged access while maintaining operational simplicity. | ||
johnsonshi marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
johnsonshi marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
|  | ||
|
|
||
| <!-- truncate --> | ||
|
|
||
| ## How ABAC works in ACR | ||
|
|
||
| Attribute-based access control (ABAC) extends the traditional RBAC model by adding conditions to role assignments. While RBAC defines **who** (identity) can perform **what permissions** (Entra actions and data actions in a role definition) on **which resource scope** (subscription, resource group, or registry), ABAC adds a fourth dimension: **under what conditions will the permission be granted** (attributes). Conditions use attributes—such as repository name patterns—to further restrict when a role assignment grants access. | ||
johnsonshi marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| For ACR, this means that while the *scope* of a role assignment can be at the subscription, resource group, or registry level, ABAC *conditions* evaluate repository-level attributes like `repositories:name` to determine whether a specific permission (such as `repositories/content/read`) is permitted. This allows administrators to scope permissions to specific repositories or namespace prefixes within a single registry, without needing separate registries or overprivileged access. | ||
|
|
||
| ACR registries support a permissions mode called "**RBAC Registry + ABAC Repository Permissions**" that makes them ABAC-enabled. Once configured, registry administrators add ABAC conditions to standard Azure RBAC role assignments, scoping permissions to specific repositories or namespace prefixes. This enables: | ||
|
|
||
| * **CI/CD pipelines** to push images only to their approved namespaces and repositories | ||
| * **AKS clusters, Azure Container Apps, and Azure Container Instances** to pull only from authorized repositories | ||
| * **Microsoft Entra identities** to enforce permission boundaries through standard role assignments | ||
|
|
||
| ## Enabling ABAC on ACR | ||
|
|
||
| By default, ACR registries use the "**RBAC Registry Permissions**" authorization mode, which provides traditional registry-scoped access control. ABAC can be enabled on all new and existing ACR registries across all SKUs by changing the authorization mode to "**RBAC Registry + ABAC Repository Permissions**", either during registry creation or configured on existing registries. You can assign RBAC roles with optional ABAC conditions to users, groups, service principals, and managed identities used by resources such as Azure Kubernetes Service (AKS), Azure Container Apps (ACA), and Azure Container Instances (ACI) when pulling images from ACR. | ||
|
|
||
| Here is the Azure Portal experience for enabling ABAC on a new ACR during creation: | ||
|
|
||
|  | ||
|
|
||
| Here is the Azure Portal experience for enabling ABAC on an existing ACR: | ||
|
|
||
|  | ||
|
|
||
| ABAC can also be enabled on ACR registries through Azure Resource Manager (ARM), Bicep files, Terraform templates, and Azure CLI. | ||
|
|
||
| ## ABAC-enabled built-in roles | ||
|
|
||
| Once a registry is ABAC-enabled (configured to "**RBAC Registry + ABAC Repository Permissions**"), registry admins can use these ABAC-enabled built-in roles to grant repository-scoped permissions: | ||
|
|
||
| * **[Container Registry Repository Reader](https://learn.microsoft.com/azure/role-based-access-control/built-in-roles/containers#container-registry-repository-reader)**: grants image pull and metadata read permissions, including permissions for `HEAD` requests, `GET` manifest requests, `GET` layer blob requests, tag resolution, and discovering OCI referrers. | ||
| * **[Container Registry Repository Writer](https://learn.microsoft.com/azure/role-based-access-control/built-in-roles/containers#container-registry-repository-writer)**: grants Repository Reader permissions, as well as image and tag push permissions. | ||
| * **[Container Registry Repository Contributor](https://learn.microsoft.com/azure/role-based-access-control/built-in-roles/containers#container-registry-repository-contributor)**: grants Repository Reader and Repository Writer permissions, as well as image and tag delete permissions. | ||
|
|
||
| Note that these roles do not grant repository list permissions. | ||
|
|
||
| * The separate **[Container Registry Repository Catalog Lister](https://learn.microsoft.com/azure/role-based-access-control/built-in-roles/containers#container-registry-repository-catalog-lister)** must be assigned to grant repository list permissions. | ||
| * The **[Container Registry Repository Catalog Lister](https://learn.microsoft.com/azure/role-based-access-control/built-in-roles/containers#container-registry-repository-catalog-lister)** role does not support ABAC conditions in role assignments; assigning this role grants permissions to list all repositories in a registry. | ||
|
|
||
| ## Important role behavior changes in ABAC mode | ||
|
|
||
| :::caution | ||
| When a registry is ABAC-enabled by configuring its permissions mode to "**RBAC Registry + ABAC Repository Permissions**", existing built-in roles and role assignments will have different behaviors and will no longer grant the same set of permissions to ACR registries. | ||
| ::: | ||
|
|
||
| * Legacy data-plane roles such as **AcrPull**, **AcrPush**, and **AcrDelete** are ***not honored in ABAC-enabled registries and should not be used***. For ABAC-enabled registries, use the ABAC-enabled built-in roles listed above. | ||
| * Broad roles like **Owner**, **Contributor**, and **Reader** previously granted full control plane and data plane permissions. This is typically an overprivileged role assignment. In ABAC-enabled registries, these broad roles will only grant control plane permissions to the registry. **Owner**, **Contributor**, and **Reader** will ***no longer grant data plane permissions***, such as image push, pull, delete or repository list permissions. | ||
johnsonshi marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| * In ABAC-enabled registries, ACR Tasks, Quick Tasks, Quick Builds, and Quick Runs no longer have default data plane access to source registries. This prevents inadvertent security leaks and broad permissions grants to ACR Tasks. To grant an ACR Task permissions to a source ACR registry, assign the ABAC-enabled roles above to the calling identity of the Task or Task Run as needed. | ||
|
|
||
| ## Next steps | ||
|
|
||
| Start using ABAC repository permissions in ACR to enforce least-privilege artifact push, pull, and delete boundaries across your CI/CD systems and container image workloads. This model is now the *recommended approach* for multi-tenant platform engineering patterns to secure container registry deployments. | ||
|
|
||
| To get started, follow the step-by-step guides in the [official ACR ABAC documentation](https://aka.ms/acr/auth/abac). | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.