Skip to content

HTTP3 demo config has errors #16843

Closed

Description

@phlax

description

the http3 demo configuration has a configuration error here:

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

  1. phlax commented on Jun 7, 2021

    @phlax
    MemberAuthor
  2. mk46 commented on Jun 7, 2021

    @mk46
    Contributor

    Hi @phlax, I think the config should be like below

               name: envoy.transport_sockets.quic
               typed_config:
                 "@type": type.googleapis.com/envoy.extensions.transport_sockets.quic.v3.QuicDownstreamTransport
    
  3. phlax commented on Jun 7, 2021

    @phlax
    MemberAuthor

    @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 ?

  4. mk46 commented on Jun 7, 2021

    @mk46
    Contributor

    See my change mk46@a58423f. I have tested with and without a UDP listener.

  5. phlax commented on Jun 7, 2021

    @phlax
    MemberAuthor

    seems right to me - ill assign this ticket to you

  6. alyssawilk commented on Jun 7, 2021

    @alyssawilk
    Contributor

    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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions