mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-13 16:32:56 +00:00
I noticed that `compute_ctl` updates all roles on each start, search for rows like > - web_access:[FILTERED] -> update in the compute startup log. It happens since we had an adhoc hack for md5 hashes comparison, which doesn't work with scram hashes stored in the `pg_authid`. It doesn't really hurt, as nothing changes, but we just run >= 2 extra queries on each start, so fix it.
10 lines
559 B
Rust
10 lines
559 B
Rust
pub const DEFAULT_LOG_LEVEL: &str = "info";
|
|
// From Postgres docs:
|
|
// To ease transition from the md5 method to the newer SCRAM method, if md5 is specified
|
|
// as a method in pg_hba.conf but the user's password on the server is encrypted for SCRAM
|
|
// (see below), then SCRAM-based authentication will automatically be chosen instead.
|
|
// https://www.postgresql.org/docs/15/auth-password.html
|
|
//
|
|
// So it's safe to set md5 here, as `control-plane` anyway uses SCRAM for all roles.
|
|
pub const PG_HBA_ALL_MD5: &str = "host\tall\t\tall\t\t0.0.0.0/0\t\tmd5";
|