Steps to replicate the issue (include links if applicable):
- Create a new php7.4 webservice using the old shared images (not buildservice)
- Add a script like so:
$ mkdir -p public_html $ cat > public_html/test.php <<EOS <?php echo "PHP: ".getenv("TOOL_TOOLSDB_USER")."\n"; ?> EOS
- Go check the script on the url "https://mytool.toolforge.org/test.php"
What happens?:
It shows a null value
What should have happened instead?:
It should have shown the toolsdb user instead
Other information (browser name/version, screenshots, etc.):
The environment variables are set in the container:
tools.jupytest@tools-sgebastion-10:~$ kubectl get pods -o yaml | grep -A 2 TOOL
- name: TOOL_REPLICA_PASSWORD
valueFrom:
secretKeyRef:
key: TOOL_REPLICA_PASSWORD
name: toolforge.envvar.v1.tool-replica-password
- name: TOOL_REPLICA_USER
valueFrom:
secretKeyRef:
key: TOOL_REPLICA_USER
name: toolforge.envvar.v1.tool-replica-user
- name: TOOL_TOOLSDB_PASSWORD
valueFrom:
secretKeyRef:
key: TOOL_TOOLSDB_PASSWORD
name: toolforge.envvar.v1.tool-toolsdb-password
- name: TOOL_TOOLSDB_USER
valueFrom:
secretKeyRef:
key: TOOL_TOOLSDB_USER
name: toolforge.envvar.v1.tool-toolsdb-user
- name: HOMEBut they seem to be scrubbed somewhere in between.