-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move PyPI bridge call to worker from importer. (#429)
* Move PyPI bridge call to worker from importer. Workers add additional information to vulnerabilities (e.g. by expanding ranges). With GHSA advisories, they needed this step to be properly propagated to warehouse. Also make the source repo processing faster when loading it from scratch, rather than enumerating through every single commit. This will help pypa/pip-audit#274. * add missing test files
- Loading branch information
1 parent
1dc8682
commit 45b50e7
Showing
7 changed files
with
138 additions
and
101 deletions.
There are no files selected for viewing
This file contains 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 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 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 @@ | ||
[call('projects/oss-vdb/topics/pypi-bridge', data=b'{"id": "PYSEC-123", "summary": "A vulnerability", "details": "Blah blah blah\\nBlah\\n", "modified": "2021-01-01T00:00:00Z", "references": [{"type": "WEB", "url": "https://ref.com/ref"}], "affected": [{"package": {"name": "grpcio", "ecosystem": "PyPI"}, "ranges": [{"type": "ECOSYSTEM", "events": [{"introduced": "1.14.2"}, {"fixed": "1.31.0"}]}, {"type": "GIT", "repo": "https://osv-test/repo/url", "events": [{"introduced": "eefe8ec3f1f90d0e684890e810f3f21e8500a4cd"}, {"fixed": "8d8242f545e9cec3e6d0d2e3f5bde8be1c659735"}]}], "versions": ["1.14.2", "1.15.0", "1.15.0rc1", "1.16.0", "1.16.0rc1", "1.16.1", "1.17.0", "1.17.1", "1.18.0", "1.19.0", "1.20.0", "1.20.0rc1", "1.20.0rc2", "1.20.0rc3", "1.20.1", "1.21.0rc1", "1.21.1", "1.21.1rc1", "1.22.0", "1.22.0rc1", "1.22.1", "1.23.0", "1.23.0rc1", "1.23.1", "1.24.0", "1.24.0rc1", "1.24.1", "1.24.3", "1.25.0", "1.25.0rc1", "1.26.0", "1.26.0rc1", "1.27.0rc1", "1.27.0rc2", "1.27.1", "1.27.2", "1.28.0rc1", "1.28.0rc2", "1.28.1", "1.29.0", "1.30.0"]}]}')] |
This file contains 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 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 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,60 @@ | ||
{ | ||
"id": "PYSEC-2021-63", | ||
"details": "In the cryptography package before 3.3.2 for Python, certain sequences of update calls to symmetrically encrypt multi-GB values could result in an integer overflow and buffer overflow, as demonstrated by the Fernet class.", | ||
"aliases": [ | ||
"CVE-2020-36242" | ||
], | ||
"modified": "2021-02-19T17:23:00Z", | ||
"published": "2021-02-07T20:15:00Z", | ||
"withdrawn": "2021-02-10T20:15:00Z", | ||
"references": [ | ||
{ | ||
"type": "WEB", | ||
"url": "https://github.com/pyca/cryptography/issues/5615" | ||
}, | ||
{ | ||
"type": "WEB", | ||
"url": "https://github.com/pyca/cryptography/blob/master/CHANGELOG.rst" | ||
}, | ||
{ | ||
"type": "WEB", | ||
"url": "https://github.com/pyca/cryptography/compare/3.3.1...3.3.2" | ||
}, | ||
{ | ||
"type": "WEB", | ||
"url": "https://lists.fedoraproject.org/archives/list/[email protected]/message/L7RGQLK4J5ZQFRLKCHVVG6BKZTUQMG7E/" | ||
} | ||
], | ||
"affected": [ | ||
{ | ||
"package": { | ||
"name": "cryptography", | ||
"ecosystem": "PyPI" | ||
}, | ||
"ranges": [ | ||
{ | ||
"type": "ECOSYSTEM", | ||
"events": [ | ||
{ | ||
"introduced": "3.1" | ||
}, | ||
{ | ||
"fixed": "3.3.2" | ||
} | ||
] | ||
} | ||
], | ||
"versions": [ | ||
"3.1", | ||
"3.1.1", | ||
"3.2", | ||
"3.2.1", | ||
"3.3", | ||
"3.3.1" | ||
], | ||
"database_specific": { | ||
"source": "https://github.com/pypa/advisory-db/blob/main/vulns/cryptography/PYSEC-2021-63.yaml" | ||
} | ||
} | ||
] | ||
} |
This file contains 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