The aws-auth ConfigMap is deprecated
AWS explain why the deprecated ConfigMap ?
And why they prefer EKS access entries
The aws-auth ConfigMap is deprecated
AWS explain why the deprecated ConfigMap ?
And why they prefer EKS access entries
Probably because the entire community complained about it for the past 5 years or so
Because a non-zero and possibly including myself number of people have absolutely locked ourselves out a newly built cluster by messing it up.
The aws-auth Configmap is an in-cluster resource. You need to be authenticated towards the K8S cluster to edit it. I guess there were two things people complained about - there is a need to add a default IAM principal into the map in order to have access to the cluster upon creation. AWS does that by default when you create the cluster - it adds the principal you created the cluster with as a cluster administrator. The other thing was the fact that you can lock everyone out of the cluster if you just delete the config map. The only was to recover was to get through support (?) Never happend to me so I’m just guessing here.
The access entries is essentially the same thing with the difference that AWS has put the functionality into an API and hid the config map from what you see inside the EKS cluster. You can’t lock yourself out because you can always edit the access entries through AWS Console, SDK, API and you can also create the cluster with empty access entries and add as you go. The principal you create the cluster with does not have to be in the access entries at all. It essentially solves the two things people complained about.
TL;DR could be - EKS access entries is basically a managed aws-auth config map
it protects you from screwing up.
Locking out and not very easy to control with Terraform
You have to have access to the cluster to give access to the cluster. So it’s bad for automation and for the potential of locking yourself out. Access entries are nicer to use and can be modified without access to the cluster’s API
Good write up here:
Hope it helps
Add me to that list.
This is the way, and drop irsa for pod-identity. No longer will you need to intermix your k8s yaml and terraform
It should be free to make an account, but there is a CIS Benchmark specific to AWS EKS that gives a fairly detailed explanation:
https://workbench.cisecurity.org/
4.1.7 Cluster Access Manager API to streamline and enhance the
management of access controls within EKS clusters (Automated)
Profile Applicability:
* Level 1
Description:
Amazon EKS has introduced the Cluster Access Manager API to streamline and
enhance the management of access controls within EKS clusters. This new approach is
now the recommended method over the traditional aws-auth ConfigMap for managing
Role-Based Access Control (RBAC) and Service Accounts.
Key Advantages of Using the Cluster Access Manager API:
Rationale:
The compelling rationale for using the Cluster Access Manager API instead of the
traditional aws-auth ConfigMap in Amazon EKS revolves around security, scalability,
operational efficiency, and simplified management.
- Faster and Safer Access Provisioning
* No More Cluster Downtime: Errors in the aws-auth ConfigMap can accidentally
lock out users or admins from the cluster, requiring complex recovery processes.
The API-based approach is more resilient, reducing the risk of misconfigurations
causing downtime.
* Immediate Effect: Changes made via the API take effect immediately, whereas
updates to the aws-auth ConfigMap may require a delay or even restarting
components in some cases.
If you misconfigured aws-auth config map you could lock yourself out of your cluster.
I got really tired of different things fighting over that damn configmap. Also got tired of some things putting everything in quotes in the yaml and other things wanting no quotes.
This blog post explains the reason: https://aws.amazon.com/blogs/containers/a-deep-dive-into-simplified-amazon-eks-access-management-controls/