vault-secrets-operator icon indicating copy to clipboard operation
vault-secrets-operator copied to clipboard

Default vaultauthglobal in helm chart

Open johnbooth opened this issue 1 year ago • 5 comments

Is your feature request related to a problem? Please describe. Currently, there is no ability to manage a default VaultAuthGlobal configuration that can be used across all Kubernetes namespaces.

Describe the solution you'd like As a consumer of this chart, it would be beneficial to manage a default VaultAuthGlobal configuration in a manner similar to defaultVaultConnection and defaultAuthMethod. This would allow consumers of the Vault Secrets Operator (VSO) to create custom VaultAuth configurations in their namespaces, only needing to specify their unique roles.

Describe alternatives you've considered An alternative approach is to create and manage the VaultAuthGlobal configuration using a Terraform resource outside of the VSO Helm chart. Since the VaultAuthGlobal crd is scoped namespace it cannot be used across all namespace so this only helps if you have multiple custom VaultAuths in each namespace.

Additional context NA

johnbooth avatar Aug 01 '24 17:08 johnbooth

Since this request hasn't received any attention I am assuming that this is either not possible or I am thinking about this resource in the wrong way.

johnbooth avatar Aug 15 '24 10:08 johnbooth

We bumped into this, seems not clear how to manage that resource inside the Chart, if it's even possible as is (since I don't see any resource of type VaultAuthGlobal in the templates of the chart).

ollaw avatar Aug 30 '24 10:08 ollaw

Right. The only thing you can do is to specify a reference to an existing VaultAuthGlobal resource via defaultAuthMethod.vaultAuthGlobalRef which IMHO doesn't make any sense if you're installing the Helm chart for the first time and VSO CRDs do not yet exist and therefore a VaultAuthGlobal cannot exist as well.

wiebeck avatar Feb 19 '25 13:02 wiebeck

This confused me as well. Currently enabling the default ref requires an upgrade after deploying a VaultAuthGlobal resource.

tahoward avatar Feb 25 '25 19:02 tahoward

I'm confused too, has anyone managed to solve this? I saw this on the forum, but no answer.

SamuelMolling avatar Sep 22 '25 16:09 SamuelMolling