-
Notifications
You must be signed in to change notification settings - Fork 14
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
Insufficient permissions error with Zone-specific API tokens #82
Comments
It looks like the upstream provider used here simply attempts to list all the zones and only filters afterward (instead of passing names to the underlying API client): https://github.com/terraform-providers/terraform-provider-cloudflare/blob/master/cloudflare/data_source_zones.go#L68 I don't see an upstream issue open, so if you don't mind opening one there, that'd be awesome. Separately, I'll keep this open to track fixing the issue either from an upstream merge or submitting a patch upstream. |
Ran into this issue too - can only use the global API key for CloudFlare. Would much rather prefer to use a scoped key. |
@leezen |
Hi!
While trying to limit the access of our Cloudflare API Tokens, I have come across an error.
I have created a new Token, added permissions to "Edit" the "Zone Settings" and "Included" only that "Specific Zone".
Then I tried to add a new ZoneSettingsOverride, like this:
When running
pulumi up
I get the following error:I tried using the actual Zone ID from Cloudflare, instead of getting it with
cloudflare.getZones()
, and I get the same error.Using the same token and calling the Cloudflare API with curl works:
Additional info:
?name=<zone name>
part returns an error from the Cloudflare API:Something similar is mentioned in the Cloudflare forums: here
Package versions:
@pulumi/pulumi@1.14.0
@pulumi/cloudflare@1.9.0
The text was updated successfully, but these errors were encountered: