feat(chart): support external postgres and secret-sourced db passwords - #314
Merged
Merged
Conversation
sabinem
marked this pull request as draft
September 16, 2026 08:51
The chart addressed postgres by a name derived from its own release and rendered the backend's database password into a ConfigMap, so it could only ever talk to the postgres it installed itself, with a password copied into a values file. - backend.config.database.host is now read (it was documented but inert); empty still falls back to <release>-postgresql. - backend.config.database.existingSecret / existingSecretPasswordKey let an operator or secret store own the credentials. The same keys under keycloak.database.external are passed to the keycloak subchart. - The password now always travels in a Secret, chart-managed when no existingSecret is given, injected as HACKAGON_DATABASE_PASSWORD, which koanf layers over the mounted config.yaml. No backend change needed. - keycloak-init-configmap is gated on postgresql.enabled: an external postgres is expected to have its roles already, so neither password has to be supplied in plaintext. - validations.yaml collects the combinations the chart cannot render, replacing two assigned-but-unused variables in keycloak-realm-configmap that existed only to force a `required`. - Fix keycloak.database.external.database/.user, which the subchart reads as name/username, so both were silently ignored. Chart version 0.4.0 -> 0.5.0.
cmdoret
force-pushed
the
fix/chart-external-postgres
branch
from
September 17, 2026 09:49
5471648 to
397343f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The chart addressed postgres by a name derived from its own release and rendered the backend's database password into a ConfigMap, so it could only ever talk to the postgres it installed itself, with a password copied into a values file.
required.Chart version 0.4.0 -> 0.5.0.