puppetlabs / puppetlabs/puppetlabs-stdlib

pw_hash not provide yescrypt hash type

Open
#1,445 0 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Ruby
Stars
349
Forks
573
Avg merge
3d 3h
Merged PRs (30d)
1

Description

Use Case

Since debian 11, yescrypt is used by default to encrypt pam password. It's also the default method for many other Linux distribution.
The french cyber security organisation (ANSII) oblige all the french gouvernment and many french company to use yescrypt.
As it, pw_hash must provide yescrypt option.

Describe the Solution You Would Like

pw_hash should support yescrypt.

pw_hash($password, 'yescrypt', $salt)

And giving and hash like : $y$xxxxxxxxxxxxxxxxxx

Describe Alternatives You've Considered

The only alternative I found is not using pw_hash and inject directly the hash in puppet.

Additional Context

N/A

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the pw_hash entry point and its existing hash-type handling and tests. Check how yescrypt support is represented on supported platforms, then define completion as accepting the yescrypt option and handling hashes beginning with $y$ with coverage for the requested usage.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
security
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.