octodns / octodns-cloudflare

Cloudflare DNS provider for octoDNS
MIT License
24 stars 17 forks source link

Cloudflare token - Unauthorized to access requested resource #60

Closed wociscz closed 11 months ago

wociscz commented 11 months ago

Hi, I'm trying to use cloudflare tokens (not email & global the global api key) and I am getting "Unauthorized to access requested resource" Token is valid.

From the doc: Required permissions for API Tokens are Zone:Read, DNS:Read and DNS:Key. But I am not able to set it like that. DNS:Read is in the token, but no option for DNS:Key and Zone:Read. If I configure it DNS:Read and DNS:Edit it won't work.

wociscz commented 11 months ago

Nevermind. It works. I overlooked proper dropdown options. Zone:Read, DNS:Read, DNS:Edit is sufficient for token to work.

For anyone with struggle, Cloudflare token config: image