helm-charts icon indicating copy to clipboard operation
helm-charts copied to clipboard

Referencing a kubernetes secret for the value of OPENSEARCH_INITIAL_ADMIN_PASSWORD extraEnv

Open vmm-afonso opened this issue 11 months ago • 3 comments

Is your feature request related to a problem? Please describe. This is meant to avoid exposing the initial Admin password in the extraEnvs to someone with access to the cluster who's able to see the statefulset yaml

Describe the solution you'd like Something like this:

  - name: OPENSEARCH_INITIAL_ADMIN_PASSWORD
    valueFrom:
      secretKeyRef:
        name: initial-admin-password
        key: password

referencing a key from a secret "initial-admin-password"

vmm-afonso avatar Mar 01 '24 12:03 vmm-afonso

What about envFrom: [] :see https://github.com/opensearch-project/helm-charts/blob/main/charts/opensearch/values.yaml#L113C1-L118 ?

dhardy92 avatar Mar 08 '24 10:03 dhardy92

[Triage] Thanks @dhardy92, @vmm-afonso can you please test with envFrom and see if that works for you?

prudhvigodithi avatar Apr 01 '24 18:04 prudhvigodithi

envFrom works like a charm for me

bianchi2 avatar May 07 '24 07:05 bianchi2