Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autogenerate Minio and Postgres passwords #24

Open
jesper7 opened this issue Jan 9, 2023 · 0 comments
Open

Autogenerate Minio and Postgres passwords #24

jesper7 opened this issue Jan 9, 2023 · 0 comments
Labels
enhancement New feature or request p2-medium Priority level 2 - medium studio Everything related to the Studio Helm chart

Comments

@jesper7
Copy link
Contributor

jesper7 commented Jan 9, 2023

Like we do for SECRET_KEY, we should also autogenerate Minio and Postgres passwords unless provided in values.yaml

# Set secretKey to existing value or generate a random one
{{- if .Values.global.secrets.secretKey }}
secretKey: {{ .Values.global.secrets.secretKey | b64enc }}
{{- else }}
{{- $secretObj := (lookup "v1" "Secret" .Release.Namespace "studio") | default dict }}
{{- $secretData := (get $secretObj "data") | default dict }}
{{- $secretKey := (get $secretData "secretKey") | default (randAscii 40 | b64enc) }}
secretKey: {{ $secretKey | quote }}
{{- end }}

@jesper7 jesper7 added enhancement New feature or request studio Everything related to the Studio Helm chart labels Jan 9, 2023
@jesper7 jesper7 self-assigned this Jan 9, 2023
@omesser omesser added the p2-medium Priority level 2 - medium label Jan 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request p2-medium Priority level 2 - medium studio Everything related to the Studio Helm chart
Projects
None yet
Development

No branches or pull requests

2 participants