diff --git a/config/envoyconfig/bootstrap.go b/config/envoyconfig/bootstrap.go index 2e9429653..5deb7b6ea 100644 --- a/config/envoyconfig/bootstrap.go +++ b/config/envoyconfig/bootstrap.go @@ -134,6 +134,12 @@ func (b *Builder) BuildBootstrapLayeredRuntime() (*envoy_config_bootstrap_v3.Lay "overload": map[string]interface{}{ "global_downstream_max_connections": 50000, }, + "re2": map[string]any{ + "max_program_size": map[string]any{ + "error_level": 1024 * 1024, + "warn_level": 1024, + }, + }, }) if err != nil { return nil, fmt.Errorf("envoyconfig: failed to create layered runtime layer: %w", err) diff --git a/config/envoyconfig/bootstrap_test.go b/config/envoyconfig/bootstrap_test.go index 1823d85f7..857931104 100644 --- a/config/envoyconfig/bootstrap_test.go +++ b/config/envoyconfig/bootstrap_test.go @@ -43,6 +43,12 @@ func TestBuilder_BuildBootstrapLayeredRuntime(t *testing.T) { "staticLayer": { "overload": { "global_downstream_max_connections": 50000 + }, + "re2": { + "max_program_size": { + "error_level": 1048576, + "warn_level": 1024 + } } } }] }