docsite/docs/configuration/variables.md
A variable / secret in Komodo is just a key-value pair.
KEY_1 = "value_1"
You can interpolate the value into any resource Environment
(and most other user configurable inputs, such as Repo On Clone and On Pull, or Stack Extra Args)
using double brackets around the key to trigger interpolation:
# Before interpolation
SOME_ENV_VAR = [[KEY_1]] # <- wrap the key in double brackets '[[]]'
# After interpolation:
SOME_ENV_VAR = value_1
In the UI, you can go to Settings page, Variables tab. Here, you can create some Variables to store in the Komodo database.
Mount a config file to Core: Advanced Configuration
secrets using a block like:
toml # in core.config.toml [secrets] KEY_1 = "value_1" KEY_2 = "value_2" KEY_1 and KEY_2 will be available for interpolation on all your resources, as if they were Variables set up in the UI.Mount a config file to Periphery agent:
secrets using the same syntax as the Core config file.Use a dedicated secret management tool such as Hashicorp Vault, alongside Komodo