fix(docs) Fix HMAC Upstream Signature option gateway option name (#6529)

This commit is contained in:
Valentin Cocaud 2025-02-17 17:43:32 +01:00 committed by GitHub
parent 792fb51fcc
commit 728b9b4804
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -59,7 +59,7 @@ the subgraphs validating the HMAC signature.
import { defineConfig } from '@graphql-hive/gateway'
export const gatewayConfig = defineConfig({
hmacUpstreamSignature: {
hmacSignature: {
secret: myHMACSecret // see step 1 for the secret key
}
// ...
@ -195,9 +195,9 @@ Here's an example of an incoming subgraph request with the HMAC signature:
## Configuration
### `hmacUpstreamSignature`
### `hmacSignature`
The `hmacUpstreamSignature` flag allows you to customize the HMAC signing behavior in the Hive
The `hmacSignature` flag allows you to customize the HMAC signing behavior in the Hive
Gateway:
- `secret`: The secret key used for HMAC signing and verification. It should be a random, opaque