
Step 1: Clone the starter project
Step 2: Create your Doppler project
Step 3: Add your secrets to Doppler
Step 4: Cloudflare local development with Doppler
Step 5: Deploy the application and sync secrets to Cloudflare
Step 6: Set up GitHub Actions for CI/CD
Step 7: Rotating secrets
Step 8: Team collaboration
Troubleshooting common issues
What you've accomplished
The sections below outline the most common problems you might encounter while integrating Cloudflare Workers and Doppler and how to diagnose and resolve them quickly.
This usually means your .dev.vars file is missing or out of sync with the current values in Doppler. Regenerate the file by pulling the latest secrets directly from Doppler:
After regenerating the file, restart your development server so the updated environment variables are picked up.
Service tokens are scoped to a specific configuration. If you're seeing authentication errors, verify that the token was created for the correct configuration, such as prd for production. Next, confirm that DOPPLER_TOKEN is correctly set in your CI/CD secrets. If issues persist, try regenerating the token and updating it in your pipeline.
If you have a large number of secrets(50 or more), you may encounter Cloudflare rate limits during sync. Wrangler's bulk upload handles this gracefully in most cases, but if you see rate-limit errors, you can reduce the upload pace by lowering the batch size:
This command syncs production secrets from Doppler to Cloudflare in smaller batches, which reduces the number of requests sent at once and helps avoid hitting rate limits.
Trusted by the world’s best DevOps and security teams. Doppler is the secrets manager developers love.
