You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support skipping certificate verification when establishing a Quic connection #17700
This prevents establishment of Quic connection in load testing applications where we might be running with test / bogus certificates. This might also be affecting other use cases, so hoping to start a discussion whether this is something we want to improve by allowing a configuration that skips the certificate verification.
Worth pointing out that the Envoy config trusted_ca allows skipping root cert verification. This should be supported already by EnvoyQuicProofVerifier which calls into the same defatul cert validator.
However, the difference is that EnvoyQuicProofVerifier also verifies hostname in CHLO matches SNI domains in leaf cert:
I'm torn here - I like QUIC matching existing TLS behavior but I also like verifying by default.
I am inclined to say if we want to change the default behavior we should do it before QUIC exits alpha (and config locks down). Given QUIC and TLS share config I lean towards compatibility and sorting out TLS defaults later.
cc @yanavlasov@RyanTheOptimist@mattklein123 for thoughts
Wow! I feel very strongly that certificates should be verified by default. Having things insecure by default seems like a disaster waiting to happen. What would it take to change this behavior? (Maybe this is not practical in the short term but I really think this needs some investigation)
generally changing high risk config defaults like this in Envoy involves a envoy-announce email, and a runtime guarded change if the config isn't present, so folks can flip the flag while they realize the envoy-announce email affected them. This is likely to break some deployments but I agree I think for security it's one of those breaking changes we really ought to do.
I'll take on comms and the deprecation dance if @mattklein123 agrees it's worth tackling.
All things being equal I agree we should verify by default, however 2 gotchas:
As Alyssa says we will need to warn first, then fail with runtime, etc. It will be a lengthy migration.
The verification settings are incredibly convoluted. Figuring out how to decide in code/config whether verification is "enabled" is going to require some debate in and of itself, and then quite a bit of testing.
I think it would be worth it to track ^ as a separate issue.
Ok, so what I'd suggest then is we leave QUIC verifying by default, and add the knob to turn it off at Nighthawk's convenience: as it'll keep the prior default there's no need to lock this in before alpha wraps up.
What we should do before we leave alpha @danzh2010 is to document the inversion in both QUIC and TLS docs so folks don't get surprised. The explanation can link to the issue tracking TLS switching defaults, which I've just filed as #17771
Am I correct in understanding that if self-signed certificates are used, for example in Kubernetes when making service-to-service requests via envoy-proxy, quic will not be able to establish a connection?
Am I correct in understanding that if self-signed certificates are used, for example in Kubernetes when making service-to-service requests via envoy-proxy, quic will not be able to establish a connection?
Self-signed certs are okay as long as host name matches SAN in the certs.
Activity
danzh2010 commentedon Aug 12, 2021
Worth pointing out that the Envoy config
trusted_caallows skipping root cert verification. This should be supported already by EnvoyQuicProofVerifier which calls into the same defatul cert validator.However, the difference is that EnvoyQuicProofVerifier also verifies hostname in CHLO matches SNI domains in leaf cert:
envoy/source/common/quic/envoy_quic_proof_verifier.cc
Line 47 in 110559f
It worth discussing whether this match should be mandatory or configurable.
mum4k commentedon Aug 12, 2021
Thank you @danzh2010 for adding the context, I confirm that this is the verification in question.
alyssawilk commentedon Aug 16, 2021
I'm torn here - I like QUIC matching existing TLS behavior but I also like verifying by default.
I am inclined to say if we want to change the default behavior we should do it before QUIC exits alpha (and config locks down). Given QUIC and TLS share config I lean towards compatibility and sorting out TLS defaults later.
cc @yanavlasov @RyanTheOptimist @mattklein123 for thoughts
RyanTheOptimist commentedon Aug 18, 2021
Wow! I feel very strongly that certificates should be verified by default. Having things insecure by default seems like a disaster waiting to happen. What would it take to change this behavior? (Maybe this is not practical in the short term but I really think this needs some investigation)
alyssawilk commentedon Aug 18, 2021
generally changing high risk config defaults like this in Envoy involves a envoy-announce email, and a runtime guarded change if the config isn't present, so folks can flip the flag while they realize the envoy-announce email affected them. This is likely to break some deployments but I agree I think for security it's one of those breaking changes we really ought to do.
I'll take on comms and the deprecation dance if @mattklein123 agrees it's worth tackling.
mattklein123 commentedon Aug 19, 2021
All things being equal I agree we should verify by default, however 2 gotchas:
I think it would be worth it to track ^ as a separate issue.
alyssawilk commentedon Aug 19, 2021
Ok, so what I'd suggest then is we leave QUIC verifying by default, and add the knob to turn it off at Nighthawk's convenience: as it'll keep the prior default there's no need to lock this in before alpha wraps up.
What we should do before we leave alpha @danzh2010 is to document the inversion in both QUIC and TLS docs so folks don't get surprised. The explanation can link to the issue tracking TLS switching defaults, which I've just filed as #17771
danzh2010 commentedon Aug 19, 2021
I will update the document about the difference. Adding the knob to turn off verification is not a blocker for MVP, right?
alyssawilk commentedon Aug 19, 2021
correct!
spodobetsd commentedon Aug 20, 2025
Am I correct in understanding that if self-signed certificates are used, for example in Kubernetes when making service-to-service requests via envoy-proxy, quic will not be able to establish a connection?
danzh2010 commentedon Aug 20, 2025
Self-signed certs are okay as long as host name matches SAN in the certs.