← ClaudeAtlas

app-secretslisted

Guide for creating and using secrets in Fusebase Apps app backends. Use when: (1) An app backend needs API keys, passwords, or other sensitive config, (2) Creating secrets via the CLI, (3) Accessing secrets at runtime in backend code, (4) Deciding what should be a secret vs. a regular env var.
fusebase-dev/fusebase-flow · ★ 9 · AI & Automation · score 77
Install: claude install-skill fusebase-dev/fusebase-flow
# App Secrets Secrets are encrypted key-value pairs stored in Fusebase and injected into the app backend at runtime as environment variables. Use them for sensitive config that must not be committed to source control (API keys, passwords, tokens, etc.). **Secrets are only available in the app server** (`backend/` directory). They are NOT accessible in the browser/SPA — never try to read secrets from the frontend. ## Creating Secrets Use the CLI to register secret keys (values are set on the FuseBase website): ```bash fusebase secret create --app <appPath> --secret "KEY:description" [--secret ...] ``` - `appPath` — the app's `apps[].path` from `fusebase.json`; `--feature` is accepted as a deprecated alias for `--app` - Each `--secret` is `KEY` or `KEY:human-readable description` - Pass multiple `--secret` flags to create several secrets at once - This command only edits `fusebase.json` (it makes no network call and prints no URL). The keys are registered on the platform — with empty values — on the next `fusebase deploy` / `fusebase dev start`, and *that* command prints the URL where you fill in the actual values **Examples:** ```bash # Single secret fusebase secret create --app apps/my-app --secret "OPENAI_API_KEY:OpenAI API key" # Multiple secrets at once fusebase secret create --app apps/my-app \ --secret "STRIPE_SECRET_KEY:Stripe secret key" \ --secret "DB_PASSWORD:Database connection password" \ --secret "WEBHOOK_SECRET:Webhook signing secret" ``` Then run