-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Released version of tonic_health contains blobs #2019
Comments
@tottoto Would it be possible to resolve this, given that this is potential security related? |
The URL seems to show
It is used to provide the file descriptor set. |
Thanks for your answer
Seems like something is broken with diff.rs now with this kind of direct links 😞 You can go to https://diff.rs/tonic-health/0.12.2/0.12.3/ and navigate manually to
Can you point out where exactly it is used. For me it seems like it's just there. Additionally I would argue that it's enough to include the expanded rust code + possibly the proto file. You can always generate the binary file descriptor set from the proto file if required. |
You can find it at https://github.com/hyperium/tonic/blob/v0.12.3/tonic-health/src/lib.rs#L33. If you think something is not being used, you can actually search the code to see if it is correct.
A similar discussion can be found at #1942. This is something that can be resolved before release, so I don't think the feature should be removed, considering convenience reasons. Incidentally, the implementation way for this has been changed since the release of 0.12.2 from committing and including it as a file to embedding these bytes data in the Rust code. |
@tottoto I'm sorry to write that but I don't see how this addresses the security concerns around a unreviewable blob. I can see how this might be convenient for certain uses, but it makes it really hard to review and reason about the actual code. By having it actually included in the compiled code that becomes more serve from my point of view |
Bug Report
Version
tonic_health: 0.12.3
Platform
Unrelated, code is uploaded on crates.io
Crates
Tonic-Health
Description
While reviewing a dependency update for tonic-health I noticed that it contains a binary file: https://diff.rs/tonic-health/0.12.2/0.12.3/src%2Fgenerated%2Fgrpc_health_v1.bin
That is not desirable as it makes reviewing dependencies harder. It also might hide potential attacks.
In this case I believe the blob is just the binary representation of the proto file and that it was accidentally uploaded to crates.io. Please consider to explicitly exclude this file for future updates.
The text was updated successfully, but these errors were encountered: