# Self-Service Namespace Onboarding on Amazon EKS: Automating Access Entries and RBAC with GitHub...

DevFeed: [Self-Service Namespace Onboarding on Amazon EKS: Automating Access Entries and RBAC with GitHub...](<https://devfeed.tech/articles/self-service-namespace-onboarding-on-amazon-eks-automating-access-entries-and-rbac-with-github-127576.md>)

Original publisher: [Read original article](<https://blog.devops.dev/self-service-namespace-onboarding-on-amazon-eks-automating-access-entries-and-rbac-with-github-74f0347e71e2?source=rss----33f8b2d9a328---4>)

Author: Oleh Adam Dubnytskyy

Published: 2026-11-10T09:42:12Z

Content type: tutorial

Language: en

Sources: [DevOps.dev](<https://devfeed.tech/sources/devops-dev.md>)

Topics: [rbac](<https://devfeed.tech/topics/rbac.md>), [Amazon Elastic Kubernetes Service](<https://devfeed.tech/topics/amazon-elastic-kubernetes-service.md>), [Access Control](<https://devfeed.tech/topics/access-control.md>), [Authorization](<https://devfeed.tech/topics/authorization.md>), [GitHub Actions](<https://devfeed.tech/topics/github-actions.md>), [CI/CD](<https://devfeed.tech/topics/cicd.md>), [AWS Security Token Service](<https://devfeed.tech/topics/aws-security-token-service.md>), [AWS IAM](<https://devfeed.tech/topics/aws-iam.md>), [self-service](<https://devfeed.tech/topics/self-service.md>), [internal developer platform automation](<https://devfeed.tech/topics/internal-developer-platform-automation.md>), [GitHub](<https://devfeed.tech/topics/github.md>)

Tags: [admin](<https://devfeed.tech/tags/admin.md>), [amazon-eks](<https://devfeed.tech/tags/amazon-eks.md>), [amazon-web-services](<https://devfeed.tech/tags/amazon-web-services.md>), [api](<https://devfeed.tech/tags/api.md>), [api-server](<https://devfeed.tech/tags/api-server.md>), [authentication](<https://devfeed.tech/tags/authentication.md>), [authorization](<https://devfeed.tech/tags/authorization.md>), [automation](<https://devfeed.tech/tags/automation.md>), [aws](<https://devfeed.tech/tags/aws.md>), [aws-eks](<https://devfeed.tech/tags/aws-eks.md>), [ci](<https://devfeed.tech/tags/ci.md>), [cluster](<https://devfeed.tech/tags/cluster.md>), [credentials](<https://devfeed.tech/tags/credentials.md>), [devops](<https://devfeed.tech/tags/devops.md>), [eks](<https://devfeed.tech/tags/eks.md>), [github](<https://devfeed.tech/tags/github.md>), [github-actions](<https://devfeed.tech/tags/github-actions.md>), [iam](<https://devfeed.tech/tags/iam.md>), [job](<https://devfeed.tech/tags/job.md>), [keys](<https://devfeed.tech/tags/keys.md>), [kubernetes](<https://devfeed.tech/tags/kubernetes.md>), [onboarding](<https://devfeed.tech/tags/onboarding.md>), [rbac](<https://devfeed.tech/tags/rbac.md>), [self-service](<https://devfeed.tech/tags/self-service.md>)

## AI overview

The excerpt describes namespace onboarding on Amazon EKS as two coordinated permission updates: an EKS access policy scope and Kubernetes RBAC. GitHub Actions authenticates through OIDC and temporary IAM role credentials. The EKS authorizer and RBAC authorizer can each allow a request, so effective permissions are their union; a restrictive custom RBAC role cannot narrow permissions already granted by a broader managed policy. The proposed setup uses separate workflows: one applies ClusterRoles and per-namespace RoleBindings, while another updates the access entry's namespace scope from files in a namespaces directory. The scripts validate namespace names, reject empty desired scopes, skip unchanged access-policy updates, and optionally prune stale managed RoleBindings. The excerpt notes that RBAC synchronization requires cluster-scoped rights and that missing namespaces are skipped with a warning before the workflow reports an error. The supplied text ends after describing this implementation and its pull request workflow.

## Source excerpt

Self-Service Namespace Onboarding on Amazon EKS: Automating Access Entries and RBAC with GitHub ActionsTwo authorization layers on Amazon EKS Every call my pipeline makes to the cluster's Kubernetes API server passes through two authorizers: Kubernetes RBAC and EKS access policies. Authentication: the access entry says who you are The pipeline never holds long-lived AWS keys. A GitHub Actions job gets an OIDC token, exchanges it for temporary credentials of an IAM role, and calls the cluster with them. More details on how it works can be seen here. Layer 1: Kubernetes RBAC RBAC is the standard Kubernetes model: Roles and ClusterRoles define rules, and RoleBindings attach them to a user or group. These objects live inside the cluster. You can write any rule you need, including rules for custom resources such as KEDA ScaledObject. Layer 2: EKS access policies Access policies are permission sets that AWS manages and that you attach to an access entry through the EKS API. They mirror the Kubernetes user-facing roles: AmazonEKSEditPolicy corresponds to edit, AmazonEKSAdminPolicy to admin, and so on. Each association has a scope: the whole cluster (type=cluster) or a list of namespaces (type=namespace). You can't modify an access policy or create your own. When the managed policies don't fit, more control can be configured by leveraging Kubernetes RBAC objects instead. How the two layers combine The API server chains its authorizers. The RBAC authorizer runs first and returns immediately if it allows the request. If RBAC has no opinion, the request goes to the EKS authorizer, which checks the access policies. If neither allows it, the request is denied. The access entry only establishes who the caller is; RBAC and access policies each get one chance to allow the request. Both authorizers can only allow or pass, so the effective permissions of ci-github-actions in a namespace are the union of both layers. That has two consequences for the automation: Onboarding a namespace