envoyproxy / envoyproxy/gateway

Support extensions.upstreams.http.v3.HttpProtocolOptions.AutoHttpConfig

Ouverte
#5,797 4 commentaires 1 réaction 0 personnes assignées Voir sur GitHub
stale triage
Langage dominant
Go
Étoiles
3k
Forks
864
Merge moyen
2 j 2 h
PR mergées (30 j)
140

Description

## Problem

Application developers need to explicitly specify `appProtocol: kubernetes.io/h2c` in `Service` spec for Envoy Gateway to configure H2 for upstreams.

These HTTP protocol details are not something that application developers usually think about. It causes some pain for them to remember to manually specify it.

## Ideal Behavior

Envoy supports negotiating the highest possible HTTP protocol via [extensions.upstreams.http.v3.HttpProtocolOptions.AutoHttpConfig](https://www.envoyproxy.io/docs/envoy/latest/api-v3/extensions/upstreams/http/v3/http_protocol_options.proto#extensions-upstreams-http-v3-httpprotocoloptions-autohttpconfig).

Envoy Gateway should automatically configure this option when upstreams support ALPN. ALPN is supported when upstreams use TLS, i.e. a `BackendTLSPolicy` exists for the `Service`.

## Code Reference

https://github.com/envoyproxy/gateway/blob/17241c41cdb9825553cfa836d0e367fb3d08b835/internal/xds/translator/cluster.go#L658-L693

cc @guydc @liorokman , seems you've previously thought about this, but I didn't see any github issue for it.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.