The Daisi platform offers a solution to manage secrets such as passwords, API keys, tokens, etc...
To define a secret¶
- Go to the Settings tab of your Daisi and scroll down to the "Secrets" section.
- Click on "Add a new secret", enter the secret's name and its value
- Once validated, the secret value is encrypted at rest and can only be accessed from within the Daisi code at runtime
Accessing a secret in the code of a Daisi¶
Daisi secrets are presented to the Daisi as environment variables with the same names as the secrets. You can access them from within a Daisi with code like the following, for example: