Skip to main content

Monitoring

Health Check

Worker Logs

Real-time logs and error traces are available in the Cloudflare dashboard:
  1. Go to Workers & Pages → select your keyflare Worker
  2. Open the Logs tab
  3. Filter by status, outcome, or time range

D1 Metrics

Available in the Cloudflare dashboard under Storage → D1:
  • Query count
  • Rows read/written
  • Database size
  • Error rate

Backup & Recovery

D1 Backup

Cloudflare automatically backs up D1. To export your database manually, run:
If you deployed a custom-named instance, replace keyflare with your Worker name (e.g., keyflare-prod). Store the resulting backup.sql file in a secure location outside of Cloudflare.

Master Key Backup

The MASTER_KEY is critical. Without it, all encrypted data is permanently unrecoverable.
Recommended storage:
  • Password manager (1Password, Bitwarden)
  • Printed in a physical safe
  • HSM for enterprise setups
Never store in:
  • Git repositories
  • Plain text files
  • CI environment variables
  • The D1 database itself

Disaster Recovery

Security Checklist

  • Master key backed up securely
  • First User Key stored in password manager
  • System keys created for CI/CD with minimal scopes
  • Custom domain with TLS enabled
  • Regular key rotation schedule established

Next Steps

Security Model

Understand the threat model and encryption boundaries.

API Keys

Create and manage scoped keys for CI/CD and services.