hashicorp / hashicorp/vault-secrets-operator
Namespaced Service Accounts
- Dominant language
- Go
- Stars
- 600
- Forks
- 146
- Avg merge
- 3d 8h
- Merged PRs (30d)
- 6
Description
Off the back of #291 and #274, should the service account defined in VaultAuth also support namespaces? This will support global default Auth and Connections
If a VaultStaticSecret is located in a namespace which differs to the VaultAuth, the VaultStaticSecret will try to use the service account defined in the VaultAuth from within the VaultStaticSecret namespace.
Observed error in VaultStaticSecret:
```bash
Warning VaultClientConfigError 7m5s (x18 over 18m) VaultStaticSecret Failed to get Vault auth login: ServiceAccount "my-vso-sa" not found
```
Possible solution - as with #291, allow for namespaced values for VaultAuth's spec.kubernetes.serviceAccount. e.g.
`spec.kubernetes.serviceAccount: vault-secret-operator-system/my-vso-sa`
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by tracing how VaultAuth's spec.kubernetes.serviceAccount is resolved when a VaultStaticSecret is in another namespace, using the reported ServiceAccount-not-found error as the reproduction. Implement support for a namespace-qualified service-account value such as vault-secret-operator-system/my-vso-sa, and verify that global default Auth and Connections work across namespaces.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, kubernetes
- Domain
- infrastructure
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100