Skip to content

Commit b6ef0ad

Browse files
committed
Fix HttpInterface env stripping never executing (WEB_STRIP_ENV_VARS) #6089
1 parent 6934a61 commit b6ef0ad

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/node_modules
2+
claude
23
CLAUDE.md
34
*.log
45
*.pid

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
- Add test scripts for internalized modules (bpm, axon, axon-rpc, io-agent)
1818
- Expand Docker parallel test runner to cover all internalized module tests
1919
- Drop auto source map file detection in Common.prepareAppConf
20+
- Fix HttpInterface env stripping never executing (WEB_STRIP_ENV_VARS) #6089
2021

2122
## 6.0.14
2223

lib/HttpInterface.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,11 @@ function startWebServer(pm2) {
4646
processes: list
4747
};
4848

49-
if (cst.WEB_STRIP_ENV_VARS === true) {
49+
if (cst.WEB_STRIP_ENV_VARS) {
5050
for (var i = data.processes.length - 1; i >= 0; i--) {
5151
var proc = data.processes[i];
5252

53-
// Strip important environment variables
54-
if (typeof proc.pm2_env === 'undefined' && typeof proc.pm2_env.env === 'undefined') return;
53+
if (typeof proc.pm2_env === 'undefined' || typeof proc.pm2_env.env === 'undefined') continue;
5554

5655
delete proc.pm2_env.env;
5756
}

0 commit comments

Comments
 (0)