hashicorp / vault-helm

Helm chart to install Vault and other associated components.
Mozilla Public License 2.0
1.05k stars 868 forks source link

Improved admissions controll #941

Open leathem1 opened 11 months ago

leathem1 commented 11 months ago

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] This is not a problem but an improvement for LEAST PRIVILAGED access. We believe that providing too much access for admissionregistration.k8s.io to ALL resources is bad practice.

Describe the solution you'd like A clear and concise description of what you want to happen.

Restrict rules access for the injector-clusterrole in the following template file: charts/vault/templates/injector-clusterrole.yaml:

Original/current code:

rules:

NEW proposed code: (remove patch from all resources and specify it to only to the vault-agent-injector-cfg resource):

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.