Secrets
- You can register secrets such as credentials and use them in the corresponding nodes as environment variables.
- In the current version, secrets are registered for each tenant.
Registering Secrets
- Select a project and access the Canvas.
- Click the
+
button on the right side ofSecrets
to register the secret name and information through the dialog that appears.
- For example, if you register
OPEN_AI_ORGID
andOPEN_AI_API_KEY
as secrets, they will be displayed as follows.
Utilizing Secrets
- You can use the secrets by entering
${{SECRET.<SECRET_NAME>}}
in theValue
of the environment variables that can be set from SideApp or Function.
- The registered secrets will become OS-level environment variables. To use them in functions, injections, etc., you can execute
import os
in a Python script just like in general development, and retrieve the environment variable usingos.getenv("key")
. - For example, if you configure the registered secrets
OPEN_AI_ORGID
andOPEN_AI_API_KEY
to be used as environment variables, they will be displayed as below. - Note: Be cautious when using secrets without specifying values as environment variables. In this case, the environment variable will be empty.