File tree Expand file tree Collapse file tree 1 file changed +3
-12
lines changed Expand file tree Collapse file tree 1 file changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -167,6 +167,9 @@ resource "google_compute_security_policy" "k8s_http_grpc_security_policy" {
167
167
168
168
advanced_options_config {
169
169
json_parsing = " STANDARD"
170
+ json_custom_config {
171
+ content_types = [" application/json" , " application/json; charset=utf-8" ]
172
+ }
170
173
}
171
174
172
175
adaptive_protection_config {
@@ -245,18 +248,6 @@ resource "google_compute_security_policy" "bucket_security_policy" {
245
248
project = var. project_id
246
249
type = " CLOUD_ARMOR_EDGE"
247
250
248
- rule {
249
- action = " deny(502)"
250
- priority = " 1"
251
-
252
- match {
253
- expr {
254
- expression = " int(request.headers['content-length']) > 1024"
255
- }
256
- }
257
- description = " Block all incoming read requests > 1KiB"
258
- }
259
-
260
251
rule {
261
252
action = " throttle"
262
253
priority = " 10"
You can’t perform that action at this time.
0 commit comments