-
Notifications
You must be signed in to change notification settings - Fork 357
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 1 commit
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-11-24-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-11-24-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
...1-24-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.
89 changes: 89 additions & 0 deletions
89
website/blog/2025-11-24-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,89 @@ | ||
| --- | ||
| title: "Azure Container Registry Repository Permissions with Attribute-based Access Control (ABAC)" | ||
| date: "2025-11-24" | ||
| description: Azure Container Registry now supports Entra ABAC conditions in RBAC role assignments. This enables identities from CI/CD pipelines and AKS clusters to have granular image push, pull, or delete permissions for specific repositories and namespaces. | ||
| authors: | ||
| - johnson-shi | ||
| tags: | ||
| - azure-container-registry | ||
| - entra | ||
| - best-practices | ||
| - general | ||
| - operations | ||
| - security | ||
| - workload-identity | ||
| image: ./hero.png | ||
| hide_table_of_contents: false | ||
| draft: false | ||
| --- | ||
|
|
||
| Learn how to secure and configure Azure Container Registry (ACR) repository permissions with Microsoft Entra attribute-based access control (ABAC) — now generally available (GA) for all new and existing ACR registries, across all SKUs, and in all Azure regions. | ||
|
|
||
| In ACR, ABAC augments the familiar Azure RBAC model with namespace and repository-level conditions. This enables platform teams to grant least-privilege access at the granularity of specific repositories or entire logical namespaces. This capability is designed for modern multi-tenant platform engineering patterns, where a central container registry serves many business domains. With ABAC, Entra identities belonging to CI/CD systems and Azure Kubernetes Service (AKS) clusters can have least-privilege access to ACR registries. | ||
|
|
||
|  | ||
|
|
||
| <!-- truncate --> | ||
|
|
||
| ## Why this matters for granular permissions | ||
|
|
||
| Enterprises are converging on a central container registry pattern that hosts artifacts and container images for multiple business units and application domains. In this model: | ||
|
|
||
| * CI/CD pipelines from different parts of the business push container images and artifacts only to approved namespaces and repositories within a central registry. | ||
| * AKS clusters, Azure Container Apps (ACA), Azure Container Instances (ACI), and consumers pull only from authorized repositories within a central registry. | ||
|
|
||
| With ABAC, these repository and namespace permission boundaries become explicit and enforceable using standard Microsoft Entra identities and role assignments. This aligns with cloud-native zero trust, supply chain hardening, and least-privilege permissions. | ||
|
|
||
| ## What ABAC in ACR means | ||
johnsonshi marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| ACR registries now support a registry permissions mode called "**RBAC Registry + ABAC Repository Permissions.**" Configuring a registry to this mode makes it ABAC-enabled. | ||
|
|
||
| * When a registry is configured to be ABAC-enabled, registry administrators can optionally add ABAC conditions during standard Azure RBAC role assignments. | ||
| * This optional ABAC conditions scope the role assignment’s effect to specific repositories or namespace prefixes. | ||
|
|
||
| ## Enabling ABAC on ACR | ||
|
|
||
| ABAC can be enabled on all new and existing ACR registries across all SKUs, either during registry creation or configured on existing registries. | ||
|
|
||
| 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. | ||
|
|
||
| ## Identities you can assign | ||
johnsonshi marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| ACR ABAC uses standard Microsoft Entra role assignments. Assign RBAC roles with optional ABAC conditions to users, groups, service principals, and managed identities, including AKS kubelet and workload identities, ACA and ACI identities, and more. | ||
|
|
||
| ## 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**: 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**: grants Repository Reader permissions, as well as image and tag push permissions. | ||
| * **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** must be assigned to grant repository list permissions. | ||
| * The **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. | ||
| * 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.