Commit c0f6ace
committed
fix(helm): treat TRUST_PROXY_HEADERS as chart-computed on both deployments
It is inlined on the app container like PII_URL, so it has to be in the
$chartComputed lists. It was not, which meant setting the documented
app.env.TRUST_PROXY_HEADERS override under externalSecrets.enabled failed
template validation and demanded a remoteRefs mapping for a value the container
never reads from a Secret. It also wrote the key into the chart-managed Secret.
Inline it on the realtime deployment too. @sim/audit runs there and reads this
to decide whether a forwarded header may be believed when stamping an audit
row's ipAddress, and the chart-managed Secret is shared with realtime via
envFrom — so excluding the key from that Secret without inlining it would have
quietly left realtime trusting headers the operator declared untrustworthy.
Verified by rendering: inline, existingSecret, and ESO modes each emit exactly
one entry per pod carrying the same value, the key never reaches the Secret,
and ESO no longer demands a remoteRef for it.1 parent 64bc545 commit c0f6ace
4 files changed
Lines changed: 13 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
313 | 313 | | |
314 | 314 | | |
315 | 315 | | |
316 | | - | |
| 316 | + | |
317 | 317 | | |
318 | 318 | | |
319 | 319 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
| 124 | + | |
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
65 | 74 | | |
66 | 75 | | |
67 | 76 | | |
| |||
112 | 121 | | |
113 | 122 | | |
114 | 123 | | |
115 | | - | |
| 124 | + | |
116 | 125 | | |
117 | 126 | | |
118 | 127 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
0 commit comments