Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add loadBalancerSourceRanges to Helm Chart for Enhanced IP Allowlisting Support #1865

Open
sjberman opened this issue Apr 22, 2024 Discussed in #1863 · 0 comments
Open

Add loadBalancerSourceRanges to Helm Chart for Enhanced IP Allowlisting Support #1865

sjberman opened this issue Apr 22, 2024 Discussed in #1863 · 0 comments
Labels
helm-chart Relates to helm chart
Milestone

Comments

@sjberman
Copy link
Contributor

Discussed in #1863

Originally posted by briancheldelin April 20, 2024

Background

In environments like Google Cloud Platform and other cloud providers, Kubernetes services of type LoadBalancer can specify loadBalancerSourceRanges. This feature restricts the IP addresses that can access the load balancer. Currently, the Helm chart for deploying the nginx-gateway-fabric cannot configure these IP ranges directly through the Helm values.

Proposal

I propose to enhance the Helm chart by adding support for loadBalancerSourceRanges in the service specification. This addition will allow users to define IP ranges that can access the service, improving security by restricting access to trusted IPs only.

Implementation

The addition involves updating the service.yaml template to include a conditional check for loadBalancerSourceRanges values and append them to the service spec if provided. The values.yaml file will also need to be updated to include a sample configuration for users to modify.

Example:
In values.yaml, users could specify:

service:
  type: LoadBalancer
  loadBalancerSourceRanges:
    - 192.168.0.0/16
    - 172.17.0.0/16

This list would be utilized in service.yaml as:

spec:
  {{- if .Values.service.loadBalancerSourceRanges }}
  loadBalancerSourceRanges: {{ .Values.service.loadBalancerSourceRanges }}
  {{- end }}

Benefits

  • Security: Enables users to secure their gateway by limiting load balancer access to specific IP addresses.
  • Flexibility: Provides flexibility for enterprise users who must comply with strict network access policies.
  • Usability: Simplifies configuration management by allowing IP allowlisting directly through Helm values.
@sjberman sjberman added the helm-chart Relates to helm chart label Apr 22, 2024
@mpstefan mpstefan added this to the v1.3.0 milestone Apr 22, 2024
@mpstefan mpstefan modified the milestones: v1.3.0, v1.4.0 May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
helm-chart Relates to helm chart
Projects
Status: 🆕 New
Development

No branches or pull requests

2 participants