StackExchange / dnscontrol

Infrastructure as code for DNS!
https://dnscontrol.org/
MIT License
3.07k stars 389 forks source link

Existing Cloudflare Workers Routes not detected? #2509

Open pro-sumer opened 1 year ago

pro-sumer commented 1 year ago

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

DNS Provider

Additional context n/a

pro-sumer commented 1 year ago

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 commented 1 year ago

CC @tresni (Cloudflare provider maintainer)