diff --git a/router/pkg/config/config.go b/router/pkg/config/config.go index afb6eb1a1a..7ce0ecb156 100644 --- a/router/pkg/config/config.go +++ b/router/pkg/config/config.go @@ -412,8 +412,8 @@ type SecurityConfiguration struct { } type ParserLimitsConfiguration struct { - ApproximateDepthLimit int `yaml:"approximate_depth_limit,omitempty" envDefault:"100"` // 0 means disabled - TotalFieldsLimit int `yaml:"total_fields_limit,omitempty" envDefault:"500"` // 0 means disabled + ApproximateDepthLimit int `yaml:"approximate_depth_limit,omitempty" envDefault:"200"` // 0 means disabled + TotalFieldsLimit int `yaml:"total_fields_limit,omitempty" envDefault:"3500"` // 0 means disabled } type QueryDepthConfiguration struct { diff --git a/router/pkg/config/config.schema.json b/router/pkg/config/config.schema.json index 973c65eab9..2cc435b214 100644 --- a/router/pkg/config/config.schema.json +++ b/router/pkg/config/config.schema.json @@ -2500,13 +2500,13 @@ "approximate_depth_limit": { "type": "integer", "description": "The approximate cumulative depth limit of a query, including fragments. Set to 0 to disable.", - "default": 100, + "default": 200, "minimum": 0 }, "total_fields_limit": { "type": "integer", "description": "The total number of fields the parser will allow. Set to 0 to disable.", - "default": 500, + "default": 3500, "minimum": 0 } } diff --git a/router/pkg/config/testdata/config_defaults.json b/router/pkg/config/testdata/config_defaults.json index b045f5b538..25919658e4 100644 --- a/router/pkg/config/testdata/config_defaults.json +++ b/router/pkg/config/testdata/config_defaults.json @@ -313,8 +313,8 @@ "ComplexityLimits": null, "DepthLimit": null, "ParserLimits": { - "ApproximateDepthLimit": 100, - "TotalFieldsLimit": 500 + "ApproximateDepthLimit": 200, + "TotalFieldsLimit": 3500 }, "OperationNameLengthLimit": 512 }, diff --git a/router/pkg/config/testdata/config_full.json b/router/pkg/config/testdata/config_full.json index 3bb087c26f..583709b097 100644 --- a/router/pkg/config/testdata/config_full.json +++ b/router/pkg/config/testdata/config_full.json @@ -672,8 +672,8 @@ }, "DepthLimit": null, "ParserLimits": { - "ApproximateDepthLimit": 100, - "TotalFieldsLimit": 500 + "ApproximateDepthLimit": 200, + "TotalFieldsLimit": 3500 }, "OperationNameLengthLimit": 2000 },