You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs-website/router/configuration.mdx
+15-7Lines changed: 15 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2046,6 +2046,7 @@ The configuration for the security. The security is used to configure the securi
2046
2046
| SECURITY_BLOCK_PERSISTED_OPERATIONS_CONDITION | block_persisted_operations.condition | <Icon icon="square" /> | The [expression](/router/configuration/template-expressions) to evaluate if the operation should be blocked. | |
| | parser_limits.approximate_depth_limit | <Icon icon="square" /> | The approximate cumulative depth limit of a query, including fragments. Set to 0 to disable. | 200 |
2050
2051
| | parser_limits.total_fields_limit | <Icon icon="square" /> | The total number of fields the parser will allow. Set to 0 to disable. | 3500 |
2051
2052
| SECURITY_OPERATION_NAME_LENGTH_LIMIT | operation_name_length_limit | <Icon icon="square" /> | The maximum allowed length for the operation name. Set to 0 to disable. | 512 |
@@ -2070,7 +2071,8 @@ security:
2070
2071
enabled: true
2071
2072
size: 1024
2072
2073
complexity_limits:
2073
-
depth: # the equivalent of `security.depth_limit` prevoiusly
| | enabled | <Icon icon="square" /> | Enable the specific limit. If the value is true (default: false), and a valid limit value is set, the limit will be applied | false |
2149
-
| | limit | <Icon icon="square" /> | The limit amount for query. If the limit is 0, this limit isn't applied | 0 |
2150
-
| | ignore_persisted_operations | <Icon icon="square" /> | Disable the limit for persisted operations. Since persisted operations are stored intentionally, users may want to disable the limit to consciously allow nested persisted operations | false |
2148
+
The `mode` field controls enforcement versus measurement:
2149
+
2150
+
- `measure`: calculates complexity and reports it via telemetry but does not reject requests.
2151
+
- `enforce` (default): rejects requests that exceed limits.
| | enabled | <Icon icon="square" /> | Enable the specific limit. If the value is true (default: false), and a valid limit value is set, the limit will be applied. | false |
2157
+
| | limit | <Icon icon="square" /> | The limit amount for query. If the limit is 0, this limit is not applied. | 0 |
2158
+
| | ignore_persisted_operations | <Icon icon="square" /> | Disable the limit for persisted operations. Since persisted operations are stored intentionally, users may want to disable the limit to consciously allow nested persisted operations. | false |
"description": "The configuration for adding a max depth limit for query (how many nested levels you can have in a query). This limit prevents infinite querying, and also limits the size of the data returned. If the limit is 0, this limit isn't applied.",
0 commit comments