-
Notifications
You must be signed in to change notification settings - Fork 27
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
In-place update is not working while using enfore_on_key_configs #54
Comments
@pranav-joshi-harness It seems like a provider or API issue. I tested it without module and here is what I found: |
@imrannayer It's only getting recreated while using below block: enforce_on_key = "" |
@pranav-joshi-harness Yes cos your |
@imrannayer I don't think so. Below are my observations:
|
@pranav-joshi-harness thanks for the reference. In all my examples for throttle, rate_based_ban and redirect |
@imrannayer I've already tried and facing same issue. |
@pranav-joshi-harness lets wait for the merge to release. |
@imrannayer Any ETA? |
@pranav-joshi-harness Provider released every Monday. I am not sure about the timeline for this Issue. It might be this Monday or next. |
@pranav-joshi-harness seems like fix will be part of next provider release 4.76 |
Issue fixed in 4.76 |
@pranav-joshi-harness Have you tested after the fix ? |
Yes. It's working now. |
I keep running on this issue even when there's no change between the current state and the desired state. Each "terraform apply" will propose to destroy/create each of my rules, be them "rate_based_ban", "throttle" or any other, only to replace them with the exact same config. For ref my versions are TF v1.3.0 / google provider v5.6.0 |
@adrian-pipolhub thats a provider issue. You can recreate by creating policy using resource directly. Can you plz create an issue for provider here |
While adding new or changing below rule, my entire policy is getting recreated instead of in-place update. This is only happening while using enforce_on_key_configs.
throttle_501 = {
action = "throttle"
priority = 502
description = "test-description"
expression = <<-EOT
(request.path.startsWith('/test/')) && (has(request.headers['x-api-key']) && request.headers['x-api-key'] != "") && !(request.path.contains('/test/123/'))
EOT
rate_limit_options = {
exceed_action = "deny(429)"
rate_limit_http_request_count = 1000
rate_limit_http_request_interval_sec = 60
enforce_on_key = ""
enforce_on_key_configs = [
{
enforce_on_key_type = "HTTP_HEADER"
enforce_on_key_name = "x-api-key"
}
]
}
}
The text was updated successfully, but these errors were encountered: