Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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}"
Expand Down
1 change: 1 addition & 0 deletions bitnami/pgbouncer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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` |
Expand Down
Loading