From c8f7eb892136df9fe2a32e9ec8bb076595c64047 Mon Sep 17 00:00:00 2001 From: Vitaliy Kukharik Date: Sat, 18 Nov 2023 14:05:31 +0000 Subject: [PATCH] PgBouncer: Fix "local" pg_hba rule --- vars/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vars/main.yml b/vars/main.yml index 0750a62d8..0e150e6da 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -275,7 +275,7 @@ postgresql_pg_hba: - { type: "local", database: "all", user: "{{ patroni_superuser_username }}", address: "", method: "trust" } - { type: "local", database: "all", user: "{{ pgbouncer_auth_username }}", address: "", method: "trust" } # required for pgbouncer auth_user - { type: "local", database: "replication", user: "{{ patroni_superuser_username }}", address: "", method: "trust" } - - { type: "local", database: "all", user: "all", address: "", method: "peer" } + - { type: "local", database: "all", user: "all", address: "", method: "{{ postgresql_password_encryption_algorithm }}" } - { type: "host", database: "all", user: "all", address: "127.0.0.1/32", method: "{{ postgresql_password_encryption_algorithm }}" } - { type: "host", database: "all", user: "all", address: "::1/128", method: "{{ postgresql_password_encryption_algorithm }}" } # - { type: "host", database: "mydatabase", user: "mydb-user", address: "192.168.0.0/24", method: "{{ postgresql_password_encryption_algorithm }}" }