-
-
Notifications
You must be signed in to change notification settings - Fork 323
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
attempt upgrading rustls to 0.20.0 - for #644 #692
Conversation
This comment has been minimized.
This comment has been minimized.
I guess |
ok, thanks to the linked branch i have at least gotten it to work in the still fails on EDIT: also looks like don't have any other clusters to test against, so any input beyond this is appreciated. |
a bit of major change based on the massive release history in https://github.com/rustls/rustls#release-history it has some helpful changes, but it introduces a massive builder on the ClientConfig which needs to be specified in a particular order. not sure i got it all correct, or if i have changed behaviour here. and there is one outstanding issue with converting to a HttpsConnector Signed-off-by: clux <[email protected]>
+fixups on the builder Signed-off-by: clux <[email protected]> make it work in the token auth case k3d still broken Signed-off-by: clux <[email protected]>
even though i don't have a way to test it atm Signed-off-by: clux <[email protected]>
Signed-off-by: clux <[email protected]>
You can work around that with the steps in #542.
Do you mind if I take it from here? I started playing with it, and got: let config_builder = ClientConfig::builder()
.with_safe_defaults()
.with_root_certificates(root_store(root_certs)?);
let mut client_config = if let Some(auth) = identity_pem.map(client_auth).transpose()? {
config_builder
.with_single_cert(auth.cert_chain, auth.private_key)
.map_err(|e| Error::SslError(format!("{}", e)))?
} else {
config_builder.with_no_client_auth()
};
if accept_invalid {
client_config
.dangerous()
.set_certificate_verifier(Arc::new(NoCertificateVerification {}));
}
Ok(client_config) |
Yeah, absolutely feel free to continue! |
Superseded by #704. I think we're just waiting for |
a bit of major change based on the massive release history in https://github.com/rustls/rustls#release-history
it has some helpful changes:
not having to implement the no client verification strategy ourselvesseems to not workand we can do this without enabling dangerous configuration featuresno, still need it for token authbut it also:
somehow breaks the magicFrom
implementation forhyper_rustls::HttpsConnector
not sure i got it all correct, or if i have changed behaviour subly, but it compiles now and can run on some clusters.
edited out confusion about rustls
however, have currently not gotten the last
From
impl to work... It currently fails with:relies on the hyper-rustls rustls 0.20 branch