Update Heimdall Trusted Proxies to all Private IPs#72
Conversation
Adds all private IP ranges to Heimdall's list of 'trusted_proxies'. This ensures heimdall works even with variations in network toplogies of local kubernetes deployments. Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
|
Caution Review failedThe pull request is closed. Note Other AI code review bot(s) detectedCodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review. WalkthroughConfiguration update to the Heimdall service in the LFX Platform Helm chart that expands the Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Pre-merge checks and finishing touches✅ Passed checks (3 passed)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (1)
Comment |
There was a problem hiding this comment.
Pull Request Overview
This PR updates Heimdall's trusted proxy configuration to include all RFC 1918 private IP address ranges, ensuring compatibility with various local Kubernetes network topologies. The chart version is bumped accordingly.
Key Changes:
- Expands trusted_proxies to include all private IP ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16)
- Increments chart version from 0.3.2 to 0.3.3
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| charts/lfx-platform/values.yaml | Adds 10.0.0.0/8 and 172.16.0.0/12 private IP ranges to trusted_proxies configuration |
| charts/lfx-platform/Chart.yaml | Bumps chart version to 0.3.3 |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
charts/lfx-platform/values.yaml (1)
170-174: Consider adding a documentation comment for future maintainability.Since this configuration is foundational to Heimdall's proxy trust model and spans all private ranges, a brief inline comment explaining the RFC 1918 rationale could help future maintainers understand the design intent.
Apply this diff to add clarifying documentation:
serve: trusted_proxies: + # RFC 1918 private address ranges for local Kubernetes deployments + # Enables Heimdall to correctly identify client IPs across varying network topologies - "10.0.0.0/8" - "172.16.0.0/12" - "192.168.0.0/16"
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
Disabled knowledge base sources:
- Jira integration is disabled by default for public repositories
You can enable these sources in your CodeRabbit configuration.
📒 Files selected for processing (2)
charts/lfx-platform/Chart.yaml(1 hunks)charts/lfx-platform/values.yaml(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: MegaLinter
🔇 Additional comments (2)
charts/lfx-platform/Chart.yaml (1)
8-8: Version bump is appropriate for configuration changes.The patch version increment (0.3.2 → 0.3.3) is well-suited for the non-breaking values.yaml updates, following Helm versioning conventions.
charts/lfx-platform/values.yaml (1)
170-174: Correct and complete private IP range configuration.The trusted proxies configuration now correctly covers all RFC 1918 private address ranges, enabling Heimdall to work reliably across varied local Kubernetes network topologies (ClusterIP subnets, node networks, etc.). All three ranges are properly formatted and quoted.
Signed-off-by: Eric Searcy <eric@linuxfoundation.org>
Adds all private IP ranges to Heimdall's list of 'trusted_proxies'. This
ensures heimdall works even with variations in network toplogies of
local kubernetes deployments.
Signed-off-by: Trevor Bramwell tbramwell@linuxfoundation.org