Skip to main content

Module generators

Module generators 

Source
Expand description

The concrete secret generator behind a pack’s generated block — one implementation shared by start/setup/deployer so a pack mints identical material everywhere, instead of each repo carrying its own CSPRNG with a slightly different alphabet/length.

Faithful to the historical greentic-start generated_secret_value: policy random, encodings raw_text (a 64-char ASCII alphabet), base64url (URL-safe, no pad), and hex (lowercase). length is the character count for raw_text and the raw random-byte count for base64url/hex.

Functions§

generate_secret_value
Mint a value for a pack-declared generated secret, returning the value bytes and the SecretFormat they should be stored under.