Skip to content

Conversation

@kjetilho
Copy link
Contributor

@kjetilho kjetilho commented Mar 4, 2021

No description provided.

@kjetilho kjetilho requested a review from a team as a code owner March 4, 2021 22:19
@puppet-community-rangefinder
Copy link

pw_hash is a function

Breaking changes to this file MAY impact these 11 modules (near match):

This module is declared in 318 of 576 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.

@kjetilho
Copy link
Contributor Author

kjetilho commented Mar 5, 2021

(This is a good candidate for squashing commits when merging :-)

@david22swan
Copy link
Member

@kjetilho Just one small comment, everything else look's good and I'll happily merge once it's resolved.

@kjetilho kjetilho force-pushed the feature/pw_hash_bcrypt branch from f3800aa to d5286ce Compare March 30, 2021 07:41
@kjetilho
Copy link
Contributor Author

So with the last changes, Travis here reports

Only testing bcrypt results on glibc 2.28 and later (PENDING: Not yet implemented)

The tests run nicely in my CentOS 8 and Ubuntu Focal test environments, however.

@kjetilho
Copy link
Contributor Author

I can squash commits into one feature patch commit and one commit for the documentation update if desired.

@daianamezdrea
Copy link
Contributor

Hi @kjetilho, sounds perfect! Thank you for your contribution !

This is the hash algorithm used by default by Elasticsearch among others
The return type is not a (Puppet) hash, but a normal text string.
* check for invalid salt values for all bcrypt variants
* check for valid return value on glibc 2.28

I am not entirely sure this cutoff is correct, but RHEL 8 runs glibc
2.28 and supports bcrypt, and Ubuntu 18.04 Bionic has glibc 2.27 and
does not.  Ubuntu Focal 20.04 has glibc 2.31 and also supports bcrypt.
We will see what the test harness reports :-)
@kjetilho kjetilho force-pushed the feature/pw_hash_bcrypt branch from 51c9d28 to ffc6d96 Compare April 19, 2021 07:44
@kjetilho
Copy link
Contributor Author

Rebased and squashed down, ready for merge.

@david22swan david22swan merged commit 09a9b97 into puppetlabs:main Apr 19, 2021
@david22swan
Copy link
Member

@kjetilho A few transient failures but rekicking sorted them out.
Everything looks good to me so I've gone ahead and merged, thank you for putting in the work and I look forward to seeing more PRs from you in the future. :)

@kjetilho kjetilho deleted the feature/pw_hash_bcrypt branch April 19, 2021 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants