-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This removes the key identifier stored in the JWK's header in the manifest v2 schema 1 signatures' payload. The "kid" parameter is optional in JWK. This parameter might be also considered irrelevant because the key pair for ECDSA is generated each time the conversion from schema 2 to schema 1 happens. So, clients cannot verify the origin of the signature with the fingerprint/kid because the public key is created on the fly and then immediately trashed. Ref: https://www.rfc-editor.org/rfc/rfc7517#section-4.5 Ref: https://docker-docs.uclv.cu/registry/spec/manifest-v2-1/ closes #1485 (cherry picked from commit 59e06e5)
- Loading branch information
Showing
3 changed files
with
3 additions
and
53 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Removed the optional "kid" parameter stored inside the signatures' payload generated during | ||
docker manifest v2 schema 1 conversion. This change also removes the ``ecdsa`` dependency, | ||
which is vulnerable to Minevra timing attacks. |
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 |
---|---|---|
@@ -1,6 +1,5 @@ | ||
# remember to also update unittest_requirements.txt when updating this file | ||
pulpcore>=3.17.0,<3.20 | ||
ecdsa~=0.14 | ||
pyjwkest~=1.4.0 | ||
pyjwt[crypto]~=1.7.1 | ||
url-normalize~=1.4.2 |