k8wiz
Flux CD
Medium
Security

How can a Kustomization apply resources with a tenant's limited permissions instead of kustomize-controller's own?

Select your answer:

Show answer and explanation

Answer: Set spec.serviceAccountName, which the controller then impersonates

Explanation

kustomize-controller impersonates the named ServiceAccount when applying, so the tenant can only create what that account's RBAC allows. Platform admins can set --default-service-account so Kustomizations without the field still get a restricted account.