-
Notifications
You must be signed in to change notification settings - Fork 172
Rely on the digest class defined by Rails #173
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested the patch with satellite installation on fips-enabled system, it fixes the issue.
|
@mathieujobin Could you take a look when you get a chance, and if you merge the change a follow up release would be greatly appreciated. Additional context is available in our project's tracker -- https://projects.theforeman.org/issues/38118 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will merge if tests passes...
If you have time to add newer rubies and rails versions to the build matrix before me ..
That'd be great 👍
Thanks for your contribution
|
The tests are unrelated to this change, I have opened a PR to fix them separately -- #174 |
Rails applications can override the digest class through configuration settings. Further, Rails does this by default in versions suchs as 7 where it defaults to SHA256. Using ActiveSupport::Digest directly skips over this setting causing it to always be MD5 in the current state. This breaks in modern environments MD5 is disabled such as FIPS environments. Signed-off-by: Eric D. Helms <ericdhelms@gmail.com>
|
@mathieujobin Can you take another look? |
|
I will try to release it tomorrow or in the following days, ping me again if I forget |
|
Awesome, thank you so much! |
|
@mathieujobin friendly ping ;-) |
|
Sorry for the wait ! enjoy your weekend
is out in the wild |
Rails applications can override the digest class through configuration settings. Further, Rails does this by default in versions suchs as 7 where it defaults to SHA256. Using ActiveSupport::Digest directly skips over this setting causing it to always be MD5 in the current state. This breaks in modern environments MD5 is disabled such as FIPS environments.