Skip to content
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

03 Libraries other crate sources #50

Open
xd009642 opened this issue Aug 6, 2020 · 1 comment
Open

03 Libraries other crate sources #50

xd009642 opened this issue Aug 6, 2020 · 1 comment

Comments

@xd009642
Copy link

xd009642 commented Aug 6, 2020

The libraries, known as crates in the Rust ecosystem, are imported from the open-source components central repository crates.io.

This isn't always true, alternate registries can be set up https://doc.rust-lang.org/cargo/reference/registries.html as well as git urls or relative paths to dependencies in workspaces. When using Rust in industry I've personally prohibited using git urls as dependencies and any libraries not created internally need to use crates.io as the registry. I don't know if you want to adopt those same rules or something else but it's probably worth deciding

@polazarus
Copy link
Contributor

polazarus commented May 7, 2021

We're definitely missing something there. But I am not sure a general ban of Git is the way. One could argue that pointing to a Git commit is more secure than pointing to a vague version in a crate registry. See the recent "attack" on NPM & Pypi.

I think the rule should read something like every crate included in a secure development must be identified with the complete and precise version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants