We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docker-entrypoint.sh sets up host all all all scram-sha-256 into pg_hba.conf file.
docker-entrypoint.sh
host all all all scram-sha-256
pg_hba.conf
postgres/15/bookworm/docker-entrypoint.sh
Line 252 in 8a631b9
For my database located in trusted network I wan to configure trusted authentication, but can not, because first list matched first:
... host all all all scram-sha-256 host db user 172.16.0.0/12 trust
My /docker-entrypoint-initdb.d/000-trust.sh script is:
/docker-entrypoint-initdb.d/000-trust.sh
echo "host db user 172.16.0.0/12 trust" >> "${PGDATA}/pg_hba.conf"
It would be nice if this catch-all rule you will add later after processing init files
Line 331 in 8a631b9
The text was updated successfully, but these errors were encountered:
I'm not sure what changes we can safely make to that ordering, but you should be able to handle this in your initdb script via sed, something like:
sed
sed -i -e '/^host all all all/d' "$PGDATA/pg_hba.conf"
Sorry, something went wrong.
It would be nice to disable that functionality so user can manage it manually, eg. CUSTOM_PG_HBA=true.
CUSTOM_PG_HBA=true
No branches or pull requests
docker-entrypoint.sh
sets uphost all all all scram-sha-256
intopg_hba.conf
file.postgres/15/bookworm/docker-entrypoint.sh
Line 252 in 8a631b9
For my database located in trusted network I wan to configure trusted authentication, but can not, because first list matched first:
My
/docker-entrypoint-initdb.d/000-trust.sh
script is:It would be nice if this catch-all rule you will add later after processing init files
postgres/15/bookworm/docker-entrypoint.sh
Line 331 in 8a631b9
The text was updated successfully, but these errors were encountered: