Skip to content

Verify the libarchive payload #181

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 2 commits into from
Nov 4, 2024
Merged

Conversation

cmcgee1024
Copy link
Member

The libarchive that is used to make a swiftly release for Linux is downloaded directly from the libarchive project on GitHub from a release artifact. In theory, this release could become tampered in the future.

Typically package managers get around this problem by both getting a specific version of the package, and also keep a hash/git commit to verify the contents.

Add a content check using an expected SHA-256 sum of the release source tarball of libarchive to help protect against any tampering of the release in the future.

The libarchive that is used to make a swiftly release for Linux
is downloaded directly from the libarchive project on GitHub from
a release artifact. In theory, this release could become tampered
in the future.

Typically package managers get around this problem by both getting
a specific version of the package, and also keep a hash/git commit
to verify the contents.

Add a content check using an expected SHA-256 sum of the release
source tarball of libarchive to help protect against any tampering
of the release in the future.
@cmcgee1024
Copy link
Member Author

@swift-ci test macOS

@cmcgee1024 cmcgee1024 requested a review from shahmishal October 30, 2024 17:34
@justice-adams-apple
Copy link

LGTM

@cmcgee1024 cmcgee1024 merged commit 7ea0dd9 into swiftlang:main Nov 4, 2024
5 of 6 checks passed
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

Successfully merging this pull request may close these issues.

2 participants