Skip to content

Commit f374317

Browse files
authored
Merge pull request #76 from cybertec-postgresql/fixnsswrapper_runit
Fix ENV for nss_wrapper
2 parents 2a81ab3 + 7415095 commit f374317

File tree

1 file changed

+1
-1
lines changed
  • runit/patroni

1 file changed

+1
-1
lines changed

runit/patroni/run

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ fi
2121
ulimit -c unlimited
2222

2323
# Only small subset of environment variables is allowed. We don't want accidentally disclose sensitive information
24-
for E in $(printenv -0 | tr '\n' ' ' | sed 's/\x00/\n/g' | grep -vE '^(KUBERNETES_(SERVICE|PORT|ROLE)[_=]|((POD_(IP|NAMESPACE))|HOSTNAME|PATH|PGHOME|LC_ALL|ENABLE_PG_MON)=)' | sed 's/=.*//g'); do
24+
for E in $(printenv -0 | tr '\n' ' ' | sed 's/\x00/\n/g' | grep -vE '^(KUBERNETES_(SERVICE|PORT|ROLE)[_=]|((POD_(IP|NAMESPACE))|HOSTNAME|PATH|PGHOME|LC_ALL|ENABLE_PG_MON|LD_PRELOAD|NSS_WRAPPER_PASSWD|NSS_WRAPPER_GROUP)=)' | sed 's/=.*//g'); do
2525
unset $E
2626
done
2727

0 commit comments

Comments
 (0)