Add agent-dns RBAC: static SA + ClusterRole + per-namespace RoleBindings #332
Reference in New Issue
Block a user
Delete Branch "benvin/agent-dns-rbac"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
Vault's kubernetes secret engine will mint scoped tokens for a static `agent-dns` service account instead of generating cluster-wide RBAC, so agent DNS access is confined to exactly the bind namespaces. This is the GitOps half of the terraform-vault agent-dns role rework (PR unkin/terraform-vault#109). Ordering: this must sync before the Vault `agent-dns` creds are usable — Vault mints tokens for an SA that must already exist.
How
Whitelist note: the platform AppProject already permits ClusterRole/ClusterRoleBinding and all four namespace destinations, so no project change is needed.
https://claude.ai/code/session_01JUoARVdmhxKQHyyyp1pxeT