Product documentationbeginner5 minutes

Add a secret

Add an API key or credential to a Jotsu application as an encrypted environment variable without exposing its value to client-side code.

Store credentials in Environment variables and mark them as secret. Saved secret values cannot be viewed again.

Store the value#

  1. Open the application in Jotsu.
  2. Open Settings.
  3. Under Environment variables, select Add environment variable.
  4. Enter an uppercase variable name, such as SERVICE_API_KEY.
  5. Enter the value and enable Secret.
  6. Select Save.

Jotsu saves and delivers the value to the application runtimes. If delivery fails, select Retry delivery.

Reference the variable by name in server-side code. Never paste the value into a prompt, commit it to source, print it in logs, or expose it through client-side code.