Skip to main content

secret

Package secret provides loading of age-encrypted key-value store files for durable programs.

load("secret", ...)

secret​

load("secret", "secret")

Functions​

load_store(path: String, latest_ref: Bool?)​

Example:

store = secret.load_store(path = "//secret.enc.env")
store.get("one")
store = secret.load_store(path = "//secret.enc.json")
store.get("one")
store = secret.load_store(path = "//secret.enc.yml")
store.get("three")
store = secret.load_store(path = "//secret.enc.yml", latest_ref = True)
store.get("four")

Parameters:

NameTypeRequiredDescription
pathString✓
latest_refBool

Returns: Dict