Add kubernetes auth role for logging/vlogs #159
Reference in New Issue
Block a user
Delete Branch "benvin/vlogs-serviceaccount-auth"
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?
The vlogs pod in the logging namespace has no way to authenticate to Vault: the blanket k8s role only binds the
defaultservice account, so a pod running asvlogscannot log in or read its own KV secrets.logging_vlogskubernetes auth role, bound to service accountvlogsin namespaceloggingonly, with the pod-sidevaultaudience and 600s ttls.kv/kubernetespolicy to the new role, scoping its reads to its own namespace/service-account subtree.kv/data/kubernetes/namespace/logging/vlogs/*"and nothing wider" — attaching topolicies/kv/kubernetes/default.yamlalso grants the templated cluster-scoped rule (kv/data/kubernetes/cluster/au/syd1/logging/vlogs/*); body should mention both rules the role actually gets.Pull request closed