Skip to content

How to achieve multi-tenant isolation with ServiceAccountName references? #5300

Answered by matheuscscp
erictoner asked this question in Q&A
Discussion options

You must be logged in to vote

If each kustomization.yaml in a tenant repository can set their serviceAccountName to whatever they want in a kustomization.yaml

This assumption is wrong. When you deploy a tenant repository, the Kustomization doing it must not use kustomize-controller's cluster-admin ServiceAccount. You need to set the spec.serviceAccountName field of this Kustomization to one that has no ClusterRoleBindings, it can only have RoleBindings on the namespace of the tenant.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@stefanprodan
Comment options

@matheuscscp
Comment options

@erictoner
Comment options

@matheuscscp
Comment options

@matheuscscp
Comment options

Answer selected by erictoner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants