-
Notifications
You must be signed in to change notification settings - Fork 630
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 #702
Comments
Are you able to re-run the command with |
Would you also be able to expand on this as the way I read this, it's conflicting information. You can't be running two different versions of the provider (2.7.0 and 1.18.2) at the same time. |
i'm seeing much the same thing. my api tokens have zone specific permissions. when doing:
fiddler captured:
it seems that the api calls are too generic when the api token only has a subset of access. a curl like this works with the same token:
is this sufficiently similar? not looking to cause duplication, and not looking to hijack... :-) |
@mrtristan Your issue could be similar but really should be a separate issue as it's not related to Pulumi from my understanding here. With your API calls, it's failing because we do the filtering in the application following fetching all the zones which is probably why your seeing the issue. We can probably look to do the filtering on Cloudflare's side to mitigate but we'll need to do some testing that we don't lose any functionality in doing so. |
yep. completely aligned. moving to new issue |
Hi! Cloudflare Terraform provider: v2.8.0 (the other version number above was the go package version from the provider repository) Here are the debug logs: https://gist.github.com/tornyairoland/6cd8ab4146851b97273545fa114af671 |
@tornyairoland the issue @mrtristan raised was moved to #707 and the fix is currently under review at #708. If you believe you're having the same issue, please follow that issue and checkout the PR if you're wanting to test out the fix. |
#708 has been merged so fetching a single zone shouldn't be causing these issues (providing Cloudflare permissions are correct). Feel free to pull the |
GATE-2043: Adds function to fetch teams rules values as string slice
Hi!
I was directed here from this pulumi-cloudflare issue.
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".
Terraform Version
The Pulumi Cloudflare provider is using the Cloudflare Terraform provider, v2.7.0, and
github.com/terraform-providers/terraform-provider-cloudflare v1.18.2-0.20200520193353-7dbdc13b06b6
.Affected Resource(s)
I tried it with
cloudflare_zone_settings_override
, but othercloudflare_*
resources could be affected.Terraform Configuration Files
Based on the pulumi code I tried to run:
I tried getting the cloudflare_zone_id programmatically and copying the Zone ID manually from Cloudflare as well.
Expected Behavior
Zone settings should have been applied as the token used for this has the permissions to do that.
Actual Behavior
Got the following error from Pulumi:
Steps to Reproduce
Important Factoids
?name=<zone name>
part returns an error from the Cloudflare API:References
Pulumi issue
The text was updated successfully, but these errors were encountered: