Public: anyone can read this; nobody can change it.

The chart can set FORGE_TRUSTED_PROXIES and FORGE_CLIENT_IP_HEADER from optional values, unset by default. #53

Merged opened this view on origin

Check · Review · Land done · Live — Landed; nothing deploys from this branch, so this is the end of its path.

Merged

**Problem.** The chart had no way to set `FORGE_TRUSTED_PROXIES` or `FORGE_CLIENT_IP_HEADER` (review finding M3). Behind the ingress, per-client limits and the signup audit see the proxy address, not the client.

shipped merged

opened this view on origin

Problem. The chart had no way to set FORGE_TRUSTED_PROXIES or FORGE_CLIENT_IP_HEADER (review finding M3). Behind the ingress, per-client limits and the signup audit see the proxy address, not the client.

Root cause. The deployment template has no env entry for these two settings, and values.yaml has no key for them.

Fix. Optional values forge.trustedProxies and forge.clientIpHeader. When set, the template adds FORGE_TRUSTED_PROXIES / FORGE_CLIENT_IP_HEADER. Unset by default, so a release that sets neither renders the same as before. values.yaml documents both, commented out. No gitops pin changes.

Test. test/chart-client-ip.test.ts: each env entry is in the template inside its with .Values.forge.<value> block, and neither value is set in values.yaml. On main: 2 of 4 fail. With the fix: 4 of 4 pass. helm lint passes. helm template without the values renders no new env. With --set forge.trustedProxies=10.42.0.0/16 --set forge.clientIpHeader=cf-connecting-ip it renders both.

Validate (fast). Result: pass.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs