With Secrets Manager you can save API keys and database credentials securely instead of including them directly in your workflow code. All secrets are encrypted in transit and at rest and made available during execution of your workflow.

Secrets used to authenticate your connections are stored separately from Secrets Manager.

Getting started

From the main dashboard, press on your profile avatar, and then Secrets manager.

Use the secrets manager to add new secrets and delete existing ones.

Deleting secrets used in active workflows will likely cause future workflow runs to fail.

Using secrets in your workflows

Secrets are accessible in your workflows via environment variables. You can reference them as you would any other environment variable in Python. For example, to access a secret configured with the key MY_SECRET:

import os

secret_value = os.getenv('MY_SECRET')

Importing os via import os is necessary in your workflow to access the getenv method.