The chart can set FORGE_TRUSTED_PROXIES and FORGE_CLIENT_IP_HEADER from optional values, unset by default. #53
No reviewers
Labels
No labels
agent-work
agent-working
ultracode
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
trevato-apps/forge!53
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "dev/chart-trusted-proxies"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem. The chart had no way to set
FORGE_TRUSTED_PROXIESorFORGE_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.yamlhas no key for them.Fix. Optional values
forge.trustedProxiesandforge.clientIpHeader. When set, the template addsFORGE_TRUSTED_PROXIES/FORGE_CLIENT_IP_HEADER. Unset by default, so a release that sets neither renders the same as before.values.yamldocuments both, commented out. No gitops pin changes.Test.
test/chart-client-ip.test.ts: each env entry is in the template inside itswith .Values.forge.<value>block, and neither value is set invalues.yaml. On main: 2 of 4 fail. With the fix: 4 of 4 pass.helm lintpasses.helm templatewithout the values renders no new env. With--set forge.trustedProxies=10.42.0.0/16 --set forge.clientIpHeader=cf-connecting-ipit renders both.Validate (fast). Result: pass.