terraform-aws-eks-blueprints-teams icon indicating copy to clipboard operation
terraform-aws-eks-blueprints-teams copied to clipboard

feature request: elastic admin team creation without relying on system:master

Open LeoSpyke opened this issue 2 years ago • 2 comments

As of today, the creation of a new admin team (enable_admin=true) eventually produces an aws_auth_configmap_role output, which contains the hardcoded group system:masters. Creating additional administrative users belonging to the above-mentioned group (other than the IAM Principal used to initially bootstrap the cluster, which is neither visible nor editable) is against best practices and discouraged for security purposes; it is like using the root account in your AWS environment.

Maybe an improvement can be implemented by giving the ability to choose whether the new team should be added to the system:master or to another one created ad hoc, like with the "Development Teams", thus creating a ClusterRoleBinding to the built-in cluster-admin ClusterRole. This will have the same effect as using system:masters, but would allow those rights to be removed if necessary, by removing the group from the ClusterRoleBinding.

LeoSpyke avatar Jun 20 '23 13:06 LeoSpyke

I think this is a reasonable request. I will add it to our backlog.

askulkarni2 avatar Jun 28 '23 22:06 askulkarni2

Hi @LeoSpyke!

If I understand correctly, you want a way to provide another existing Role or ClusterRole to the admin-team other than the system:masters, or replace the existing for another ClusterRoleBinding attached to the cluster-admin role. Is that correct?

rodrigobersa avatar Aug 16 '23 23:08 rodrigobersa

I'm assuming this project is now abandoned? There hasn't been any progress or work on it in a year.

Daemoen avatar Jul 29 '24 15:07 Daemoen

I'm going to close this issue due to migration to EKS API and lack of interest.

LeoSpyke avatar Aug 05 '24 14:08 LeoSpyke