Repository navigation
Closed
Description
description
the http3 demo configuration has a configuration error here:
envoy/configs/envoyproxy_io_proxy_http3_downstream.yaml
Lines 16 to 28 in 72bf41f
| filter_chains: | |
| - transport_socket: | |
| name: envoy.transport_sockets.tls | |
| typed_config: | |
| "@type": type.googleapis.com/envoy.extensions.transport_sockets.tls.v3.DownstreamTlsContext | |
| downstream_tls_context: | |
| common_tls_context: | |
| tls_certificates: | |
| - certificate_chain: | |
| filename: certs/servercert.pem | |
| private_key: | |
| filename: certs/serverkey.pem | |
| filters: |
trying to load this throws the following error:
ERROR (validation failed): configs/envoyproxy_io_proxy_http3_downstream.yaml
Failed to parse static_resources field: Failed to parse listeners field: Failed to parse filter_chains field: Failed to parse transport_socket field: Message type "envoy.extensions.transport_sockets.tls.v3.DownstreamTlsContext" has no field named "downstream_tls_context".
Available Fields(except extensions): ['commonTlsContext', 'requireClientCertificate', 'requireSni', 'sessionTicketKeys', 'sessionTicketKeysSdsSecretConfig', 'disableStatelessSessionResumption', 'sessionTimeout', 'ocspStaplePolicy']....
currently this problem is hidden from CI as the listeners field is repeated and this entire block is ignored (i found this linting the yaml)
Activity
phlax commentedon Jun 7, 2021
cc @alyssawilk
mk46 commentedon Jun 7, 2021
Hi @phlax, I think the config should be like below
phlax commentedon Jun 7, 2021
@mk46, do you want to PR a fix ?
if you do - dont forget to remove the additional
listeners@alyssawilk can you confirm that this was the intended config ?
mk46 commentedon Jun 7, 2021
See my change mk46@a58423f. I have tested with and without a UDP listener.
phlax commentedon Jun 7, 2021
seems right to me - ill assign this ticket to you
alyssawilk commentedon Jun 7, 2021
Hey @adisuissa it seems pretty broken that Envoy would ignore half the config due to what's basically a yaml error, without warnings of any kind. @phlax is working on linting our example configs but I'm wondering if we could do better in-Envoy to detect and reject configs like this. WDYT?