Skip to content
MyAppBuilder
StableGuide

Secrets

Secrets are the API keys, passwords and connection strings your app needs to talk to other services: an email provider, a payment provider, an external database, Google sign-in. MyAppBuilder stores them encrypted on the server, never shows them again, never puts them in your proj

Secrets are the API keys, passwords and connection strings your app needs to talk to other services: an email provider, a payment provider, an external database, Google sign-in. MyAppBuilder stores them encrypted on the server, never shows them again, never puts them in your project or in the published app, and never shares them with the AI. Your app only knows that a secret with a given name is configured.

When to use

  • Sending email from your app with your own Resend account (RESEND_API_KEY).
  • Google sign-in for app users (GOOGLE_CLIENT_SECRET, with GOOGLE_CLIENT_ID as a plain variable).
  • Connecting an external PostgreSQL or Supabase database, or an API that needs a bearer token or API key.

How to add a secret

  1. Open Settings › Environment & secrets (admins and owners only; editors see the list but cannot change it).
  2. Choose the environment: Development, Staging or Production. Each has its own values; a secret set in Development is "Not set" in Production until you add it there.
  3. In the Secrets card, enter a name (RESEND_API_KEY, capitals and underscores) and paste the value (the eye icon shows or hides it while typing; up to 10,000 characters).
  4. Click Save secret. The row now shows Configured with the date. The value is gone from the screen for good.
  5. Reference the secret by name where it is needed: an API source's authentication, a data source's credential, or the email settings.

To change a value, click Replace, paste the new value and save. To remove it, click the trash icon: "The value is destroyed and can't be recovered. Integrations that use it will stop working until you add it again."

Example
Production
RESEND_API_KEY       Configured · Updated 12 Mar   [Replace] [🗑]
STRIPE_SECRET_KEY    Not set                       [Set value] [🗑]

What "configured: true" means

Your project definition only records { key: "RESEND_API_KEY", secret: true, configured: true }. That flag is what the publish checklist and API sources check. The real value lives in an encrypted store and is decrypted only inside server code at the moment it is used.

Checks before publishing

The publish checklist reports an error when:

  • an API source uses a secret that is not configured in the target environment ("API … needs secret … in production");
  • an external data source's credential secret is missing;
  • Google sign-in is enabled without GOOGLE_CLIENT_ID and a configured GOOGLE_CLIENT_SECRET.

It reports a warning when an action sends email and no RESEND_API_KEY is configured (emails then use the platform sender).

Common mistakes

  • Pasting a secret into a plain variable. Variables are visible to editors and shipped to the browser. Delete it and create a secret.
  • Setting the secret only in Development. Preview works; staging and production fail the checklist.
  • Expecting to read a secret back. By design nobody can, including admins; keep a copy in your own password manager.
  • Naming a secret like an existing variable. The form refuses: delete the variable first or pick another name.

Advanced

Secrets are written through PUT /api/projects/:id/secrets (admin role) into encrypted_secrets per (project, environment, key) using AES-256-GCM with a key derived from the platform's APP_SECRET. The command engine refuses set_env_variable with secret: true and a value, and rejects data-source config keys that look like passwords or tokens. Decryption happens only in API source auth headers, {{secret.NAME}} placeholders, connectors, per-app email and app Google OAuth. The AI prompt only contains NAME configured: true/false.

Related

Was this helpful?