Skip to content

secret

Reads a secret from a store.

secret(x:string) -> string

The secret function retrieves the value associated with the key x and replaces it with the built-in secret store, which is a section in the tenzir.yaml configuration file:

tenzir:
secrets:
# Add your secrets there.
geheim: 1528F9F3-FAFA-45B4-BC3C-B755D0E0D9C2
from {x: secret("geheim")}
{x: "1528F9F3-FAFA-45B4-BC3C-B755D0E0D9C2"}

config, env