mirror of
https://github.com/pomerium/pomerium.git
synced 2025-04-29 10:26:29 +02:00
envoy: set re2 limits very high (#4187)
* envoy: set re2 limits very high * fix test
This commit is contained in:
parent
d00ef348eb
commit
083dbea392
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{}{
|
||||
"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)
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}] }
|
||||
|
|
Loading…
Add table
Reference in a new issue