envoyproxy / envoyproxy/gateway

[Question] Anyway to do L4 ip filtering on HTTPRoute?

Open
#7,825 38 comments 0 reactions 0 assignees View on GitHub
kind/decision
Dominant language
Go
Stars
3k
Forks
864
Avg merge
2d 2h
Merged PRs (30d)
140

Description

*Description*:
Right now an invalid request will go through L7 filter chain and return RBAC error at the end, it would be preferable to just drop the packet based on incoming packet ip, maybe there's something that I missed?
Is this a gateway API limitation?

Right now I'm using a SecurityPolicy like this:
```code
apiVersion: gateway.envoyproxy.io/v1alpha1
kind: SecurityPolicy
metadata:
name: xx-whitelist-http-client-ip
namespace: envoy-gateway-system
spec:
targetRefs:
- group: gateway.networking.k8s.io
kind: Gateway
name: xx-gateway
sectionName: xxx
authorization:
defaultAction: Deny
rules:
- action: Allow
principal:
clientCIDRs:
- 1.1.1.1/32
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.