-
Notifications
You must be signed in to change notification settings - Fork 109
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
How to build without ring? #1404
Comments
Executing:
Appears to remove rcgen & ring from Cargo.toml and lock files. Rebuilding the binary shows that boring crate, ends up pulling in rustls, and ends up pulling in ring. Shouldn't the boring crate pull in rustls with custom-provider feature set? |
Executing
Still pulls in ring =( |
hmmm..
finds no matches. Seems like a bug in cargo-audit or cargo-tree.
|
Hopefully opened a better bug info: So here is what I did:
During build log ring v0.17.8 was downloaded
Then used It seems that ztunnel depends on boring-rustls-provider (29) & rustls (239). The question I have is does ztunnel use rustls-webpki? and does that indeed use ring? or is boring backend called instead? Is it possible to substitute in ring that will print at runtime if it was used, or somehow use debugger to add breakpoints upon using ring? Or is it possible to somehow make boring-rutls-provider and ztunnel dependencies on rustls to not pull in ring via rustls-webpki dependencies? Is it a cargo problem? rustls problem? or boring-rustls-provider problem? |
https://github.com/janrueth/boring-rustls-provider/blob/aa6e1c36f880002ceb56f99a64d19e0503e0bec7/Cargo.toml#L26 - this should be disabling ring. Given the objdump and cargo tree both indicate no ring usage, which is what appears correct looking at the dependencies, I'm inclined to think it's a cargo suit issue. Maybe one way to be very sure would be to point to a local ring fork that panics if it's linked to or something |
rcgen should be an optional feature, and yet it seems to be always compiled...
Built on master, 1.24.0-alpha.0-33-g0ad78e3, 0ad78e3
Am i missing something?
It seems to me that somehow, via testing feature & dev-dependencies rcgen is always enabled; when it should be optional.
Or is there a bug in the generated rust-audit-info?
The text was updated successfully, but these errors were encountered: