Skip to content

Commit

Permalink
enable mitigation for CVE-2020-TBD (#862)
Browse files Browse the repository at this point in the history
Signed-off-by: Xuyang Tao <[email protected]>
  • Loading branch information
TAOXUY authored Oct 16, 2023
1 parent f06b698 commit beb45aa
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/auth/envoy_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"name": "static-runtime",
"staticLayer": {
"envoy.reloadable_features.prohibit_route_refresh_after_response_headers_sent": false,
"http.max_requests_per_io_cycle": 1,
"re2.max_program_size.error_level": 1000
}
}
Expand Down
1 change: 1 addition & 0 deletions examples/dynamic_routing/envoy_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"name": "static-runtime",
"staticLayer": {
"envoy.reloadable_features.prohibit_route_refresh_after_response_headers_sent": false,
"http.max_requests_per_io_cycle": 1,
"re2.max_program_size.error_level": 1000
}
}
Expand Down
1 change: 1 addition & 0 deletions examples/grpc_dynamic_routing/envoy_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"name": "static-runtime",
"staticLayer": {
"envoy.reloadable_features.prohibit_route_refresh_after_response_headers_sent": false,
"http.max_requests_per_io_cycle": 1,
"re2.max_program_size.error_level": 1000
}
}
Expand Down
1 change: 1 addition & 0 deletions examples/service_control/envoy_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"name": "static-runtime",
"staticLayer": {
"envoy.reloadable_features.prohibit_route_refresh_after_response_headers_sent": false,
"http.max_requests_per_io_cycle": 1,
"re2.max_program_size.error_level": 1000
}
}
Expand Down
1 change: 1 addition & 0 deletions examples/testdata/route_match/envoy_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"name": "static-runtime",
"staticLayer": {
"envoy.reloadable_features.prohibit_route_refresh_after_response_headers_sent": false,
"http.max_requests_per_io_cycle": 1,
"re2.max_program_size.error_level": 1000
}
}
Expand Down
1 change: 1 addition & 0 deletions examples/testdata/sidecar_backend/envoy_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"name": "static-runtime",
"staticLayer": {
"envoy.reloadable_features.prohibit_route_refresh_after_response_headers_sent": false,
"http.max_requests_per_io_cycle": 1,
"re2.max_program_size.error_level": 1000
}
}
Expand Down
2 changes: 2 additions & 0 deletions src/go/bootstrap/ads/bootstrap_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ func TestCreateBootstrapConfig(t *testing.T) {
"name": "static-runtime",
"staticLayer": {
"envoy.reloadable_features.prohibit_route_refresh_after_response_headers_sent": false,
"http.max_requests_per_io_cycle":1,
"re2.max_program_size.error_level":1000
}
}
Expand Down Expand Up @@ -172,6 +173,7 @@ func TestCreateBootstrapConfig(t *testing.T) {
"name": "static-runtime",
"staticLayer": {
"envoy.reloadable_features.prohibit_route_refresh_after_response_headers_sent": false,
"http.max_requests_per_io_cycle":1,
"re2.max_program_size.error_level":1000
}
}
Expand Down
6 changes: 6 additions & 0 deletions src/go/bootstrap/layer_runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ func CreateLayeredRuntime() *bootstrappb.LayeredRuntime {
BoolValue: false,
},
},
// Enable an Envoy vulnerability mitigation. For details, please see b/299661830.
"http.max_requests_per_io_cycle": {
Kind: &structpb.Value_NumberValue{
NumberValue: 1,
},
},
},
},
},
Expand Down

0 comments on commit beb45aa

Please sign in to comment.