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

[BEAM-4524] Use sha256 instead of insecure md5 for artifact checksums. #6583

Merged
merged 1 commit into from Nov 14, 2018

Conversation

robertwb
Copy link
Contributor

@robertwb robertwb commented Oct 5, 2018

Also avoid base64, as there are many dialects (which we were not
choosing consistently, the primary one using characters like '/'
unsuitable for filenames). Lowercase hex is also more standard for
cryptographic sums and easier to verify.


Follow this checklist to help us incorporate your contribution quickly and easily:

  • Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

It will help us expedite review of your Pull Request if you tag someone (e.g. @username) to look at it.

Post-Commit Tests Status (on master branch)

Lang SDK Apex Dataflow Flink Gearpump Samza Spark
Go Build Status --- --- --- --- --- ---
Java Build Status Build Status Build Status Build Status Build Status Build Status Build Status
Python Build Status --- Build Status
Build Status
Build Status --- --- ---

Also avoid base64, as there are many dialects (which we were not
choosing consistently, the primary one using characters like '/'
unsuitable for filenames).  Lowercase hex is also more standard for
cryptographic sums and easier to verify.
@robertwb robertwb requested a review from herohde October 5, 2018 15:53
@herohde
Copy link
Contributor

herohde commented Oct 5, 2018

MD5 is a checksum used by GCS, Azure storage and others. It's convenient that they match. The checksum is not used for security decisions. Is there a JIRA describing the rationale for changing it?

@robertwb robertwb changed the title Use sha256 instead of insecure md5 for artifact checksums. [BEAM-4524] Use sha256 instead of insecure md5 for artifact checksums. Oct 8, 2018
@robertwb
Copy link
Contributor Author

robertwb commented Oct 8, 2018 via email

@robertwb
Copy link
Contributor Author

robertwb commented Nov 9, 2018

R: @boyuanzz

@robertwb
Copy link
Contributor Author

Thanks! Rerunning a couple of tests before merging as it's been a while.

@robertwb
Copy link
Contributor Author

Run PreCommit

@robertwb
Copy link
Contributor Author

Run JavaPortabilityApi PreCommit

@robertwb
Copy link
Contributor Author

Run Python Flink ValidatesRunner

@robertwb
Copy link
Contributor Author

Run Python PreCommit

@robertwb robertwb merged commit 7a35e80 into apache:master Nov 14, 2018
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.

None yet

3 participants