Open EugenKon opened 10 months ago
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 -i -e '/^host all all all/d' "$PGDATA/pg_hba.conf"
It would be nice to disable that functionality so user can manage it manually, eg. CUSTOM_PG_HBA=true
.
docker-entrypoint.sh
sets uphost all all all scram-sha-256
intopg_hba.conf
file. https://github.com/docker-library/postgres/blob/8a631b939a0b4197cb6bef49b50b6c40c80ddf5b/15/bookworm/docker-entrypoint.sh#L252For 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 https://github.com/docker-library/postgres/blob/8a631b939a0b4197cb6bef49b50b6c40c80ddf5b/15/bookworm/docker-entrypoint.sh#L331