Store a secret
set_secretStore an API key, password or token under a name the code reads with Secret.Read("NAME") - never put one in the code, a resource, the workspace, a log line or a note. The value is sealed and can never be read back, by you or the owner; only the lambda reads it, from its next call on, without a deploy. Only set a value the user gave you for this: when you do not have it, write the code with Secret.Read and tell the user to set it under Data > Secrets in the editor - read_lambda and list_secrets list what is still missing. Secrets must be switched on first (enable_data). With feature, into that feature's copy (a sandbox key to try it with). Up to 100 secrets of 32 KB each.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Letters, digits and underscores, not starting with a digit - conventionally upper case: 'STRIPE_KEY'. The name of an environment variable in an exported project. | |
| value | Yes | The value, as the user gave it. | |
| feature | No | Store it in this feature's copy of the secrets instead. | |
| privateKey | Yes | The editor key. |