-
Notifications
You must be signed in to change notification settings - Fork 650
Add a crates.io-specific security page #8791
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
Merged
Turbo87
merged 5 commits into
rust-lang:main
from
carols10cents:our-very-own-security-policy
Jun 10, 2024
Merged
Changes from 2 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
272dd9b
Add a crates.io-specific security page
carols10cents 7720056
Clarify that crates.io is a repository in the rust-lang org
carols10cents e7345d4
Add clarification for intentionally malicious code
carols10cents 1283c54
Policies page didn't contain info on what to do with violations
carols10cents abe4fbc
Serve security page from /policies/security; /security redirects
carols10cents File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<PageHeader @title='Security Information' /> | ||
|
||
<TextContent @boxed={{true}}> | ||
|
||
<h2 id='crates-io-security'>Security of crates.io itself</h2> | ||
|
||
<p>Safety is one of the core principles of Rust, and to that end, we would like to ensure that cargo, crates.io, docs.rs, and | ||
related tools have secure implementations. To disclose security vulnerabilities in the crates.io service itself (as opposed | ||
to crates hosted on crates.io) or any other <a href='https://github.com/rust-lang'>repository in the rust-lang | ||
organization</a>, please follow the <a href='https://www.rust-lang.org/policies/security'>Rust Security policy</a>.</p> | ||
|
||
<p>Thank you for taking the time to responsibly disclose any issues you find.</p> | ||
|
||
<h2 id='crate-security'>Security of crates hosted on crates.io</h2> | ||
|
||
<p>To disclose security vulnerabilities found in a crate that is hosted on crates.io, seek guidance from the individual crate's | ||
owners and their specific policies. Commonly, projects include a file named <code>SECURITY.md</code> that contains the | ||
crate's security policies and procedures.</p> | ||
carols10cents marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
<h2 id='rustsec'>Rustsec Security Advisory Database for receiving security updates</h2> | ||
|
||
<p>The <a href="https://rustsec.org/">Rustsec Security Advisory Database</a> maintains advisories about vulnerabilities in | ||
crates published on crates.io. Maintained by the <a href="https://www.rust-lang.org/governance/wgs/wg-secure-code">Secure | ||
Code Working Group</a>, the information is available in a variety of forms to incorporate into your development practices. | ||
See <a href="https://rustsec.org/contributing.html">their steps to submit a vulnerability to the database</a>.</p> | ||
|
||
<h2 id='ecosystem-security-help'>Ecosystem security help for crate authors</h2> | ||
|
||
<p>Security is a value important to the Rust ecosystem as a whole, not just to the Rust language. If you are a crate author and | ||
you have received a high impact/severity security bug report for your crate, the Rust Foundation and the Rust Project are | ||
available to help manage the situation. The Rust Project or the Rust Foundation may also be the ones reaching out to you, if | ||
they have been informed of a security issue.</p> | ||
|
||
<p>As part of its <a href="https://foundation.rust-lang.org/tags/security%20initiative/">Security Initiative</a>, the Rust | ||
Foundation:</p> | ||
|
||
<ul> | ||
<li>Employs security engineers who can help assessing the problem, developing mitigations, and estimating impact.</li> | ||
<li>Has a network of member organizations that can help with testing resources and also employ security experts who can help | ||
with assessing and fixing issues.</li> | ||
<li>Employs communications staff who can manage publishing notifications and fielding inquiries.</li> | ||
<li>Has contacts with government agencies tasked with cybersecurity protections who may have information on exploitation or | ||
impact of a security problem.</li> | ||
</ul> | ||
|
||
<p>The Rust Project can coordinate actions among other parts of the ecosystem that may need to be updated to address a fix.</p> | ||
|
||
<p>Please reach out to <a href="mailto:[email protected]">[email protected]</a> if either the Rust Project or | ||
the Rust Foundation can help you by providing security support in the areas listed above or in another way! These are just a | ||
few examples of the kind of help available to crate authors facing security challenges.</p> | ||
|
||
</TextContent> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.