-
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
add resource 'api_token' and data source 'permission_groups' #862
Conversation
marking as draft as this isn't yet ready for review |
What is required in order for this to be ready for review? |
Let's start with a pull request description as to what the change is and any context associated with it. From there we need to:
Once we get those things underway, we can start looking at the code itself. Doing these things before someone spends time reviewing the code and approach cuts down on the unnecessary back and forth or scribbling the metaphorical red ink all of the PR. |
Once you remove your changes to |
I think this PR can be reviewed (and docs linted) now:
|
I hope I've got all proposed changes done. |
Nearly there! It looks like the test state isn't matching up with the assertions right now.
|
Had to make some if checks. And to change |
nice one! looks like we're all green on the integration test suite.
|
Datasource is also green now after fixing the ID
|
Thanks for the persistence on this one @UrosSimovic! Appreciate your contribution here 👍 |
In the initial PR for adding API token support to Terraform (cloudflare#862), an assumption was made that empty `condition` blocks would allow all traffic; this is incorrect and puts the end user in a state where no traffic is allowed. To address this, we need to conditionally build the API token based on what fields are non-zero values. This requires a bit of a rewrite as this assumption ran deep into the methods and the structure of the code itself. While this increases the test coverage, we do now have a restriction in the API itself whereby if you create an API token with IP restrictions and then wish to remove them, you cannot -- you must recreate the token. This issue is outside the scope of this work so I'll leave it as a known factor for now. Closes cloudflare#897
No description provided.