Managing Secrets and Environment Variables

In the Beam dashboard, you’ll be able to create secrets and environment variables which you can access in your apps.

Secrets can be scoped globally to all of your apps, or limited to a specific app.

Using Secrets

Once created, you can access a secret like an environment variable:

import os

my_secret_key = os.environ['MY_SECRET_KEY']
You’ll need to redeploy your app for secrets to be updated.

Creating a globally accessible secret

To create a new secret that is available across all apps in your Beam account, navigate to the Secrets Manager and click Create Secret.

You’ll be prompted to enter a name and value.

Creating an app-level secret

You can also create a secret that is only available for a specific app. To create an app-level secret: click an App -> App Settings -> Secrets.