-
Notifications
You must be signed in to change notification settings - Fork 632
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 support for configuring authenticated origin pulls #749
Add support for configuring authenticated origin pulls #749
Conversation
- AOP resource will be used for all forms of AOP, here we toggle global AOP
- This resource functions as a mechanism to upload certificates to the per-zone and per-hostname AOP endpoints which can be later referenced by the AOP resource by ID
…chanisms - AopType specifies which API the certificate should be uploaded to - You cannot edit certificates - Any changes must result in a reupload
- API is selected based on provided parameters
Tests will fail until cloudflare/cloudflare-go#511 is merged |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few minor nitpicks/questions from me but overall looks good!
Could you also add the website documentation to this PR?
cloudflare/resource_cloudflare_authenticated_origin_pulls_certificate.go
Outdated
Show resolved
Hide resolved
cloudflare/resource_cloudflare_authenticated_origin_pulls_certificate.go
Outdated
Show resolved
Hide resolved
cloudflare/resource_cloudflare_authenticated_origin_pulls_certificate.go
Outdated
Show resolved
Hide resolved
cloudflare/resource_cloudflare_authenticated_origin_pulls_certificate_test.go
Outdated
Show resolved
Hide resolved
cloudflare/resource_cloudflare_authenticated_origin_pulls_certificate_test.go
Outdated
Show resolved
Hide resolved
Define one, rather than three times Co-authored-by: Jacob Bednarz <[email protected]>
https://github.com/golang/go/wiki/CodeReviewComments#error-strings Co-authored-by: Jacob Bednarz <[email protected]>
Co-authored-by: Jacob Bednarz <[email protected]>
Oh and good catch about docs I completely forgot they were a thing -- plus this resource is pretty confusing without some supporting docs about how to use it! |
…of github.com:dhaynespls/terraform-provider-cloudflare into dhaynespls/736-add-authenticated-origin-pulls-support
I will also look into importing as there is a use case where one has already configured all of the different types of AOP / has uploaded certificates that they'd like to import into terraform. |
- Still need to add sections on importing when that is done.
@jacobbednarz Ready for review again! Though I'm not sure what's going on with the website build 🤔 |
If you pull in the latest master, the |
This resource is restricted to one at a time in the zone and if we run these tests, they collide resulting in a validation error. Running them sequentially is slower but reliable.
Hope you don't mind @dhaynespls but I pushed up a couple of commits that addressed some issues in the integration suite where parallelisation of the certificate creation tests collided as there is a one per zone restriction on it. With the fixes, the integration suite for these changes is ✅ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks for the persisted effort here @dhaynespls! You rock!
@patryk @jacobbednarz this MR appears to have removed the cloudflare_custom_hostname resource. |
Restore custom_hostname resource accidentally removed in #749
Good catch thank you @cdloh. I went ahead and merged as it's just a single line change in |
# By Jacob Bednarz (3) and others # Via GitHub (4) and Callum Loh (1) * master: Restore custom_hostname resource accidentally removed in cloudflare#749 Add support for configuring authenticated origin pulls (cloudflare#749) Update CHANGELOG.md ci: fix website-test Update CHANGELOG.md Add more info on cloudflare_zones data source breaking change Compare firewall descriptions after converting unicode + HTML entities Update CHANGELOG.md Support Spectrum applications with port ranges # Conflicts: # cloudflare/provider.go
# By Jacob Bednarz (3) and others # Via GitHub (4) and Callum Loh (1) * master: Restore custom_hostname resource accidentally removed in cloudflare#749 Add support for configuring authenticated origin pulls (cloudflare#749) Update CHANGELOG.md ci: fix website-test Update CHANGELOG.md Add more info on cloudflare_zones data source breaking change Compare firewall descriptions after converting unicode + HTML entities Update CHANGELOG.md Support Spectrum applications with port ranges # Conflicts: # cloudflare/provider.go
* WDAPI-645 add device posture integration api * Update device_posture_rule.go Co-authored-by: Jacob Bednarz <[email protected]> Co-authored-by: andrew <[email protected]> Co-authored-by: Jacob Bednarz <[email protected]>
high level schema:
Through these two resources, and combinations of their attributes we can allow for all AOP endpoints to be hit based on the data provided.
Closes #736