Skip to content

plan_type hindering updates even though no pro features are used #161

@EugenMayer

Description

@EugenMayer

We have 3 pro, and about 20 free zones in cloudflare.

Now, when updating via octodns-cloudflare, updating any free with plan_type: pro will fail, and also updating any pro zone with plan_type: free will fail the same way (Authentication error)

What I ended up using is basically

processors:
  cloudflare-pro:
    class: octodns.processor.filter.NameAllowlistFilter
    allowlist:
      - prodomain1.tld
      - prodomain2.tld
      - prodomain2.tld
  cloudflare-free:
    class: octodns.processor.filter.NameRejectlistFilter
    rejectlist:
      - prodomain1.tld
      - prodomain2.tld
      - prodomain3.tld

zones:
  '*cloudflare-pro':
    lenient: true
    glob: '*'
    sources:
      - config_cloudflare
    processors:
      - cloudflare-pro
    targets:
      - cloudflare_pro
  '*cloudflare-free':
    glob: '*'
    lenient: true
    sources:
      - config_cloudflare
    processors:
      - cloudflare-free
    targets:
      - cloudflare_free

This seems cumbersome, and I ask myself if there is a better workarround for that? I assume using a scoped token for each (free/pro) could be the other way to go about it.

Anything else that coud be adviced?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions