From c214f22f95b50c07fed034bd692bc43fe69ebcf1 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 24 Feb 2024 22:03:12 -0300 Subject: Feat: docs: secrets: tpc: on hashed passphrases (2) --- docs/tpc.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/tpc.md b/docs/tpc.md index 5266b83..de3203a 100644 --- a/docs/tpc.md +++ b/docs/tpc.md @@ -78,6 +78,12 @@ generator like this: For `passwd(5)` and `shadow(5)` hashed passphrases, use something like this: + mkpasswd -m sha-512 | \ + hydra $HYDRA eyaml $VOLNAME encrypt -q -o block --stdin -l some::random:password >> \ + $CONFIG_FOLDER/puppet/config/secrets/node/$VOLNAME.$DOMAIN.yaml + +Or this, for a random passphrase: + head -c ${1:-20} /dev/urandom | base64 | \ mkpasswd -m sha-512 --stdin | \ hydra $HYDRA eyaml $VOLNAME encrypt -q -o block --stdin -l some::random:password >> \ -- cgit v1.2.3