- A Cloudflare Worker named
keyflare- A Master key secret deployed within that Worker
- A Cloudflare D1 database named
keyflare
Using a custom Worker
You can deploy custom Keyflare instances (e.g., for different environments or teams) using the--name flag:
- Worker (e.g.,
keyflare-prod.workers.dev) - D1 database
- Master key secret
Instance names must start with a lowercase letter, contain only lowercase letters, numbers, and hyphens, and be 63 characters or less.
Using an Existing D1 Database
If you have a pre-existing D1 database (e.g., from a previous Keyflare instance or migration), you can bind to it using the--d1id flag:
- Build an ephemeral config with the provided
database_id - Deploy the worker bound to that database
- Run migrations against it (idempotent)
- Migrating from another Keyflare instance
- Restoring from a backup
- Sharing a database across worker redeployments
Next Steps
Security & Backup
Back up your master key and define your recovery strategy.
Custom Domains
Serve your Keyflare instance from your own domain.
