Use Dependency check chart to create randomly Generate Postgresql Password#90
Use Dependency check chart to create randomly Generate Postgresql Password#90Homopatrol wants to merge 16 commits into
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.