Closed rwaffen closed 8 months ago
bump ... any news here?
Looks like it was changed in https://github.com/puppetlabs/puppetlabs-stdlib/commit/8d525d24a510d377b29a2aed2654ed2de854b94f. Perhaps @david22swan can take a look.
It seems to affect all bcrypt (not only bcrypt-a). As of the documentation of org.apache.commons.codec.digest.Crypt.crypt it also does not support bcrypt.
Looking at the source code also seems that it's not support and not only forget to be documented. Crypt.java
Patched the if to if RUBY_PLATFORM == 'java' && !args[1].downcase.start_with?('bcrypt')
which seems to work for us.
Describe the Bug
in stdblib 8.6.0 i could do something like this:
in stdlib 9.3.0 i get this:
https://github.com/puppetlabs/puppetlabs-stdlib/blob/main/lib/puppet/parser/functions/pw_hash.rb when i change this block, it works again
9.3.0 not working
8.6.0 working