Files
cozystack/hack/e2e-chainsaw/postgres
Timofei LarkinandIvanHunters 8a31d2b09f test(postgres): check that a minted password is shown only once
The e2e test mints a password, logs in with it, and checks every place
it could be read again: the account Secret must hold a SCRAM verifier,
decoded rather than matched in the raw base64; neither the application,
any Helm revision nor what the tenant's super-admins read through
tenantsecrets may carry it; and they cannot read the account Secret.
Each read is captured in an assignment, which stops the script on
failure, so a failed kubectl, base64 or gunzip cannot leave a check with
nothing to assert on, and at least one Helm release Secret is required.
The step runs under bash and passes the password to psql on stdin, never
as an exec argument.

Co-authored-by: IvanHunters <xorokhotnikov@gmail.com>
Assisted-by: LLM
Signed-off-by: Timofei Larkin <lllamnyp@gmail.com>
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
2026-11-30 18:21:27 +01:00
..