diff --git a/bitnami/pgbouncer/1/debian-12/rootfs/opt/bitnami/scripts/libpgbouncer.sh b/bitnami/pgbouncer/1/debian-12/rootfs/opt/bitnami/scripts/libpgbouncer.sh index 8afb88afe39c5..08f0ce3831f42 100644 --- a/bitnami/pgbouncer/1/debian-12/rootfs/opt/bitnami/scripts/libpgbouncer.sh +++ b/bitnami/pgbouncer/1/debian-12/rootfs/opt/bitnami/scripts/libpgbouncer.sh @@ -73,6 +73,9 @@ pgbouncer_validate() { elif [[ ! -f "$PGBOUNCER_AUTH_HBA_FILE" ]]; then print_validation_error "The hba file in the specified path ${PGBOUNCER_AUTH_HBA_FILE} does not exist" fi + if [[ ! -z "$PGBOUNCER_AUTH_IDENT_FILE" ]] && [[ ! -f "$PGBOUNCER_AUTH_IDENT_FILE" ]]; then + print_validation_error "The ident map file in the specified path ${PGBOUNCER_AUTH_IDENT_FILE} does not exist" + fi fi # TLS Checks (client) @@ -269,6 +272,7 @@ pgbouncer_initialize() { "auth_file:${PGBOUNCER_AUTH_FILE}" "auth_type:${PGBOUNCER_AUTH_TYPE}" "auth_hba_file:${PGBOUNCER_AUTH_HBA_FILE}" + "auth_ident_file:${PGBOUNCER_AUTH_IDENT_FILE}" "auth_query:${PGBOUNCER_AUTH_QUERY}" "pidfile:${PGBOUNCER_PID_FILE}" "logfile:${PGBOUNCER_LOG_FILE}" diff --git a/bitnami/pgbouncer/1/debian-12/rootfs/opt/bitnami/scripts/pgbouncer-env.sh b/bitnami/pgbouncer/1/debian-12/rootfs/opt/bitnami/scripts/pgbouncer-env.sh index b6af7bbb3cf67..341d1f1e6422d 100644 --- a/bitnami/pgbouncer/1/debian-12/rootfs/opt/bitnami/scripts/pgbouncer-env.sh +++ b/bitnami/pgbouncer/1/debian-12/rootfs/opt/bitnami/scripts/pgbouncer-env.sh @@ -32,6 +32,7 @@ pgbouncer_env_vars=( PGBOUNCER_AUTH_QUERY PGBOUNCER_AUTH_TYPE PGBOUNCER_AUTH_HBA_FILE + PGBOUNCER_AUTH_IDENT_FILE PGBOUNCER_STATS_USERS PGBOUNCER_POOL_MODE PGBOUNCER_INIT_SLEEP_TIME @@ -126,6 +127,7 @@ export PGBOUNCER_AUTH_USER="${PGBOUNCER_AUTH_USER:-}" export PGBOUNCER_AUTH_QUERY="${PGBOUNCER_AUTH_QUERY:-}" export PGBOUNCER_AUTH_TYPE="${PGBOUNCER_AUTH_TYPE:-scram-sha-256}" export PGBOUNCER_AUTH_HBA_FILE="${PGBOUNCER_AUTH_HBA_FILE:-}" +export PGBOUNCER_AUTH_IDENT_FILE="${PGBOUNCER_AUTH_IDENT_FILE:-}" export PGBOUNCER_STATS_USERS="${PGBOUNCER_STATS_USERS:-}" export PGBOUNCER_POOL_MODE="${PGBOUNCER_POOL_MODE:-}" export PGBOUNCER_INIT_SLEEP_TIME="${PGBOUNCER_INIT_SLEEP_TIME:-10}" diff --git a/bitnami/pgbouncer/README.md b/bitnami/pgbouncer/README.md index 52b92b3a57a51..62df7b4999149 100644 --- a/bitnami/pgbouncer/README.md +++ b/bitnami/pgbouncer/README.md @@ -82,6 +82,7 @@ docker build -t bitnami/APP:latest . | `PGBOUNCER_AUTH_QUERY` | PgBouncer authentication query | `nil` | | `PGBOUNCER_AUTH_TYPE` | PgBouncer authentication type | `scram-sha-256` | | `PGBOUNCER_AUTH_HBA_FILE` | HBA configuration file to use | `nil` | +| `PGBOUNCER_AUTH_IDENT_FILE` | Ident map file to use | `nil` | | `PGBOUNCER_STATS_USERS` | PgBouncer comma-separated list of database users that are allowed to connect and run read-only queries. | `nil` | | `PGBOUNCER_POOL_MODE` | PgBouncer pool mode. Allowed values: session (default), transaction and statement. | `nil` | | `PGBOUNCER_INIT_SLEEP_TIME` | PgBouncer initialization sleep time | `10` |