You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The suggested solution is quite clever indeed. I've been thinking a bit how to approach this with a bit more straightforward solution and without shell hacks, and found out possibility to get an env variable value this way:
However, I'm not sure whether this way is safe from the SQL injection perspective - something worth re-checking on postgresql forum?
Another way would be to install python3-psycopg2 and write a simple python script that would do what we need -- installing it into the container would only be a few hundreds of kB more.
Container platform
OCP 4
Version
quay.io/sclorg/postgresql-15-c9s:latest from awx-operator
OS version of the container image
CentOS Stream 9
Bugzilla, Jira
No response
Description
this image runs psql with the password set on the command line. As a result it appears in the process table and is recorded by auditing tools.
eg
postgresql-container/10/root/usr/share/container-scripts/postgresql/start/set_passwords.sh
Line 6 in d0cecca
as deployed by awx-operator, the postgres container will execute a
Reproducer
something in this fashion would work
The text was updated successfully, but these errors were encountered: