Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Existing Cloudflare Workers Routes not detected? #2509

Open
pro-sumer opened this issue Aug 15, 2023 · 2 comments
Open

Existing Cloudflare Workers Routes not detected? #2509

pro-sumer opened this issue Aug 15, 2023 · 2 comments

Comments

@pro-sumer
Copy link

pro-sumer commented Aug 15, 2023

Describe the bug
Existing Cloudflare Worker Routes are not detected by DNSControl (happens both with routes added manually on the Cloudflare dashboard and routes added by DNSControl itself).

Results:

  1. "preview" always lists all (existing) worker routes defined by DNSControl as corrections
  2. "push" will try to push these "corrections", but fail with FAILURE! workers.api.error.duplicate_route (10020)

To Reproduce

  1. Create a Cloudflare Worker Route (either manually or using DNSControl)
  2. Put the same route in a CF_WORKER_ROUTE entry in your dnsconfig.js config file
  3. dnscontrol preview ...
  4. dnscontrol push...

Expected behavior

  • Existing worker routes are detected.
  • Only real changes are reported as corrections.
  • (Only) Those corrections can be pushed successfully.

DNS Provider

  • Cloudflare

Additional context
n/a

@pro-sumer
Copy link
Author

Out of curiosity I tried an old build with "diff1" instead of "diff2", but the issue is still present with that older diff/build.

@tlimoncelli
Copy link
Contributor

CC @tresni (Cloudflare provider maintainer)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants