Skip to content

Application Secrets

Raindrop Build provides a secure way to handle sensitive information through its secrets management system. Secrets are encrypted values that are accessible across your entire application, allowing you to safely store and use API keys, credentials, and other confidential data.

Setting Up Secrets

Follow these steps to add and configure secrets in your application:

  1. Define the secret in your manifest file by adding a new environment binding:

    env "BINDING_NAME" {
    secret = true
    }
  2. Set the secret value using the Raindrop CLI:

    Terminal window
    raindrop build env set <TEMPLATE_NAME>:env:<BINDING_NAME> <API_KEY>
  3. Generate the necessary bindings:

    Terminal window
    raindrop build generate
  4. Deploy your updated application:

    Terminal window
    raindrop build deploy