v1.12.0Web App
•2 min read

Sync your keys to Cloudflare Workers

ApiVault × Cloudflare

You can now sync a project's keys to Cloudflare Workers.

To get started:

  1. Open your project's Integrations page and connect Cloudflare.
  2. Approve one or more Cloudflare accounts.
  3. Map each ApiVault environment to a Worker's Production secrets, Previews secrets, or Workers Builds variables.

#Choose the right target

TargetUsed byWhen changes take effect
ProductionSecrets available to the deployed Worker at runtimeThe sync deploys a new Worker version
PreviewsSecrets used by Worker PreviewsPreviews created after the sync
Build · ProductionSecret variables used by Workers Builds on the production branchThe next production build; ApiVault does not start it
Build · PreviewsSecret variables used by Workers Builds on other branchesThe next preview build; ApiVault does not start it

Syncs run automatically when keys change, on the retry sweep, and from Sync now, which shows a full diff preview. Production secret changes are batched into a single new Worker version deployment.

#What ApiVault changes

ApiVault only modifies or deletes the secrets it created on each target. Existing secrets or bindings with the same name are reported as conflicts, and values over 5 KiB are skipped.

Connecting more accounts under the same login adds them alongside existing connections without revoking access to linked Workers, and unused OAuth grants are revoked immediately.

Audit logs and exports record the Cloudflare account, Worker, and deployed version count, and you can filter them with ?integration=cloudflare.

Learn more in the Cloudflare integration guide.