-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[Collections] Signing (apple, 2): signed collections #3264
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
Merged
Conversation
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
@swift-ci please smoke test |
yim-lee
added a commit
to yim-lee/swift-package-manager
that referenced
this pull request
Feb 12, 2021
This is part 2 of a series of PRs to support package collection signing on **non-Apple** platforms. Originally swiftlang#3242. Depends on swiftlang#3260, swiftlang#3264
This was referenced Feb 12, 2021
tomerd
reviewed
Feb 12, 2021
tomerd
reviewed
Feb 12, 2021
tomerd
reviewed
Feb 12, 2021
} | ||
} | ||
|
||
extension Data { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: all these extensions could probably be moved to the Basics module
tomerd
approved these changes
Feb 12, 2021
a507768
to
23bb777
Compare
yim-lee
added a commit
to yim-lee/swift-package-manager
that referenced
this pull request
Feb 13, 2021
This is part 2 of a series of PRs to support package collection signing on **non-Apple** platforms. Originally swiftlang#3242. Depends on swiftlang#3260, swiftlang#3264
yim-lee
added a commit
to yim-lee/swift-package-manager
that referenced
this pull request
Feb 13, 2021
This is part 3 of a series of PRs to support package collection signing on **Apple** platforms. Originally swiftlang#3245. Depends on swiftlang#3264 Modifications: - Add certificate policies to validate collection-signing certificates. - Wire up `PackageCollectionSigning` with certificate policies.
yim-lee
added a commit
to yim-lee/swift-package-manager
that referenced
this pull request
Feb 13, 2021
This is part 3 of a series of PRs to support package collection signing on **Apple** platforms. Originally swiftlang#3245. Depends on swiftlang#3264 Modifications: - Add certificate policies to validate collection-signing certificates. - Wire up `PackageCollectionSigning` with certificate policies.
yim-lee
added a commit
to yim-lee/swift-package-manager
that referenced
this pull request
Feb 13, 2021
This is part 3 of a series of PRs to support package collection signing on **Apple** platforms. Originally swiftlang#3245. Depends on swiftlang#3264 Modifications: - Add certificate policies to validate collection-signing certificates. - Wire up `PackageCollectionSigning` with certificate policies.
cc @catmurdoch |
This is part 2 of a series of PRs to support package collection signing on **Apple** platforms. Originally swiftlang#3242. Depends on [part 1](swiftlang#3259) Modifications: - Add support for signing with EC and RSA keys - Add `Signature`, which is similar to JWS - Introduce `CertificatePolicy` protocol (more on this in part 3) - `PackageCollectionsSigning` - given a package collection, certificate and its private key, generate a "signed" collection; and reverse that process to validate collection signature.
23bb777
to
43f6a5c
Compare
@swift-ci please smoke test |
@swift-ci please smoke test macOS |
yim-lee
added a commit
to yim-lee/swift-package-manager
that referenced
this pull request
Feb 18, 2021
This is part 2 of a series of PRs to support package collection signing on **all** platforms. Originally swiftlang#3242. Depends on swiftlang#3260, swiftlang#3264
yim-lee
added a commit
to yim-lee/swift-package-manager
that referenced
this pull request
Feb 18, 2021
This is part 3 of a series of PRs to support package collection signing on **Apple** platforms. Originally swiftlang#3245. Depends on swiftlang#3264 Modifications: - Add certificate policies to validate collection-signing certificates. - Wire up `PackageCollectionSigning` with certificate policies.
yim-lee
added a commit
to yim-lee/swift-package-manager
that referenced
this pull request
Feb 18, 2021
This is part 3 of a series of PRs to support package collection signing on **Apple** platforms. Originally swiftlang#3245. Depends on swiftlang#3264 Modifications: - Add certificate policies to validate collection-signing certificates. - Wire up `PackageCollectionSigning` with certificate policies.
yim-lee
added a commit
to yim-lee/swift-package-manager
that referenced
this pull request
Feb 18, 2021
This is part 2 of a series of PRs to support package collection signing on **all** platforms. Originally swiftlang#3242. Depends on swiftlang#3260, swiftlang#3264
yim-lee
added a commit
to yim-lee/swift-package-manager
that referenced
this pull request
Feb 18, 2021
This is part 2 of a series of PRs to support package collection signing on **all** platforms. Originally swiftlang#3242. Depends on swiftlang#3260, swiftlang#3264
yim-lee
added a commit
to yim-lee/swift-package-manager
that referenced
this pull request
Feb 18, 2021
This is part 2 of a series of PRs to support package collection signing on **all** platforms. Originally swiftlang#3242. Depends on swiftlang#3260, swiftlang#3264
yim-lee
added a commit
to yim-lee/swift-package-manager
that referenced
this pull request
Feb 20, 2021
This is part 2 of a series of PRs to support package collection signing on **all** platforms. Originally swiftlang#3242. Depends on swiftlang#3260, swiftlang#3264
yim-lee
added a commit
to yim-lee/swift-package-manager
that referenced
this pull request
Feb 22, 2021
This is part 2 of a series of PRs to support package collection signing on **all** platforms. Originally swiftlang#3242. Depends on swiftlang#3260, swiftlang#3264
yim-lee
added a commit
to yim-lee/swift-package-manager
that referenced
this pull request
Feb 26, 2021
This is part 2 of a series of PRs to support package collection signing on **all** platforms. Originally swiftlang#3242. Depends on swiftlang#3260, swiftlang#3264
yim-lee
added a commit
to yim-lee/swift-package-manager
that referenced
this pull request
Feb 26, 2021
This is part 2 of a series of PRs to support package collection signing on **all** platforms. Originally swiftlang#3242. Depends on swiftlang#3260, swiftlang#3264
yim-lee
added a commit
to yim-lee/swift-package-manager
that referenced
this pull request
Mar 2, 2021
This is part 2 of a series of PRs to support package collection signing on **all** platforms. Originally swiftlang#3242. Depends on swiftlang#3260, swiftlang#3264
yim-lee
added a commit
to yim-lee/swift-package-manager
that referenced
this pull request
Mar 9, 2021
This is part 2 of a series of PRs to support package collection signing on **all** platforms. Originally swiftlang#3242. Depends on swiftlang#3260, swiftlang#3264
yim-lee
added a commit
to yim-lee/swift-package-manager
that referenced
this pull request
Mar 10, 2021
This is part 2 of a series of PRs to support package collection signing on **all** platforms. Originally swiftlang#3242. Depends on swiftlang#3260, swiftlang#3264
yim-lee
added a commit
to yim-lee/swift-package-manager
that referenced
this pull request
Mar 11, 2021
This is part 2 of a series of PRs to support package collection signing on **all** platforms. Originally swiftlang#3242. Depends on swiftlang#3260, swiftlang#3264
yim-lee
added a commit
to yim-lee/swift-package-manager
that referenced
this pull request
Mar 11, 2021
This is part 2 of a series of PRs to support package collection signing on **all** platforms. Originally swiftlang#3242. Depends on swiftlang#3260, swiftlang#3264
yim-lee
added a commit
to yim-lee/swift-package-manager
that referenced
this pull request
Mar 12, 2021
This is part 2 of a series of PRs to support package collection signing on **all** platforms. Originally swiftlang#3242. Depends on swiftlang#3260, swiftlang#3264
yim-lee
added a commit
to yim-lee/swift-package-manager
that referenced
this pull request
Mar 12, 2021
This is part 2 of a series of PRs to support package collection signing on **all** platforms. Originally swiftlang#3242. Depends on swiftlang#3260, swiftlang#3264
yim-lee
added a commit
to yim-lee/swift-package-manager
that referenced
this pull request
Mar 13, 2021
This is part 2 of a series of PRs to support package collection signing on **all** platforms. Originally swiftlang#3242. Depends on swiftlang#3260, swiftlang#3264
yim-lee
added a commit
to yim-lee/swift-package-manager
that referenced
this pull request
Mar 20, 2021
This is part 2 of a series of PRs to support package collection signing on **all** platforms. Originally swiftlang#3242. Depends on swiftlang#3260, swiftlang#3264
yim-lee
added a commit
to yim-lee/swift-package-manager
that referenced
this pull request
Mar 22, 2021
This is part 2 of a series of PRs to support package collection signing on **all** platforms. Originally swiftlang#3242. Depends on swiftlang#3260, swiftlang#3264
yim-lee
added a commit
that referenced
this pull request
Mar 24, 2021
* [Collections] Signing (all, 1): certificate and key types This is part 1 of a series of PRs to support package collection signing on **all** platforms. Originally #3238. Depends on #3259 * [Collections] Signing (all, 2): signed collections This is part 2 of a series of PRs to support package collection signing on **all** platforms. Originally #3242. Depends on #3260, #3264 * [Collections] Signing (all, 3): certificate validations This is part 3 of a series of PRs to support package collection signing on **all** platforms. Originally #3245. Depends on #3265, #3269 * [Collections] Signing (all, 3.b): OCSP support for non-Apple platforms This is part 3.b of a series of PRs to support package collection signing on **all** platforms. Depends on #3270 Modifications: - Add `PackageCollectionsSigningLibc` module - Add OCSP support for non-Apple platforms through `PackageCollectionsSigningLibc` * Use shared callbackQueue and diagnosticsEngine in tests * Update platform check * Better OCSP error handling and cache OCSP results * Don't default to BoringSSL * OpenSSL license * fixup * Use ptr.count * Don't blindly drop X509_V_ERR_UNHANDLED_CRITICAL_EXTENSION error * Add withUnsafeMutablePointer for accessing underlying X509 pointer * Fix leaks * Use withExtendedLifetime * OSCP response handling * Delete remove from cache call * OCSP should fail open * Verify OCSP response * Create new X509_STORE per invocation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This is part 2 of a series of PRs to support package collection signing on Apple platforms. Originally #3242.
Depends on part 1
Modifications:
Signature
, which is similar to JWSCertificatePolicy
protocol (more on this in part 3)PackageCollectionsSigning
- given a package collection, certificate and its private key, generate a "signed" collection; and reverse that process to validate collection signature.