HTTPProxy— Layer 7 routing and traffic controlTrafficProtectionPolicy— OWASP Core Rule Set WAF protection
targetRefs.
HTTPProxy
TheHTTPProxy resource handles Layer 7 routing and request processing. It supports hostname routing, path and header matching, redirects, rewrites, CORS, header manipulation, traffic mirroring, and TLS configuration to origin.
Inspect the Schema
List and Inspect Proxies
Feature Reference
Each rule currently supports a single backend. Multiple backends per rule are not yet supported.
TrafficProtectionPolicy (WAF)
TheTrafficProtectionPolicy resource provides application-layer security using the OWASP Core Rule Set. It attaches to the gateway.networking.k8s.io/v1 HTTPRoute that NSO creates from an HTTPProxy (using the same name), scoping the WAF to that proxy’s traffic. Use sectionName to target a specific named rule.
Inspect the Schema
List and Inspect WAF Policies
Feature Reference
Observe(default) — Logs rule matches without blocking traffic. Use this to evaluate impact before enforcing.Enforce— Blocks requests that exceed the score threshold.Disabled— WAF is inactive.
samplingPercentage controls what fraction of traffic is evaluated by the WAF. Useful for gradual rollout or high-throughput environments.
Next Steps
- Path-Based Routing — Route requests to different backends by URL path
- HTTP Basic Authentication — Add username/password protection to a route
- OIDC with Google — Protect a route with Google sign-in
- OIDC with Auth0 — OIDC with email-based allow-lists via Auth0