From 8a6e60e24f1eb8c1eccdb3fcfaec47cec2b1773e Mon Sep 17 00:00:00 2001 From: Arda TANRIKULU Date: Tue, 11 Mar 2025 17:01:58 +0300 Subject: [PATCH] fix(gateway/docs): jwt and sigv4 usage (#6608) --- .../content/gateway/other-features/security/aws-sigv4.mdx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/web/docs/src/content/gateway/other-features/security/aws-sigv4.mdx b/packages/web/docs/src/content/gateway/other-features/security/aws-sigv4.mdx index 241972855..164a7e490 100644 --- a/packages/web/docs/src/content/gateway/other-features/security/aws-sigv4.mdx +++ b/packages/web/docs/src/content/gateway/other-features/security/aws-sigv4.mdx @@ -188,7 +188,11 @@ import { defineConfig } from '@graphql-hive/gateway' export const gatewayConfig = defineConfig({ awsSigV4: { - incoming: true + incoming: { + enabled: (request, context) => + !('jwt' in context) && !request.headers.get('authorization')?.startsWith('Bearer') + // other options + } }, jwt: { reject: {