-
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
OWASP ruleset override fails because of missing "enabled" attribute. #1403
Comments
have you tried this without the dynamics? I think we have a test case covering this so it should work. |
@jacobbednarz I tested hard coding the rule override without dynamics and experience the same behavior with the missing "enabled" attribute. |
can you please update your reproduction test case to not use dynamics? I generally don’t use them for debugging as they have a class of their own issues. |
I have updated the test case above with just a simple rule override. Deleting the OWASP ruleset to clean out any leftover configuration and re-adding it to the zone with this one override is still failing. |
Updates the check for whether or not to populate the `enabled` flag on category/rule based overrides to use the `GetOkExists` method (not recommended due to undocumented edge cases) to check the existence before converting the pointer to a value. Closes #1403
Updates the check for whether or not to populate the `enabled` flag on category/rule based overrides to use the `GetOkExists` method (not recommended due to undocumented edge cases) to check the existence before converting the pointer to a value. Closes #1403
arrgh, thanks for this @brandonstrohmeyer. it's Yet Another tristate bool issue 😢 i've updated this in #1405 which i've confirmed is fixed with a test case covering it. btw, the API throws an error with "010cc6b1d9ed4cdc82b2dc8dce6f319a" disabled 🤷 |
Updates the check for whether or not to populate the `enabled` flag on category/rule based overrides to use the `GetOkExists` method (not recommended due to undocumented edge cases) to check the existence before converting the pointer to a value. Closes #1403
Updates the check for whether or not to populate the `enabled` flag on category/rule based overrides to use the `GetOkExists` method (not recommended due to undocumented edge cases) to check the existence before converting the pointer to a value. Closes #1403
Confirmation
Terraform and Cloudflare provider version
❯ terraform -v
Terraform v1.1.2
on darwin_amd64
Affected resource(s)
cloudflare_ruleset
Terraform configuration files
Debug output
Panic output
No response
Expected output
In the module call that contains the above resource call, I am configuring a rule override to disable a specific OWASP rule:
I am expecting this rule to be disabled.
Actual output
As shown in the above debug output, the
enabled
attribute is not being set which in turn causes the following error:Steps to reproduce
Additional factoids
References
No response
The text was updated successfully, but these errors were encountered: