Skip to content
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

Support allowed modes for WAF Rules #550

Merged

Conversation

xaf
Copy link
Contributor

@xaf xaf commented Dec 3, 2019

This was causing an issue when using WAF Rules that did not use the
'default' mode but the on/off approach. This fixes that by switching
the default value to reset depending in the available values in the
AllowedModes field.

This also returns the AllowedModes when using the WAF rules data source, as the allowed_modes parameter in each item of the rules list, in order for users to know which modes can be used.

This was causing an issue when using WAF Rules that did not use the
'default' mode but the on/off approach. This fixes that by switching
the default value to reset depending in the available values in the
`AllowedModes` field.
@ghost ghost added size/M kind/documentation Categorizes issue or PR as related to documentation. labels Dec 3, 2019
@patryk
Copy link
Contributor

patryk commented Dec 5, 2019

Thanks @xaf !

@patryk patryk merged commit 1565ae8 into cloudflare:master Dec 5, 2019
@xaf xaf deleted the xaf/waf_rules_propagate_available_modes branch December 11, 2019 15:46
boekkooi-lengoo pushed a commit to boekkooi-lengoo/terraform-provider-cloudflare that referenced this pull request Feb 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/documentation Categorizes issue or PR as related to documentation. size/M
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants