-
Notifications
You must be signed in to change notification settings - Fork 42
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
Remove openssl
in favor of rustls-tls
#401
Conversation
I know what you're thinking. "But John, I thought Thankfully, in d2b5d78 we switched to using the suggested work-around of reaching the kubernetes API server in cluster through kubernetes DNS. We now build our k8s clients by defining that they should use the let incluster_config =
kube::Config::incluster_dns().context(controller_error::ConfigCreateSnafu)?;
let k8s_client = kube::client::Client::try_from(incluster_config)
.context(controller_error::ClientCreateSnafu)?; So nothing right now is necessarily preventing us from using the And it also looks like the next version of |
Testing in both IPv4 and IPv6 clusters looks good! Marking ready for review |
Force pushed to address comments above and remove unused Further validation:
Looks like |
- Removes unused `reqwest` dependency in `agent` - For `kube`, `reqwest` dependency, sets `default-features = false` to ensure default TLS does not pull in any openssl dependencies Signed-off-by: John McBride <[email protected]>
Force pushed to rebase on Edit: integration test passed with the latest force push. All nodes upgrade from 1.9.0 to the latest bottlerocket
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me and all tests are passing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
Issue number:
N/a
Description of changes:
This PR removes our dependency on OpenSSL in favor of using
rustls-tls
Testing done:
Built and pushed a custom image with these changes. Modified our
bottlerocket-update-operator.yaml
to use thatimage
.Integration tests pass!
Putting this patch up for now to get some early feedback and iteration, but could use additional validation for:
Terms of contribution:
By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.