Skip to content

(maint) Update str2saltedpbkdf2.rb to use the correct salt length #1232

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

Merged
merged 1 commit into from
Apr 26, 2022

Conversation

AriaXLi
Copy link
Contributor

@AriaXLi AriaXLi commented Apr 13, 2022

The documentation in str2saltedpbkdf2.rb did not have the right length salt.

OS X versions 10.15 and higher require the salt to be 32-bytes. Since Puppet's user resource requires the value to be hex encoded, the length of the salt's string must be 64. str2saltedpbkdf2.rb was updated to reflect this.

@AriaXLi AriaXLi requested a review from a team as a code owner April 13, 2022 22:24
@puppet-community-rangefinder
Copy link

str2saltedpbkdf2 is a function

that may have no external impact to Forge modules.

This module is declared in 318 of 579 indexed public Puppetfiles.


These results were generated with Rangefinder, a tool that helps predict the downstream impact of breaking changes to elements used in Puppet modules. You can run this on the command line to get a full report.

Exact matches are those that we can positively identify via namespace and the declaring modules' metadata. Non-namespaced items, such as Puppet 3.x functions, will always be reported as near matches only.

The documentation in str2saltedpbkdf2.rb did not have the right length salt.
OS X versions 10.15 and higher require the salt to be 32-bytes. Since Puppet's user resource requires the value to be hex encoded, the length of the salt's string must be 64. str2saltedpbkdf2.rb was updated to reflect this.
@AriaXLi AriaXLi force-pushed the maint_str2saltedpbkdf2 branch from 9c425a7 to 2618ce5 Compare April 13, 2022 22:47
Copy link
Contributor

@chelnak chelnak left a comment

Choose a reason for hiding this comment

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

This seems like a sensible change! Thank you.

@chelnak chelnak merged commit 23fdf23 into puppetlabs:main Apr 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants