Skip to content

Commit a67d131

Browse files
committed
website(blog): add ACR repository permissions with ABAC
Signed-off-by: Johnson Shi <13926417+johnsonshi@users.noreply.github.com>
1 parent 49d611e commit a67d131

File tree

8 files changed

+112
-1
lines changed

8 files changed

+112
-1
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.DS_Store
2-
.vscode
2+
.vscode
3+
package-lock.json
77.1 KB
Loading
70.1 KB
Loading
62.7 KB
Loading
985 KB
Loading
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
---
2+
title: "Azure Container Registry Repository Permissions with Attribute-based Access Control (ABAC)"
3+
date: "2025-11-24"
4+
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.
5+
authors:
6+
- johnson-shi
7+
tags:
8+
- azure-container-registry
9+
- entra
10+
- best-practices
11+
- general
12+
- operations
13+
- security
14+
- workload-identity
15+
image: ./hero.png
16+
hide_table_of_contents: false
17+
draft: false
18+
---
19+
20+
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.
21+
22+
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.
23+
24+
![AKS cluster pulling from ACR with ABAC](./aks-cluster-pulling-from-acr-with-abac.png)
25+
26+
<!-- truncate -->
27+
28+
## Why this matters for granular permissions
29+
30+
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:
31+
32+
* CI/CD pipelines from different parts of the business push container images and artifacts only to approved namespaces and repositories within a central registry.
33+
* AKS clusters, Azure Container Apps (ACA), Azure Container Instances (ACI), and consumers pull only from authorized repositories within a central registry.
34+
35+
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.
36+
37+
## What ABAC in ACR means
38+
39+
ACR registries now support a registry permissions mode called "**RBAC Registry + ABAC Repository Permissions.**" Configuring a registry to this mode makes it ABAC-enabled.
40+
41+
* When a registry is configured to be ABAC-enabled, registry administrators can optionally add ABAC conditions during standard Azure RBAC role assignments.
42+
* This optional ABAC conditions scope the role assignment’s effect to specific repositories or namespace prefixes.
43+
44+
## Enabling ABAC on ACR
45+
46+
ABAC can be enabled on all new and existing ACR registries across all SKUs, either during registry creation or configured on existing registries.
47+
48+
Here is the Azure Portal experience for enabling ABAC on a new ACR during creation:
49+
50+
![Enabling ABAC on a new ACR during Creation](./acr-enabling-abac-during-acr-create.png)
51+
52+
Here is the Azure Portal experience for enabling ABAC on an existing ACR:
53+
54+
![Enabling ABAC on an existing ACR](./acr-enabling-abac-during-acr-update.png)
55+
56+
ABAC can also be enabled on ACR registries through Azure Resource Manager (ARM), Bicep files, Terraform templates, and Azure CLI.
57+
58+
## Identities you can assign
59+
60+
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.
61+
62+
## ABAC-enabled built-in roles
63+
64+
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:
65+
66+
* **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.
67+
* **Container Registry Repository Writer**: grants Repository Reader permissions, as well as image and tag push permissions.
68+
* **Container Registry Repository Contributor**: grants Repository Reader and Repository Writer permissions, as well as image and tag delete permissions.
69+
70+
Note that these roles do not grant repository list permissions.
71+
72+
* The separate **Container Registry Repository Catalog Lister** must be assigned to grant repository list permissions.
73+
* 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.
74+
75+
## Important role behavior changes in ABAC mode
76+
77+
:::caution
78+
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.
79+
:::
80+
81+
* 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.
82+
* 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.
83+
* 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.
84+
85+
## Next steps
86+
87+
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.
88+
89+
To get started, follow the step-by-step guides in the [official ACR ABAC documentation](https://aka.ms/acr/auth/abac).

website/blog/authors.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,3 +418,14 @@ thilo-fromm:
418418
socials:
419419
linkedin: thilo-fromm-b6832a56
420420
github: t-lo
421+
422+
johnson-shi:
423+
name: Johnson Shi
424+
title: Senior Product Manager at Microsoft
425+
url: https://johnsonshi.com
426+
image_url: https://github.com/johnsonshi.png
427+
page: true
428+
socials:
429+
x: johnsonshi86
430+
linkedin: johnsonshi
431+
github: johnsonshi

website/blog/tags.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ app-routing:
4242
permalink: /app-routing
4343
description: AKS Application Routing add-on usage, ingress, certificates, and traffic management.
4444

45+
azure-container-registry:
46+
label: Azure Container Registry
47+
permalink: /azure-container-registry
48+
description: Building, distributing, and deploying container images with ACR and AKS.
49+
4550
azure-front-door:
4651
label: Azure Front Door
4752
permalink: /azure-front-door
@@ -112,6 +117,11 @@ dns-performance:
112117
permalink: /dns-performance
113118
description: Improving and accelerating DNS query performance within AKS clusters.
114119

120+
entra:
121+
label: Entra
122+
permalink: /entra
123+
description: Microsoft Entra identity and access management for AKS clusters and workloads.
124+
115125
extensions:
116126
label: Extensions
117127
permalink: /extensions

0 commit comments

Comments
 (0)