Skip to content

Switch hash from MD5 to SHA256#785

Merged
rafaelfranca merged 1 commit into
rails:mainfrom
stanhu:sh-fips-hash
Jun 27, 2022
Merged

Switch hash from MD5 to SHA256#785
rafaelfranca merged 1 commit into
rails:mainfrom
stanhu:sh-fips-hash

Conversation

@stanhu

@stanhu stanhu commented May 3, 2022

Copy link
Copy Markdown
Contributor

On FIPS-compliant systems (http://en.wikipedia.org/wiki/FIPS_140), MD5
cannot be used. Switch to SHA256 instead.

However, this change does not keep backward compatibility with systems
with already-installed Thor recipes.

Closes #287

On FIPS-compliant systems (http://en.wikipedia.org/wiki/FIPS_140), MD5
cannot be used. Switch to SHA256 instead.

However, this change does not keep backward compatibility with systems
with already-installed Thor recipes.

Closes rails#287
@stanhu stanhu mentioned this pull request May 3, 2022
@stanhu

stanhu commented May 3, 2022

Copy link
Copy Markdown
Contributor Author

Some tests will be fixed by #771.

@dorner

dorner commented May 4, 2022

Copy link
Copy Markdown

Yeah I'm not sure this is actually a backwards compatibility issue. Looks like it just affects what filename Thor uses to save its config? Looks like it'll just save with the new filename if it can't find the old one. I'm OK with this @rafaelfranca

@stanhu

stanhu commented Jun 27, 2022

Copy link
Copy Markdown
Contributor Author

@rafaelfranca Would you mind reviewing here? We'd like to drop uses of MD5 in our code base ASAP.

@rafaelfranca rafaelfranca merged commit 937c443 into rails:main Jun 27, 2022
@stanhu

stanhu commented Jun 29, 2022

Copy link
Copy Markdown
Contributor Author

@rafaelfranca Could I trouble you to release a new version with this? Thanks so much.

@stanhu stanhu deleted the sh-fips-hash branch June 29, 2022 04:41
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.

FIPS compatibility

3 participants