openobserve-helm-chart icon indicating copy to clipboard operation
openobserve-helm-chart copied to clipboard

Accept root credentials from existing secret

Open jennydaman opened this issue 1 year ago • 2 comments

Adds a feature so that the environment variables ZO_ROOT_USER_EMAIL and ZO_ROOT_USER_PASSWORD can be sourced from an existing secret.

Example values.yaml:

auth:
  existingRootUserSecret:
    name: my-openobserve-root-user

Furthermore, I fixed some minor Helm YAML gotchas: instead of "{{ .Values.auth.ZO_ROOT_USER_PASSWORD }}" the code should be {{ .Values.auth.ZO_ROOT_USER_PASSWORD | quote }} to properly handle values which contain \ or " characters.

jennydaman avatar Jan 22 '25 23:01 jennydaman

Here's how you can try it out:

kubectl create secret generic my-openobserve-root-user --from-literal=ZO_ROOT_USER_EMAIL='[email protected]' --from-literal=ZO_ROOT_USER_PASSWORD='ADifferentPass123'
helm install --generate-name --set auth.existingRootUserSecret.name=my-openobserve-root-user ./charts/openobserve-standalone

jennydaman avatar Jan 23 '25 00:01 jennydaman

Hi, @prabhatsharma can you take a look? It will be very useful for deployment in gitops without variable interpolation.

grzegorzgniadek avatar Nov 05 '25 22:11 grzegorzgniadek