# pgagroal-specific pg_hba.conf
# Simple configuration for connection pooling tests
# TYPE  DATABASE        USER            ADDRESS                 METHOD

# Local connections
local   all             postgres                                trust
local   all             all                                     scram-sha-256

# Host connections for pgagroal testing
host    all             postgres        all                      trust
host    all             all            all                      scram-sha-256

# Allow connections from containers and local network
host    all             postgres        127.0.0.1/32            trust
host    all             all             127.0.0.1/32            scram-sha-256
host    all             postgres        ::1/128                 trust
host    all             all             ::1/128                 scram-sha-256
host    all             postgres        0.0.0.0/0               trust
host    all             all             0.0.0.0/0               scram-sha-256