Refs #2. Found while starting the wrapper chart, which is the first thing that actually has to wire this up.
The chart as merged asks for a whole DSN in a Secret. Nothing writes one. The Zalando postgres operator generates a Secret with username and password keys and no connection string, so using it would mean hand-maintaining a second copy of a password the operator owns and re-mints on a from-scratch rebuild — which is charts#176, the exact problem miniflux closed by doing the opposite.
So:
database.dsn is a plain value with no password in it.
database.passwordSecret supplies PGPASSWORD, pointed straight at the operator's Secret.
pgx fills in from libpq's PG* environment variables whatever the DSN omits, the same way miniflux's lib/pq does.
Verified, not assumed — the same check charts#176 records for miniflux, against a real server:
password-less DSN + correct PGPASSWORD → connects and serves;
same DSN + wrong PGPASSWORD → failed SASL auth: FATAL: password authentication failed for user "terdut" (SQLSTATE 28P01).
So the variable is doing the work rather than being silently ignored.
It also keeps the credential out of the rendered manifest and out of kubectl describe pod, which a DSN-with-password does not.
Needed before the wrapper chart in Ryuvia/charts can declare the postgresql CR, and therefore before the cutover.
Refs #2. Found while starting the wrapper chart, which is the first thing that actually has to wire this up.
The chart as merged asks for a whole DSN in a Secret. **Nothing writes one.** The Zalando postgres operator generates a Secret with `username` and `password` keys and no connection string, so using it would mean hand-maintaining a second copy of a password the operator owns and re-mints on a from-scratch rebuild — which is charts#176, the exact problem miniflux closed by doing the opposite.
So:
- `database.dsn` is a plain value with no password in it.
- `database.passwordSecret` supplies `PGPASSWORD`, pointed straight at the operator's Secret.
pgx fills in from libpq's `PG*` environment variables whatever the DSN omits, the same way miniflux's lib/pq does.
**Verified, not assumed** — the same check charts#176 records for miniflux, against a real server:
- password-less DSN + correct `PGPASSWORD` → connects and serves;
- same DSN + wrong `PGPASSWORD` → `failed SASL auth: FATAL: password authentication failed for user "terdut" (SQLSTATE 28P01)`.
So the variable is doing the work rather than being silently ignored.
It also keeps the credential out of the rendered manifest and out of `kubectl describe pod`, which a DSN-with-password does not.
Needed before the wrapper chart in `Ryuvia/charts` can declare the `postgresql` CR, and therefore before the cutover.
The chart asked for a whole DSN in a Secret. Nothing writes one: the
Zalando postgres operator generates a Secret with `username` and
`password` keys and no connection string, so wiring the wrapper chart up
would have meant hand-maintaining a second copy of a password the
operator owns and rotates on a from-scratch rebuild -- which is charts#176
again, the issue miniflux closed by doing the opposite.
So the DSN becomes a plain value with no password in it, and the password
arrives as PGPASSWORD from a Secret. pgx fills in from libpq's PG*
environment variables whatever the DSN omits, exactly as miniflux's
lib/pq does. Verified rather than assumed, against a real server: a
password-less DSN connects with PGPASSWORD set, and fails with
`password authentication failed` when it is wrong, so the variable is
doing the work rather than being quietly ignored.
It also keeps the credential out of the rendered manifest and out of
`kubectl describe pod`, which a DSN-with-password does not.
niklas
merged commit cede8743a8 into main2026-09-20 09:07:33 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Refs #2. Found while starting the wrapper chart, which is the first thing that actually has to wire this up.
The chart as merged asks for a whole DSN in a Secret. Nothing writes one. The Zalando postgres operator generates a Secret with
usernameandpasswordkeys and no connection string, so using it would mean hand-maintaining a second copy of a password the operator owns and re-mints on a from-scratch rebuild — which is charts#176, the exact problem miniflux closed by doing the opposite.So:
database.dsnis a plain value with no password in it.database.passwordSecretsuppliesPGPASSWORD, pointed straight at the operator's Secret.pgx fills in from libpq's
PG*environment variables whatever the DSN omits, the same way miniflux's lib/pq does.Verified, not assumed — the same check charts#176 records for miniflux, against a real server:
PGPASSWORD→ connects and serves;PGPASSWORD→failed SASL auth: FATAL: password authentication failed for user "terdut" (SQLSTATE 28P01).So the variable is doing the work rather than being silently ignored.
It also keeps the credential out of the rendered manifest and out of
kubectl describe pod, which a DSN-with-password does not.Needed before the wrapper chart in
Ryuvia/chartscan declare thepostgresqlCR, and therefore before the cutover.