Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support a custom Backend API for FQDN, IP and Unix Domain Sockets #2997

Closed
guydc opened this issue Mar 22, 2024 · 3 comments · Fixed by #3495
Closed

Support a custom Backend API for FQDN, IP and Unix Domain Sockets #2997

guydc opened this issue Mar 22, 2024 · 3 comments · Fixed by #3495
Labels
Milestone

Comments

@guydc
Copy link
Contributor

guydc commented Mar 22, 2024

Description:
Unix Domain Sockets are sometimes used instead of TCP sockets, since communication over UDS has lower latency. Envoy Proxy supports UDS addresses for upstream clusters. Currently, Gateway-API and Envoy Gateway do not support UDS, since UDS cannot be represented by a K8s Service resource.

In Envoy Gateway, support for UDS can improve latency to callout data-plane and control-plane services like Global Network/HTTP Rate Limit, Network/HTTP Ext Auth, HTTP Ext Proc and Secret Discovery Service (e.g. SPIRE) that run as sidecars or node-daemons. UDS is less likely to be used for communicating with backend applications, due to the high degree of coupling between the backend and the gateway.

Gateway-API supports a notion of implementation-specific Backend Object References. This requirement is driven by Envoy-specific architecture constraints, and it is not likely to be useful for the general Gateway-API community. For this reason, Envoy Gateway can introduce a new (implementation-specific) resource representing UDS backends.

@arkodg
Copy link
Contributor

arkodg commented Mar 28, 2024

this was discussed in the call today

@guydc
Copy link
Contributor Author

guydc commented Mar 28, 2024

if we are finally going down the path of supporting non k8s backend types, I'd suggest for us to also consider a generic way to represent a address (e.g. config in envoy https://www.envoyproxy.io/docs/envoy/latest/api-v3/config/core/v3/address.proto#config-core-v3-address) which can handle UnixDomainSocket , IPAddress and FQDN , which I've been trying to champion ever since the project started #36, but the solution is a suboptimal one requiring multiple configs (Service and EndpointSlice https://gateway.envoyproxy.io/latest/user/traffic/routing-outside-kubernetes/)

Big +1 on tackling common and generic non-k8s-service backends as part of this Issue.

any approach here will probably need to be opt in, and not enabled by default, because this is allowing access to the same host as the proxy

Good point. We don't have to treat UDS backends the same way that we treat listener ports. I think that UDS backends can be translated only into XDS clusters. Any changes required in the pod spec (mounts, sidecars, ...) can be handled with an EnvoyProxy deployment patch.

@guydc guydc mentioned this issue Mar 30, 2024
@guydc guydc added this to the v1.1.0-rc1 milestone Apr 10, 2024
Copy link

This issue has been automatically marked as stale because it has not had activity in the last 30 days.

@github-actions github-actions bot added the stale label May 10, 2024
@guydc guydc changed the title Support Unix Domain Sockets for Envoy services Support a custom Backend API for FQDN, IP and Unix Domain Sockets May 31, 2024
@guydc guydc mentioned this issue May 31, 2024
17 tasks
@github-actions github-actions bot removed the stale label May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants