fix: remove credential SQL from operator diagnostics #2
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
homelab/postgres-operator!2
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/20ca7f9d-password-logs"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Credential CREATE/ALTER USER failures now expose a fixed operation, username and validated SQLSTATE. Password-bearing SQL and raw driver causes no longer enter operator logs, DatabaseReady conditions or returned reconcile errors. SQL execution/retry behavior is unchanged.
Evidence
After: quoted-password, SQL-echoing driver errors, wrapped pq diagnostics and invalid SQLSTATE tests pass; full tests/build/lint and chart/server dry-runs pass.
90fae7b. No Woodpecker registration.90fae7b; release/Helm chart contents match. Image indexsha256:4a1f2b026b92c3f322b14b987cc69ab0395a986efa5031702c1d61eb3db785c8is now running via core #69, chart 0.1.9. Version tags retained in Forgejo and mirrored.Merge danger
Door: one-way
Published images/releases/manifests/charts persist; code/image can be reverted. Releases were explicitly approved.
Blast radius: app
Operator diagnostics only. Confirmed PostgreSQL server-log credential exposure remains HIGH in HOMEIT-433. This fix does not stop that separate leak or authorize rotation/risk acceptance.
Rollback and verification
Security review pinned to operator
11820dc3df(PR #2), core 51d8f61 (#69), base 7ed2287 (#59). Forgejo source/three-dot diffs reviewed.Standards
Spec
Recommend promptly advancing HOMEIT-433 (currently triage): stop server-side disclosure, including genuine CREATE/ALTER failures, then obtain Morten-approved coordinated rotation of all 15 affected credentials and retention decision. Operator fix is available in this PR but does not stop server-side leakage; no deployed server-side fix verified. Keep these tasks open; do not interpret review completion as incident resolution.
After approved publication, owner verifies exact image digest, ArgoCD revision, replica/restarts, all 15 Ready resources and count-only logs/status; use synthetic tests for failure paths, never provoke production credential failures. Rollback to the prior pin restores unsafe logging and cannot revoke exposed credentials or remove published artifacts.
Findings: Standards 1 blocking release gate, 1 non-blocking; Spec 4 non-blocking, worst residual HIGH (historical extent UNKNOWN). No blocking implementation finding.