Skip to content

Update Heimdall Trusted Proxies to all Private IPs#72

Merged
emsearcy merged 2 commits intomainfrom
bramwelt/heidall-trusted-proxies
Nov 19, 2025
Merged

Update Heimdall Trusted Proxies to all Private IPs#72
emsearcy merged 2 commits intomainfrom
bramwelt/heidall-trusted-proxies

Conversation

@bramwelt
Copy link
Contributor

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

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>
Copilot AI review requested due to automatic review settings October 21, 2025 22:29
@bramwelt bramwelt requested review from a team and emsearcy as code owners October 21, 2025 22:29
@coderabbitai
Copy link

coderabbitai bot commented Oct 21, 2025

Caution

Review failed

The pull request is closed.

Note

Other AI code review bot(s) detected

CodeRabbit 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.

Walkthrough

Configuration update to the Heimdall service in the LFX Platform Helm chart that expands the trusted_proxies list from a single entry (192.168.0.0/16) to three entries, adding 10.0.0.0/8 and 172.16.0.0/12.

Changes

Cohort / File(s) Summary
Helm values configuration
charts/lfx-platform/values.yaml
Updated heimdall.serve.trusted_proxies to include three CIDR ranges: 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16 (previously only 192.168.0.0/16)

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Title Check ✅ Passed The pull request title "Update Heimdall Trusted Proxies to all Private IPs" directly aligns with the primary change in the changeset. The main substantive modification is in the values.yaml file where the heimdall.serve.trusted_proxies configuration was expanded from a single entry (192.168.0.0/16) to include all three private IP ranges (10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16). The Chart.yaml version bump is a secondary consequence of this configuration change. The title is concise, clear, and accurately summarizes the key change without unnecessary noise or vague terminology.
Description Check ✅ Passed The pull request description is directly related to the changeset. It states that the change "adds all private IP ranges to Heimdall's list of 'trusted_proxies'" which matches exactly what occurred in the values.yaml file where three private IP ranges were configured. The description also provides context about the motivation—ensuring Heimdall works across variations in network topologies of local Kubernetes deployments—which is a reasonable explanation for the configuration change. The description contains sufficient detail related to the actual changes made.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.

📜 Recent 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.

📥 Commits

Reviewing files that changed from the base of the PR and between c0d5ace and dfdf8d7.

📒 Files selected for processing (1)
  • charts/lfx-platform/values.yaml (1 hunks)

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

📥 Commits

Reviewing files that changed from the base of the PR and between 86fc486 and c0d5ace.

📒 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>
@emsearcy emsearcy merged commit 168a3ba into main Nov 19, 2025
3 of 4 checks passed
@emsearcy emsearcy deleted the bramwelt/heidall-trusted-proxies branch November 19, 2025 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants