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/aks/certificate-rotation.md
+17-12Lines changed: 17 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,19 @@
1
1
---
2
-
title: Rotate certificates in Azure Kubernetes Service (AKS)
3
-
description: Learn how to rotate your certificates in an Azure Kubernetes Service (AKS) cluster.
2
+
title: Certificate Rotation in Azure Kubernetes Service (AKS)
3
+
description: Learn certificate rotation in an Azure Kubernetes Service (AKS) cluster.
4
4
services: container-service
5
5
ms.topic: article
6
-
ms.date: 3/4/2022
6
+
ms.date: 3/29/2022
7
7
---
8
8
9
-
# Rotate certificates in Azure Kubernetes Service (AKS)
9
+
# Certificate rotation in Azure Kubernetes Service (AKS)
10
10
11
-
Azure Kubernetes Service (AKS) uses certificates for authentication with many of its components. Periodically, you may need to rotate those certificates for security or policy reasons. For example, you may have a policy to rotate all your certificates every 90 days.
11
+
Azure Kubernetes Service (AKS) uses certificates for authentication with many of its components. If you have a RBAC-enabled cluster built after March 2022 it is enabled with certificate auto-rotation. Periodically, you may need to rotate those certificates for security or policy reasons. For example, you may have a policy to rotate all your certificates every 90 days.
12
12
13
-
This article shows you how to rotate the certificates in your AKS cluster.
13
+
> [!NOTE]
14
+
> Certificate auto-rotation will not be enabled by default for non-RBAC enabled AKS clusters.
15
+
16
+
This article shows you how certificate rotation works in your AKS cluster.
14
17
15
18
## Before you begin
16
19
@@ -28,7 +31,7 @@ AKS generates and uses the following certificates, Certificate Authorities, and
28
31
* The `kubectl` client has a certificate for communicating with the AKS cluster.
29
32
30
33
> [!NOTE]
31
-
> AKS clusters created prior to May 2019 have certificates that expire after two years. Any cluster created after May 2019 or any cluster that has its certificates rotated have Cluster CA certificates that expire after 30 years. All other AKS certificates, which use the Cluster CA to for signing, will expire after two years and are automatically rotated during AKS version upgrade happened after 8/1/2021. To verify when your cluster was created, use `kubectl get nodes` to see the *Age* of your node pools.
34
+
> AKS clusters created prior to May 2019 have certificates that expire after two years. Any cluster created after May 2019 or any cluster that has its certificates rotated have Cluster CA certificates that expire after 30 years. All other AKS certificates, which use the Cluster CA for signing, will expire after two years and are automatically rotated during an AKS version upgrade which happened after 8/1/2021. To verify when your cluster was created, use `kubectl get nodes` to see the *Age* of your node pools.
32
35
>
33
36
> Additionally, you can check the expiration date of your cluster's certificate. For example, the following bash command displays the client certificate details for the *myAKSCluster* cluster in resource group *rg*
Azure Kubernetes Service will automatically rotate non-ca certificates on both the control plane and agent nodes before they expire with no downtime for the cluster.
56
-
57
58
For AKS to automatically rotate non-CA certificates, the cluster must have [TLS Bootstrapping](https://kubernetes.io/docs/reference/command-line-tools-reference/kubelet-tls-bootstrapping/) which has been enabled by default in all Azure regions.
58
59
60
+
> [!Note]
61
+
> If you have an existing cluster you have to upgrade that cluster to enable Certificate Auto-Rotation.
62
+
63
+
For any AKS clusters created or upgraded after March 2022 Azure Kubernetes Service will automatically rotate non-ca certificates on both the control plane and agent nodes within 80% of the client certificate valid time, before they expire with no downtime for the cluster.
64
+
59
65
#### How to check whether current agent node pool is TLS Bootstrapping enabled?
60
66
To verify if TLS Bootstrapping is enabled on your cluster browse to the following paths. On a Linux node: /var/lib/kubelet/bootstrap-kubeconfig, on a Windows node, it’s c:\k\bootstrap-config.
61
67
@@ -69,8 +75,7 @@ To verify if TLS Bootstrapping is enabled on your cluster browse to the followin
69
75
70
76
Auto cert rotation won't be enabled on non-rbac cluster.
71
77
72
-
73
-
## Rotate your cluster certificates
78
+
## Manually rotate your cluster certificates
74
79
75
80
> [!WARNING]
76
81
> Rotating your certificates using `az aks rotate-certs` will recreate all of your nodes and their OS Disks and can cause up to 30 minutes of downtime for your AKS cluster.
Copy file name to clipboardExpand all lines: articles/aks/managed-aad.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -190,7 +190,7 @@ When deploying an AKS Cluster, local accounts are enabled by default. Even when
190
190
> On clusters with Azure AD integration enabled, users belonging to a group specified by `aad-admin-group-object-ids` will still be able to gain access via non-admin credentials. On clusters without Azure AD integration enabled and `properties.disableLocalAccounts` set to true, obtaining both user and admin credentials will fail.
191
191
192
192
> [!NOTE]
193
-
> After disabling local accounts users on an already existing AKS cluster where users might have used local account/s, admin must [rotate the cluster certificates](certificate-rotation.md#rotate-your-cluster-certificates), in order to revoke the certificates those users might have access to. If this is a new cluster than no action is required.
193
+
> After disabling local accounts users on an already existing AKS cluster where users might have used local account/s, admin must [rotate the cluster certificates](certificate-rotation.md), in order to revoke the certificates those users might have access to. If this is a new cluster then no action is required.
0 commit comments