Setting Secrets
For setting sensitive information (such as API keys or database credentials) to be accessed within your fal functions you can use thefal secrets
CLI interface.
Accessing Secrets in Your Code
Accessing Secrets in Your Requirements
For security reasons, we don’t expose your secrets as environment variables during the environment building stage. Instead, you can use${}
to substitute your secret into a requirement.
Listing Secrets
You can list the secrets you have through the CLI, but the values will be hidden for security reasons.Secret Name | Created At |
---|---|
MY_API_TOKEN | 2023-09-05 15:17:39.279347 |
MY_IDENTITY_KEY | 2023-09-05 15:17:41.444478 |