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#
- Open the application in Jotsu.
- Open Settings.
- Under Environment variables, select Add environment variable.
- Enter an uppercase variable name, such as
SERVICE_API_KEY. - Enter the value and enable Secret.
- 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.