Skip to content

Infrastructure security ยท Practice and architecture

Kubernetes CI/CD RBAC: a responsibility matrix

Not every automation path involved in delivering an application needs cluster API access. Describe what a job must do before selecting its identity and permissions. The three roles below are a review model, not a universal policy to copy.

Role 1: image build and publication

The builder reads code, runs tests and publishes the artifact to an assigned registry project. Production cluster access is not a default requirement. Acceptance: a test image is published and build jobs do not receive production credentials.

Role 2: application deployment

A deployment identity needs only the operations and environment required by the application. In GitOps this may be an agreed controller identity rather than a CI runner. Acceptance: a release succeeds in scope and cannot change unrelated resources.

Role 3: platform operations

Cluster changes, node management and shared controllers need a separate approval path. Do not attach this identity to ordinary application rollouts. Acceptance: execution and approval can be traced to an agreed person or system.

Check effective access, not just the policy file

Role bindings, identity groups and integrations combine to define access. Test both allowed and denied actions under agreed conditions. Record the identity, type of check and expected outcome without including secret values.

Official documentation

Discuss your infrastructure

Choose a deployment, audit or maintenance scope for your environment. HLS works remotely with teams across Poland.

Kubernetes and AKS security audit