Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions router/pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions router/pkg/config/config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down
4 changes: 2 additions & 2 deletions router/pkg/config/testdata/config_defaults.json
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,8 @@
"ComplexityLimits": null,
"DepthLimit": null,
"ParserLimits": {
"ApproximateDepthLimit": 100,
"TotalFieldsLimit": 500
"ApproximateDepthLimit": 200,
"TotalFieldsLimit": 3500
},
"OperationNameLengthLimit": 512
},
Expand Down
4 changes: 2 additions & 2 deletions router/pkg/config/testdata/config_full.json
Original file line number Diff line number Diff line change
Expand Up @@ -672,8 +672,8 @@
},
"DepthLimit": null,
"ParserLimits": {
"ApproximateDepthLimit": 100,
"TotalFieldsLimit": 500
"ApproximateDepthLimit": 200,
"TotalFieldsLimit": 3500
},
"OperationNameLengthLimit": 2000
},
Expand Down
Loading