Skip to content

step 14 of 75 · Data and checks

Secrets ​

The vault keeps API keys and passwords encrypted in secrets.age. A workflow reads a secret with secret('NAME'). The file is safe to commit and ships inside the appliance; only the vault password comes from outside.

text
kdeps secret set NAME -> secrets.age (encrypted) -> secret('NAME') when the resource runs

Store the value once, then use it in a resource:

yaml
# kdeps secret set github_token   (asks for the value and the vault password)
headers:
  Authorization: "Bearer {{ secret('github_token') }}"   # decrypted at run time, never written to disk

kdeps has the Apache 2.0 License.