-
Notifications
You must be signed in to change notification settings - Fork 76
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
[Task] Get rid of ring
dependency in core
#3226
Comments
I'm putting it as (same visibility, just an arrangement thing) part of the rework of the core, and cleaning it, which is very much needed. |
To be maximally clear: it's an optional and non-default dependency. aws-lc-rs is the default cryptography provider unless you specifically opt-in to using ring. |
@cpu Hi, Overall, while you are already here, what is your take on the pros and cons? |
@cpu @Yury-Fridlyand I noticed that ring released 24 hours ago, I guess it's solved the issue. |
I'm not sure which dimension you're comparing. Lines of code? Size of produced build artifacts? I don't have any particular insight into this aspect but would expect the two to be fairly comparable for these points.
Advantages-wise, the Disadvantages-wise, I think there are some more esoteric targets that Overall Hope that helps, |
@cpu Checked on crate.io the metadata, but checking locally the build size it's apparently not true (while they are both on default); |
Description
Old version of
ring
is presend in cargo dependency tree (cargo tree
), all CI fails now: https://github.com/valkey-io/valkey-glide/actions/runs/13466704614/job/37633907140#step:3:878.It is a dependency of
rustls
andrustls-webpki
, but even most recent version ofrustls
uses the same version ofring
(one, two).This crate is only used to partially validate certificates on unsecure TLS connections. This API (using non-secure TLS, e.g. self-signed certificates) isn't exposed to wrappers and to end users.
valkey-glide/glide-core/redis-rs/redis/src/connection.rs
Lines 933 to 946 in 7aa8492
Solution could be:
rustls
andrustls-webpki
by updatingring
dependency, wait for newer version ofrustls
andrustls-webpki
released, then update these dependencies in GLIDEset_certificate_verifier(Arc::new(NoCertificateVerification {}))
)ring
(e.g. https://gist.github.com/doroved/2c92ddd5e33f257f901c763b728d1b61)Checklist
No response
Additional Notes
No response
The text was updated successfully, but these errors were encountered: