Best way to store secrets (API Keys, etc.)

Update: the best practice recommendation for storing secrets is now to use OXIDE’s native support for environment variables. To use:

  • Variables are stored per-deployment, so navigate to your Deployments in OXIDE
  • Click on “Deployment Settings” for the desired deployment (e.g. Staging)
  • Select the “Environment Variables” tab - here you can add variables

Once you’ve defined your variable, you can access it from your CloudCode task using process.env.VARIABLE_NAME

available from CloudCode version 1.11.1

1 Like