DevOpsInterviewPrep logo
← ☁️ Cloud Architecture
Foundational

Amazon EKS access entries: separate AWS identity from Kubernetes authorization

Diagnose EKS API access using the actual IAM principal, cluster authentication mode and access scope. Keep cluster administration separate from workload AWS permissions.

TL;DR: EKS access entries associate IAM principals with Kubernetes access. Check the authenticated principal, cluster authentication mode and granted Kubernetes scope separately. Permission to call an AWS EKS API does not automatically authorize reading Kubernetes workloads.

Two APIs have different permission decisions

An operator can describe a cluster through AWS yet be unable to list its Pods. The first request is an AWS management API operation; the second reaches the Kubernetes API. Creating a kubeconfig supplies connection and authentication settings, not unrestricted Kubernetes authorization.

EKS access entries provide an AWS-managed way to associate an IAM principal with Kubernetes permissions. Depending on the chosen design, authorization can involve EKS access policies and Kubernetes groups bound through RBAC. See AWS's access-entry overview and verify the cluster's configured authentication mode before selecting a repair.

rendering diagram…

Diagnose the principal before editing access

A shell can use a different AWS profile or assumed role from the one a reviewer expected. In an authorized environment, inspect aws sts get-caller-identity with the same credential configuration used by the failing client. Review the kubeconfig context and any role-assumption settings. The command returns identity metadata; it does not grant access.

Then determine whether the failure is endpoint connectivity, authentication or an authenticated authorization denial. A private endpoint unreachable from the caller is not repaired by adding an access entry. Likewise, a namespace-scoped permission may correctly refuse a cluster-wide list.

ObservationBoundary to inspectAvoid this shortcut
AWS describe succeeds, Kubernetes deniesKubernetes access association and scopeAssume AWS administrator means cluster administrator
Wrong role in caller identityCredential/profile selectionGrant the accidental role more access
Timeout to cluster endpointNetwork path and endpoint settingsChange RBAC without connectivity evidence
One namespace worksNamespace and verb scopeGrant cluster-wide access to hide a scoped denial

A migration must preserve recovery access

Clusters may use legacy ConfigMap authentication, access entries, or a supported combination depending on mode. Review migration prerequisites and directionality before changing that mode. Do not assume every legacy mapping will be copied automatically or that a mode transition is trivially reversible.

Build an inventory of operators and automation identities, their necessary verbs and namespaces, and the access mechanism currently serving each. Test a replacement nonadministrator role before removing its old mapping. Retain a separately governed recovery path through the AWS management plane; it needs the relevant IAM authority and cluster support, not an unrestricted application service account.

A permission test should match the actual request. Listing Pods in team-a differs from listing every namespace, creating Deployments, or impersonating another user. Some permission-enumeration commands do not expose all authorizer-specific grants, so use bounded real requests and the documented access-policy behavior when validating EKS policy associations.

Self-check: a Pod's application can read an S3 bucket, but its operator cannot list Pods. Does the S3 role fix the operator's problem? No. Workload AWS credentials and human Kubernetes API access are separate paths.

Continue with EKS Pod Identity and the kubectl access scenario.

RELATED CONCEPTS
PRACTICE THIS IN REAL QUESTIONS