OpsCanary
kubernetessecurityPractitioner

Mastering EKS Certificate Authority Rotation: Keep Your Cluster Secure

5 min read AWS Containers BlogAug 19, 2026Reviewed for accuracy
Share
PractitionerHands-on experience recommended

Certificate authority (CA) rotation is essential for keeping your Amazon EKS cluster secure and operational. It allows you to replace the CA before its validity period ends, ensuring that your cluster transitions to a successor CA without losing connectivity for any components. This proactive approach mitigates risks associated with an expired CA, which can lead to significant downtime and security vulnerabilities.

AWS automates the CA rotation lifecycle, updating all managed components in EKS, including the control plane and AWS Fargate, to trust the new CA. A critical aspect of this process is the dual trust period, where both the outgoing and successor CAs are trusted simultaneously. This ensures that your cluster remains operational while AWS distributes the successor CA across all components. If you don't append a successor CA yourself, AWS will do it for you as the outgoing CA nears expiration. Additionally, if you fail to activate the successor CA, AWS will automatically activate it before the outgoing CA expires, safeguarding your cluster's availability.

In production, be mindful of the dual trust period, as your cluster's trust bundle will contain two CAs, which can increase the size of your user data in EC2 launch templates. If you're near the 16 KB user data limit, consider compressing your user data using gzip to avoid issues. Remember that EKS clusters created since 2018 have CAs with a 10-year validity period, giving you ample time between rotations but still requiring proactive management to ensure security and connectivity.

Key takeaways

  • Understand CA rotation to maintain cluster security and avoid downtime.
  • Utilize the dual trust period to ensure seamless transitions between CAs.
  • Monitor user data size in EC2 launch templates during CA rotation.
  • Leverage AWS automation for CA management to reduce manual overhead.
  • Remember that EKS CAs have a 10-year validity period, but proactive rotation is still necessary.

Why it matters

In production, failing to manage CA rotation can lead to security vulnerabilities and downtime. Keeping your CA up to date is essential for maintaining trust and connectivity within your EKS cluster.

Code examples

Bash
aws eks create-certificate-authority --cluster-name payments-prod --region us-west-2
Bash
aws eks list-certificate-authorities --cluster-name payments-prod --region us-west-2
Bash
aws eks update-kubeconfig --name payments-prod --region us-west-2

When NOT to use this

The official docs don't call out specific anti-patterns here. Use your judgment based on your scale and requirements.

Want the complete reference?

Read official docs

Test what you just learned

Quiz questions written from this article

Take the quiz →
Linux FoundationSponsor

Industry-standard certifications built by the people behind Linux and Kubernetes. Earn the CKA — the gold standard Kubernetes administrator cert. OpsCanary readers get 30% off year-round with code OPSCANARY3.

Get CKA certified →

Get the daily digest

One email. 5 articles. Every morning.

No spam. Unsubscribe anytime.