Docs: dashboard password reset still leaves the SCRAM verifier in pg_stat_statements #53343
EnglishMagik
started this conversation in
General
Replies: 1 comment 1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi. The KB article “Provisioning Postgres role credentials without exposing them in logs” recommends setting or rotating passwords through the Dashboard or Management API because “when there is no password statement, there is nothing to appear in a log”.
On a Free-plan test project I reset the database password in the Dashboard. Afterwards,
extensions.pg_stat_statementscontained a new entry, run bysupabase_admin, whose stored query text includes what appears to be a SCRAM-SHA-256 verifier for thepostgresrole. Itsstats_sinceclosely matches the time of the reset. The entry is readable bypostgresanddashboard_user. (The statement log itself showed nothing, as the article says.)Could the docs make clear that log masking does not cover
pg_stat_statements, and say whether the platform can avoid recording these platform-issued password statements (e.g.pg_stat_statements.track = 'none'for that transaction)? Is removing that single entry withpg_stat_statements_reset(userid, dbid, queryid)the recommended clean-up?Thank you.
All reactions