@@ -12,7 +12,6 @@ v2 includes several breaking changes and improvements over v1. The most signific
12
12
- [ Multipart Requests are Disabled by Default] ( #multipart-requests-are-disabled-by-default )
13
13
- [ Remove Mocking Plugin from built-ins] ( #remove-mocking-plugin-from-built-ins )
14
14
- [ Disabled Automatic Forking] ( #disabled-automatic-forking )
15
- - [ Sane Security Defaults] ( #sane-security-defaults )
16
15
- [ Load Schema on CLI Start] ( #load-schema-on-cli-start )
17
16
- [ Inflight Request Deduplication] ( #inflight-request-deduplication )
18
17
- [ Hive Logger] ( #hive-logger )
@@ -122,25 +121,6 @@ However, the CLI is a complete program that gets ran by the user; meaning, we do
122
121
the schema on-demand, we can load the schema on start! This helps catch schema issues early and
123
122
provides a better developer experience.
124
123
125
- ## Sane Security Defaults
126
-
127
- Hive Gateway v2 comes with improved security defaults to help protect your GraphQL API from common
128
- vulnerabilities. The following security measures are now enabled by default:
129
-
130
- - [ Maximum query depth] ( /docs/gateway/other-features/security/max-depth ) is set to 7
131
- - [ Maximum query tokens] ( /docs/gateway/other-features/security/max-tokens ) is set to 1000
132
-
133
- If you want to keep the v1 behavior, you can set these options to ` false ` in your configuration:
134
-
135
- ``` ts filename="gateway.config.ts"
136
- import { defineConfig } from ' @graphql-hive/gateway'
137
-
138
- export const gatewayConfig = defineConfig ({
139
- maxDepth: false ,
140
- maxTokens: false
141
- })
142
- ```
143
-
144
124
## Disabled Automatic Forking
145
125
146
126
We were previously forking workers automatically in v1 when detecting ` NODE_ENV=production ` ;
0 commit comments