Pin and check hash for downloaded binaries #13918
Labels
enhancement
[core label]
extension infrastructure
Feedback for extensions APIs, creation, management, etc
security & privacy
Data privacy issue, security vulnerabilities, etc
Check for existing issues
Describe the feature
In order to provide support for language servers and various tools, Zed automatically downloads binaries from the internet without user approval. To mitigate some security risks, I suggest that Zed pin and check the hashes for all downloaded binaries.
zed::download_file
could be changed to require a sha256 hash. Usage ofzed::latest_github_release
could be replaced by a function returning the binary release url for a given tag or release. The supermaven download could be removed or replaced by a verified mirror.References:
zed/crates/supermaven_api/src/supermaven_api.rs
Line 188 in de8ef08
zed/extensions/csharp/src/csharp.rs
Line 28 in 79f3646
The text was updated successfully, but these errors were encountered: