Managed Credentials
Varity automatically provides all the credentials your app needs. You never need to create third-party accounts or manually configure API keys.
How It Works
Section titled “How It Works”When you deploy with Varity, credentials are handled automatically at every stage:
-
Development: Shared development credentials are available so you can start building without any
.envsetup. -
Production: When you run
varitykit app deploy, the CLI fetches production credentials from Varity’s credential proxy and injects them into your deployed app’s environment. -
Runtime: Your deployed app reads its credentials from injected environment variables. Users never see API keys or configuration prompts.
Developer runs: varitykit app deploy |CLI fetches credentials from Varity's credential proxy |Credentials injected into build automatically |App deployed with everything configuredWhat’s Managed
Section titled “What’s Managed”Varity provides credentials for:
| Service | What It Covers | Developer Action |
|---|---|---|
| Database | Connection details for detected databases (Postgres, Redis, MongoDB, MySQL) | None required |
| File Storage | Uploads, CDN delivery | None required |
| Infrastructure | Network access, operations | None required |
Development Mode
Section titled “Development Mode”During local development, shared development credentials are available automatically, so your app can connect to a database without any setup. When Varity detects that your app needs a service (for example, a database client in your dependencies), it provisions that service on deploy and injects the connection details into your app’s environment.
Production Deployment
Section titled “Production Deployment”When you deploy, the CLI handles everything:
varitykit app deployOutput:
✓ Credentials: Auto-provided✓ Build complete✓ Deployed successfully✓ URL: https://your-app.varity.appNo manual credential setup required.
Security
Section titled “Security”- Rate-limited: Credential proxy enforces per-app rate limits
- API key authenticated: CLI uses embedded API keys to authenticate with the proxy
- Credentials never stored on disk: Injected at build time only
- Isolated per app: Each app receives its own credential scope
Verifying Credentials
Section titled “Verifying Credentials”Run the doctor command to verify your credential status:
varitykit doctorChecking environment variables... ✓ Credentials: Auto-provided ✓ Storage API: AccessibleNext Steps
Section titled “Next Steps”- Environment Variables: Variables you can customize
- Deploy Your App: Deploy with one command
- CLI Doctor: Verify your setup