- Avalanche Cloud
- Secrets
Avalanche Cloud
Secrets
How API keys and settings reach your steps on Avalanche Cloud.
A workflow declares the names it needs. You store the values once. At run time, each step gets only the names its workflow declared.
Rendering diagram…
Declare the names
pyproject.toml
[tool.delta.env]
process_invoice = ["OPENAI_API_KEY", "TYPESAFE_API_KEY"]
weekly_report = ["OPENAI_API_KEY"]
One line per workflow. A name that is not declared never reaches a step, even if a value is stored.
Store the values
delta env set OPENAI_API_KEY --secret # for the project; reads the value from the terminal
delta env set REGION --flow weekly_report # for one workflow
delta env set OPENAI_API_KEY --secret --org # for the whole organization
delta env list
Or in the console: the project’s Settings, then Environment.
| Kind | Can be read back |
|---|---|
| Secret | No. It can only be replaced. |
| Plain | Yes |
Which value a step gets
The closest one wins.
Rendering diagram…
A declared name with no value anywhere fails the step, with a message naming it. The console shows which names are missing before you run.
From a .env file
delta deploy --env-file .env.production
Each variable in the file is stored as a project secret, then the project is deployed. The file itself is never uploaded with your code.
