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 detached gpg signature file to allow verification of hashes #2

Open
grempe opened this issue Feb 18, 2016 · 1 comment
Open

Add detached gpg signature file to allow verification of hashes #2

grempe opened this issue Feb 18, 2016 · 1 comment

Comments

@grempe
Copy link

grempe commented Feb 18, 2016

If you were to publish a GPG key that is used for code signing and signed that latest version of the hashes file and each binary download file for each release with a detached gnupg signature file it would go a long way to ensure that not only are the bits correct (which the hash already tells us) but that the integrity of the hashes list is unimpeachable as well. This could be very easily scripted on your end when new releases are put out.

Signing the binary for each release tarball individually would be awesome as well.

Here are a couple of example projects that do this:

https://github.com/tianon/gosu/releases
https://github.com/just-containers/s6-overlay/releases

An example usage (in a Dockerfile) would be something like this:

ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-amd64.tar.gz /tmp/s6-overlay-amd64.tar.gz
ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-amd64.tar.gz.sig /tmp/s6-overlay-amd64.tar.gz.sig

RUN tar xvfz /tmp/s6-overlay-amd64.tar.gz -C / && \
  gpg --keyserver pgp.mit.edu --recv-key ${S6_OVERLAY_GPG_KEY} && \
  gpg --verify /tmp/s6-overlay-amd64.tar.gz.sig /tmp/s6-overlay-amd64.tar.gz && \
@ghost
Copy link

ghost commented Mar 10, 2016

Subscribe

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

No branches or pull requests

1 participant