fleetanalytics_mcp/pgbouncer/userlist.txt.example

15 lines
788 B
Text
Raw Normal View History

# userlist.txt — ONLY the pgbouncer_auth role needs an entry; every other user is
# resolved at connect time by auth_query (pgbouncer.user_lookup). See README.
#
# The real userlist.txt is gitignored (it holds a credential). Generate it from the
# pgbouncer_auth password you set in auth_setup.sql — PgBouncer accepts the verifier
# in SCRAM form. Easiest: copy the stored verifier straight from Postgres so the
# formats always match:
#
# docker exec -i <timescale_db> psql -U postgres -d tracksolid_db -tAc \
# "SELECT '\"pgbouncer_auth\" \"' || passwd || '\"' \
# FROM pg_shadow WHERE usename='pgbouncer_auth'" > pgbouncer/userlist.txt
#
# That yields a line of the form (SCRAM-SHA-256 verifier shown abbreviated):
"pgbouncer_auth" "SCRAM-SHA-256$4096:....$....:...."