/proc/<pid>/environ does not contain the environment for puma
While we have successfully modified the environment for puma I noticed today that when looking at environ under proc it always contains the following:
# od /proc/23269/environ -a
0000000 e r ] nul nul nul nul nul nul nul nul nul nul nul nul nul
0000020 nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul
*
0001420 nul nul nul nul nul nul nul nul nul nul nul
0001433
For the process:
git 23269 2598 8 13:05 ? 00:01:37 puma 4.3.3.gitlab.2 (unix:///var/opt/gitlab/gitlab-rails/sockets/gitlab.socket,tcp://0.0.0.0:8080) [gitlab-puma-worker]
systemd,1
└─runsvdir,2577 -P /opt/gitlab/service log: ...........................................................................................................................................................................................................................................................................................................................................................................................................
└─runsv,2598 puma
└─bundle,23269 <----
├─bundle,23576
│ ├─{cluster.rb:248},23577
│ ├─{cluster.rb:284},23609
this is consistent across all nodes that run puma, and is not something we see with unicorn.