You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/container-apps/client-certificate-authorization.md
+51-4Lines changed: 51 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,15 +5,15 @@ services: container-apps
5
5
author: craigshoemaker
6
6
ms.service: azure-container-apps
7
7
ms.topic: how-to
8
-
ms.date: 06/13/2024
8
+
ms.date: 04/01/2025
9
9
ms.author: cshoe
10
10
---
11
11
12
12
# Configure client certificate authentication in Azure Container Apps
13
13
14
14
Azure Container Apps supports client certificate authentication (also known as mutual TLS or mTLS) that allows access to your container app through two-way authentication. This article shows you how to configure client certificate authorization in Azure Container Apps.
15
15
16
-
When client certificates are used, the TLS certificates are exchanged between the client and your container app to authenticate identity and encrypt traffic. Client certificates are often used in "zero trust" security models to authorize client access within an organization.
16
+
When client certificates are used, the TLS certificates are exchanged between the client and your container app to authenticate identity and encrypt traffic. Client certificates are often used in "Zero Trust" security models to authorize client access within an organization.
17
17
18
18
For example, you might want to require a client certificate for a container app that manages sensitive data.
19
19
@@ -34,16 +34,63 @@ Ingress passes the client certificate to the container app if `require` or `acce
34
34
The following ARM template example configures ingress to require a client certificate for all requests to the container app.
> You can set the `clientCertificateMode` directly on the ingress property. It isn't yet available as an explicit option in the CLI, but you can patch your app using the Azure CLI.
49
+
50
+
Get the ARM ID of the Azure Container App:
51
+
52
+
```azurecli
53
+
APP_ID=$(az containerapp show \
54
+
--name <app-name> \
55
+
--resource-group <resource-group> \
56
+
--query id \
57
+
--output tsv)
58
+
```
59
+
60
+
Patch the clientCertificateMode Property on the App:
When `require` is set, the client must provide a certificate.
77
+
When `accept` is set, the certificate is optional. If the client provides a certificate, it is passed to the app in the X-Forwarded-Client-Cert header, as a semicolon-separated list. For example:
0 commit comments