Skip to content
Discussion options

You must be logged in to vote

Hi @JFrandon!

Thanks so much for your kind words and your interest in our project!

NGINX Gateway Fabric does not have a built-in equivalent to the ingress-nginx nginx.ingress.kubernetes.io/whitelist-source-range annotation. However, the same functionality can be achieved using SnippetsFilter (or, as of our 2.4 release, SnippetsPolicy), which allows you to inject raw NGINX configuration directives (such as allow and deny) into the generated NGINX config.

Route-Level IP Whitelisting

1. Create the SnippetsFilter

apiVersion: gateway.nginx.org/v1alpha1
kind: SnippetsFilter
metadata:
  name: ip-whitelist
spec:
  snippets:
    - context: http.server.location
      value: |
        allow 10.0.0.0/8;

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@ciarams87
Comment options

Answer selected by ciarams87
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants