Skip to content

Egress gateway partially incompatible with L7 policies  #19642

@jibi

Description

@jibi

The egress gateway feature is partially incompatible with L7 policies: traffic will not be forwarded to a gateway if there's an L7 policy selecting the same endpoint selected by an egress gateway policy.

The specific problem is that the egress gateway logic to forward traffic to a gateway lives currently in bpf_lxc, right after the L7 proxy redirection, so if a packet is redirected to the L7 proxy (and then reinjected back into the stack), egress gateway will be completely skipped.

One way to fix this would be to move the egress gateway logic from bpf_lxc to bpf_host, but this is currently not a viable option as the agent is not yet able to dynamically load bpf_host on new network devices. This in turn would be a problem in environments such as EKS, where new ENIs are dynamically allocated to accommodate additional pod IPs.

Metadata

Metadata

Assignees

Labels

area/datapathImpacts bpf/ or low-level forwarding details, including map management and monitor messages.area/proxyImpacts proxy components, including DNS, Kafka, Envoy and/or XDS servers.feature/egress-gatewayImpacts the egress IP gateway feature.kind/featureThis introduces new functionality.pinnedThese issues are not marked stale by our issue bot.sig/policyImpacts whether traffic is allowed or denied based on user-defined policies.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions