Expand description
Dev secrets store management for bundle setup.
Provides helpers for locating the dev secrets file and
SecretsSetup for ensuring pack secrets are seeded.
Structs§
- Generated
Secret - A host-generated secret declared by a pack’s
greentic.generated-secrets.v1extension (e.g. the webchatjwt_signing_key). Unlike a regular secret requirement, the user never enters it — the host seeds a missing required secret with a value produced perpolicy. See greentic-messaging-providersdocs/generated-runtime-secrets.md. - Pack
Secret Requirement - Secrets
Setup - Single entry-point for secrets initialization and resolution.
Functions§
- default_
path - Returns the default dev store path without creating anything.
- ensure_
path - Ensures the default dev store path exists (creating parent directories) before returning it.
- find_
existing - Checks for an existing dev store inside the bundle root.
- find_
existing_ with_ override - Looks for an existing dev store using an override path before consulting default candidates.
- generate_
secret_ value - Produce a value for a host-generated secret.
randompolicy fills the value with cryptographically-random bytes encoded perencoding; any other policy is treated asrandom(the only strategy defined today). - load_
generated_ secrets_ from_ pack - Read
greentic.generated-secrets.v1declarations from a.gtpackmanifest. Returns an empty vec when the pack declares none. - load_
secret_ keys_ from_ pack - Load secret requirement keys from a
.gtpackarchive. - load_
secret_ requirements_ from_ pack - Rich secret requirements extracted from a
.gtpackarchive. - open_
dev_ store - Open a
DevStorefrom a bundle root path (convenience). - override_
path - Returns a path explicitly configured via
$GREENTIC_DEV_SECRETS_PATH.