-
Notifications
You must be signed in to change notification settings - Fork 626
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 aegis option to zone settings #4816
base: master
Are you sure you want to change the base?
Conversation
Oops! It looks like no changelog entry is attached to this PR. Please include a release note as described in https://github.com/cloudflare/terraform-provider-cloudflare/blob/master/contributing/changelog-process.md. Example:
If you do not require a release note to be included and you have permission, please add the |
there is a bunch of failures related to |
I believe this should work fine with GET/PATCH. the problem is with the DELETE since that's not standard for other zone settings, usually they are on/off that are set via PATCH. @jacobbednarz any idea on how I should go about this? |
yep - being worked on and doesn't have anything to do with this.
you have two options. either update https://github.com/cloudflare/terraform-provider-cloudflare/blob/master/internal/sdkv2provider/resource_cloudflare_zone_settings_override.go#L397 to handle this special case or 2) update the service to support turning it off via PATCH. given this is breaking the conventions, i would probably go with option 2 as that will also allow it to work on the code gen version. |
if we were to go with this option, what is the convention for doing this with a feature that is not "on/off" / "true/false". For example, should I make it so that setting pool_id to
to delete the value, or maybe even:
|
yep! usually, it is the falsey value of the attribute. ideally, we'd support straight DELETE methods instead however, given the age of the zone setting conventions i'm unsure what value that would bring today. |
Aegis setting
Aegis provides dedicated egress IPs (from Cloudflare to your origin) for your layer 7 WAF and CDN services. The egress IPs are reserved exclusively for your account so that you can increase your origin security by only allowing traffic from a small list of IP addresses.
The api endpoint and expected input/output can be seen below:
Get Aegis setting value
Change aegis setting value
Delete Aegis setting value (i.e disable Aegis)