mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-06 10:21:05 +02:00
envoy: set re2 limits very high (#4187)
* envoy: set re2 limits very high * fix test
This commit is contained in:
parent
45a577d736
commit
094fa6ef1d
2 changed files with 12 additions and 0 deletions
|
@ -134,6 +134,12 @@ func (b *Builder) BuildBootstrapLayeredRuntime() (*envoy_config_bootstrap_v3.Lay
|
||||||
"overload": map[string]interface{}{
|
"overload": map[string]interface{}{
|
||||||
"global_downstream_max_connections": 50000,
|
"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 {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("envoyconfig: failed to create layered runtime layer: %w", err)
|
return nil, fmt.Errorf("envoyconfig: failed to create layered runtime layer: %w", err)
|
||||||
|
|
|
@ -43,6 +43,12 @@ func TestBuilder_BuildBootstrapLayeredRuntime(t *testing.T) {
|
||||||
"staticLayer": {
|
"staticLayer": {
|
||||||
"overload": {
|
"overload": {
|
||||||
"global_downstream_max_connections": 50000
|
"global_downstream_max_connections": 50000
|
||||||
|
},
|
||||||
|
"re2": {
|
||||||
|
"max_program_size": {
|
||||||
|
"error_level": 1048576,
|
||||||
|
"warn_level": 1024
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}] }
|
}] }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue