Skip to main content
Save private credentials, such as API keys or access tokens, in Cloud Secrets. Don’t paste them into project chat or frontend code. Enter connects your server-side integration to the saved secret by name.

Know what belongs in Secrets

Use a secret for any private value your app needs to call another service, such as email, payment, storage, or messaging. Every secret has two parts.
Never put the secret value in project chat, frontend files, browser requests, screenshots, or error messages shown to visitors.

Add a secret safely

1

Open Secrets

Open your project’s Cloud instance and choose Secrets.
2

Add the secret

Click Add Secret. Enter a clear name and paste the credential into the value field. Use Add another for more. Click Save and check that the name appears in the list.
Enter a name and value here. The value shown is a placeholder.

Enter a name and value here. The value shown is a placeholder.

3

Tell Enter the name, not the value

Name the saved secret and the feature that needs it.
Use a dedicated key. Give it only the permissions it needs. Use separate keys for testing and live, so tests can’t touch live data.

Test the integration

  • Run the app action that uses the outside service.
  • Confirm the final result, such as a delivered email.
  • Trigger a failure. The page should show a useful message with no private details.

Troubleshooting

Saving a secret doesn’t connect the service. The app needs a server-side integration that uses the saved name. Ask Enter to build it.
Tell Enter the secret name, what you did, and the error shown. Never send the value.

Common questions

Enter the value only in the Secrets form for your Cloud instance. Share the secret name with Enter, but never paste the value into project chat, frontend code, browser requests, screenshots, or visible errors.
Use separate keys for testing and live so tests cannot affect live data. Give each key only the permissions its server-side integration needs.

Keep going

Next: Plan and test Cloud functions
Describe and test the flow that uses your secret.

Connect Stripe for app payments

Connect Stripe for payments.

Configure Google sign-in for your app

Another setup that uses a private key.