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

docker and docker-completion: fix revision hash #22427

Closed
wants to merge 4 commits into from
Closed

docker and docker-completion: fix revision hash #22427

wants to merge 4 commits into from

Conversation

andrasmaroy
Copy link
Contributor

@andrasmaroy andrasmaroy commented Jan 4, 2018

  • Have you followed the guidelines for contributing?
  • Have you checked that there aren't other open pull requests for the same formula update/change?
  • Have you built your formula locally with brew install --build-from-source <formula>, where <formula> is the name of the formula you're submitting?
  • Does your build pass brew audit --strict <formula> (after doing brew install <formula>)?

Tag was updated in #22174 but the commit hash wasn't, updated according to the official repo.

@ilovezfs ilovezfs added checksum mismatch SHA-256 doesn't match the download do not merge labels Jan 4, 2018
Copy link
Contributor

@ilovezfs ilovezfs left a comment

Choose a reason for hiding this comment

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

These are verified at build time, so if they retagged we need an explanation from upstream as to what happened in order to rule out malicious circumstances.

@andrasmaroy
Copy link
Contributor Author

As you can see in the link above, the tag in this formula points to the hash I've updated to, don't know what happened there. How and who to contact upstream with this?

@ilovezfs
Copy link
Contributor

ilovezfs commented Jan 4, 2018

Yes, this PR updates the hash to something different from what it was originally in #22174 at which time it was verified as being correct. For security we don't change the tag commit hash without an explanation. Contact info is here https://www.docker.com/company/contact

@andrasmaroy
Copy link
Contributor Author

Support request number 00037354 created at Docker.

@ilovezfs
Copy link
Contributor

ilovezfs commented Jan 4, 2018

@andrasmaroy thanks! We'll also need to bump the formula revision here, and make the same changes for the docker formula, which was built from that same tag.

@ilovezfs
Copy link
Contributor

ilovezfs commented Jan 4, 2018

to bump revisions you need to add

revision 1

@r-chris
Copy link

r-chris commented Jan 5, 2018

This should also affect the docker.rb formula as it points to the same hash in the same repo.

@r-chris
Copy link

r-chris commented Jan 5, 2018

The release was done 9 days ago, but someone appears to have re-tagged this only a day ago: https://github.com/docker/docker-ce/tags

r-chris referenced this pull request in docker/docker-ce Jan 5, 2018
[17.12] bump version to 17.12.0-ce
@ilovezfs ilovezfs changed the title docker-completion: fix revision hash docker and docker-completion: fix revision hash Jan 6, 2018
@rmg
Copy link

rmg commented Jan 9, 2018

I'm not sure how the verification was done the first time, but it is pretty clear from the actual contents of the original commit sha1 that it is not the correct commit for that tag.

Is there anything that can be done to prevent this sort of problem in the future? The process as-is (which seems pretty reasonable) appears to make it easier to make the mistake in the first place than it is to fix it afterwards.

@ilovezfs
Copy link
Contributor

ilovezfs commented Jan 9, 2018

@rmg yes. Ask upstream never to retag.

@Homebrew Homebrew deleted a comment from AlanHohn Jan 11, 2018
@ilovezfs
Copy link
Contributor

This will be taken care of by
#22729
#22730

Thanks for bringing it to our attention @andrasmaroy!

@ilovezfs ilovezfs closed this Jan 11, 2018
@Homebrew Homebrew deleted a comment from ulfw Jan 11, 2018
@Homebrew Homebrew locked and limited conversation to collaborators Jan 11, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
checksum mismatch SHA-256 doesn't match the download
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants