-
Notifications
You must be signed in to change notification settings - Fork 75
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
Use Dependency check chart to create randomly Generate Postgresql Password #90
base: master
Are you sure you want to change the base?
Conversation
Is this really needed? See the bitnami chart for postgres and how it handles secrets. |
@davidkarlsen, I disagree, the postgresql password for the user
Therefore my proposed changes allow the Postgresql secret to be created outside of the Postgresql chart. I believe DefectDojo chart
|
We can drop the default credentials. But the postgres chart is a child chart handled by bitnami - so see what they have in place for this. |
@davidkarlsen Yes but Postgresql doesn't reuse it's Chart generated secret when performing a Helm Upgrade #6731 The first password generated is the correct value and after re-installing, the secret would get populated with a new (wrong) password.
By handling secrets outside of the chart using "existingSecret" this allows us to create the secret outside the Postgresql Chart and add the functionality to persist the secret when perfroming a Helm Upgrade. Additionally, by adding options to re-create the secrets, it's easier to handle the lifecycle of the secrets: ie. the same secret when performing an upgrade so it will still hold the correct value. |
merge please, it is good decision
|
Fixes #89 and adds the ability to handle a persistent PostgreSQL password when performing a helm upgrade.