Commit 1b0356f
committed
Unset bootstrap credentials before exec-ing the server
POSTGRES_PASSWORD (and related vars) are only needed during initdb and
the temporary-server initialisation phase. After that they serve no
purpose, but remain in the process environment for the entire lifetime
of the container, where any loaded C extension can read them via
environ.
Unsetting them immediately before the final exec ensures the running
PostgreSQL server process starts with a clean environment.1 parent dc8f7ae commit 1b0356f
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
379 | 379 | | |
380 | 380 | | |
381 | 381 | | |
| 382 | + | |
382 | 383 | | |
383 | 384 | | |
384 | 385 | | |
| |||
0 commit comments