nginx-gateway-fabric icon indicating copy to clipboard operation
nginx-gateway-fabric copied to clipboard

Apply Configuration of SnippetsFilter to NGINX

Open mpstefan opened this issue 1 year ago • 0 comments
trafficstars

As a user of NGF I want my SnippetsFilter configuration applied to NGF's data plane So that I can leverage NGINX features not yet available in NGF.

Acceptance

  • The SnippetsFilters is validated to ensure it only contains valid contexts:
    • main
    • http
    • server
    • location
  • The SnippetsFilter only allows one snippet per context.
  • If a resolvedRef of a SnippetsFilter is found to be invalid for a given Route rule, that Route rule is configured to return a service unavailable response that is appropriate for the route.
  • Configuration defined in a filter attached to a route rule applies the NGINX directive configuration specified in the filter.
  • SnippetsFilters are disabled by default
  • SnippetsFilters must be explicitly enabled.
### Tasks
- [x] Register SnippetsFilter controller if feature is enabled
- [x] Validate SnippetsFilters add add to the graph
- [ ] Apply SnippetsFilter to NGINX config

mpstefan avatar Aug 19 '24 16:08 mpstefan