Skip to content
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

Add "--verify" option for installations. #74

Merged
merged 4 commits into from
Dec 12, 2016

Conversation

stupergenius
Copy link
Collaborator

@stupergenius stupergenius commented Dec 10, 2016

As requested in #64. The install command now accepts a verify option that will download and check the gpg signature. For security, we do not automatically install any keys during the swift installation step, and instead assume (with documentation) that they have been installed by the user out-of-band.

$ swift install 2.2 --verify

curl -O "$URL"
curl -O "$URL.sig"
gpg --verify "swift-$VERSION"*.sig
tar xzf "swift-$VERSION"*.tar.gz
Copy link
Owner

@kylef kylef Dec 10, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the * matching here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's just matching the downloaded sig and tar files, the actual file names aren't captured anywhere AFAIK so I base the match on convention. It could probably be simplified since only one of each would be downloaded into that temp dir, at least I think that's how it works.

@kylef kylef self-assigned this Dec 10, 2016
@kylef
Copy link
Owner

kylef commented Dec 11, 2016

Thanks for the PR, let me test this out soon and I'll get this merged in. Looks great!

@kylef kylef merged commit 5f0937d into kylef:master Dec 12, 2016
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