@graphql-hive/gateway 2.10.8 → 2.11.0-alpha-b798cf7a8a589d4527ac8a4c7dbbfbe6284a7d74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +67 -0
- package/dist/bin.cjs +1 -1
- package/dist/bin.js +1 -1
- package/package.json +13 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,72 @@
|
|
|
1
1
|
# @graphql-hive/gateway
|
|
2
2
|
|
|
3
|
+
## 2.11.0-alpha-b798cf7a8a589d4527ac8a4c7dbbfbe6284a7d74
|
|
4
|
+
### Minor Changes
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
- [#2328](https://github.com/graphql-hive/gateway/pull/2328) [`5fc2d7b`](https://github.com/graphql-hive/gateway/commit/5fc2d7bfafb3414e1ebda1ea3ce46c109a9586fc) Thanks [@enisdenjo](https://github.com/enisdenjo)! - AWS IAM authentication for Redis cache
|
|
9
|
+
|
|
10
|
+
IAM auth for ElastiCache/MemoryDB works by generating a short-lived SigV4 presigned URL (valid up to 15 minutes) and using it as the Redis AUTH password. The token is signed against the `elasticache` (or `memorydb`) service using the ambient AWS credentials resolved via the standard credential chain (env vars, `~/.aws/credentials`, EC2 instance role, ECS task role, etc.).
|
|
11
|
+
|
|
12
|
+
The `@smithy/signature-v4` and `@aws-sdk/credential-providers` packages are dynamically imported
|
|
13
|
+
only when `iamAuth` is configured, so gateways not using IAM auth pay zero cost.
|
|
14
|
+
|
|
15
|
+
## Usage
|
|
16
|
+
|
|
17
|
+
Install the optional peer dependencies:
|
|
18
|
+
|
|
19
|
+
```sh
|
|
20
|
+
yarn add @smithy/signature-v4 @aws-sdk/credential-providers
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
```ts
|
|
24
|
+
import { defineConfig } from '@graphql-hive/gateway';
|
|
25
|
+
|
|
26
|
+
export const gatewayConfig = defineConfig({
|
|
27
|
+
cache: {
|
|
28
|
+
type: 'redis',
|
|
29
|
+
host: 'my-cluster.abc123.0001.use1.cache.amazonaws.com',
|
|
30
|
+
port: '6379',
|
|
31
|
+
username: 'iam-user-01',
|
|
32
|
+
tls: true,
|
|
33
|
+
iamAuth: {
|
|
34
|
+
// AWS region where the cluster is deployed
|
|
35
|
+
region: 'us-east-1',
|
|
36
|
+
// cluster name used as the host in the SigV4 presigned URL
|
|
37
|
+
clusterName: 'my-cluster',
|
|
38
|
+
// IAM-enabled Redis username - must match the ElastiCache/MemoryDB user id exactly
|
|
39
|
+
userId: 'iam-user-01',
|
|
40
|
+
// AWS service to sign for - 'elasticache' (default) or 'memorydb'
|
|
41
|
+
serviceName: 'elasticache',
|
|
42
|
+
// token expiry in seconds - maximum 900 (15 minutes), defaults to 900
|
|
43
|
+
tokenExpirySeconds: 900,
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
});
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
https://docs.aws.amazon.com/AmazonElastiCache/latest/dg/auth-iam.html
|
|
50
|
+
|
|
51
|
+
### Patch Changes
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
- [#2328](https://github.com/graphql-hive/gateway/pull/2328) [`2708467`](https://github.com/graphql-hive/gateway/commit/2708467855267a69d8ce6da783a5ca27d2bd222e) Thanks [@enisdenjo](https://github.com/enisdenjo)! - dependencies updates:
|
|
56
|
+
|
|
57
|
+
- Updated dependency [`@graphql-mesh/cache-redis@0.106.0-alpha-20260721125616-85ceb3ca7e8b6092a6bf4e389e8c7d00ab0e59d9` ↗︎](https://www.npmjs.com/package/@graphql-mesh/cache-redis/v/0.106.0) (from `^0.105.22`, in `dependencies`)
|
|
58
|
+
- Updated dependency [`@graphql-mesh/types@0.105.0-alpha-20260721125616-85ceb3ca7e8b6092a6bf4e389e8c7d00ab0e59d9` ↗︎](https://www.npmjs.com/package/@graphql-mesh/types/v/0.105.0) (from `^0.104.28`, in `dependencies`)
|
|
59
|
+
- Updated dependencies [[`8ea51cc`](https://github.com/graphql-hive/gateway/commit/8ea51cce32dd46c69012e414bdfeda5330b8c418), [`8ea51cc`](https://github.com/graphql-hive/gateway/commit/8ea51cce32dd46c69012e414bdfeda5330b8c418), [`8ea51cc`](https://github.com/graphql-hive/gateway/commit/8ea51cce32dd46c69012e414bdfeda5330b8c418), [`8ea51cc`](https://github.com/graphql-hive/gateway/commit/8ea51cce32dd46c69012e414bdfeda5330b8c418), [`8ea51cc`](https://github.com/graphql-hive/gateway/commit/8ea51cce32dd46c69012e414bdfeda5330b8c418), [`8ea51cc`](https://github.com/graphql-hive/gateway/commit/8ea51cce32dd46c69012e414bdfeda5330b8c418), [`8ea51cc`](https://github.com/graphql-hive/gateway/commit/8ea51cce32dd46c69012e414bdfeda5330b8c418), [`8ea51cc`](https://github.com/graphql-hive/gateway/commit/8ea51cce32dd46c69012e414bdfeda5330b8c418)]:
|
|
60
|
+
- @graphql-hive/gateway-runtime@2.10.4-alpha-b798cf7a8a589d4527ac8a4c7dbbfbe6284a7d74
|
|
61
|
+
- @graphql-hive/plugin-opentelemetry@1.4.40-alpha-b798cf7a8a589d4527ac8a4c7dbbfbe6284a7d74
|
|
62
|
+
- @graphql-mesh/hmac-upstream-signature@2.0.14-alpha-b798cf7a8a589d4527ac8a4c7dbbfbe6284a7d74
|
|
63
|
+
- @graphql-mesh/plugin-jwt-auth@2.0.13-alpha-b798cf7a8a589d4527ac8a4c7dbbfbe6284a7d74
|
|
64
|
+
- @graphql-mesh/plugin-prometheus@2.1.56-alpha-b798cf7a8a589d4527ac8a4c7dbbfbe6284a7d74
|
|
65
|
+
- @graphql-mesh/transport-http@1.1.4-alpha-b798cf7a8a589d4527ac8a4c7dbbfbe6284a7d74
|
|
66
|
+
- @graphql-mesh/transport-http-callback@1.0.24-alpha-b798cf7a8a589d4527ac8a4c7dbbfbe6284a7d74
|
|
67
|
+
- @graphql-mesh/transport-ws@2.0.24-alpha-b798cf7a8a589d4527ac8a4c7dbbfbe6284a7d74
|
|
68
|
+
- @graphql-hive/plugin-aws-sigv4@2.0.58-alpha-b798cf7a8a589d4527ac8a4c7dbbfbe6284a7d74
|
|
69
|
+
|
|
3
70
|
## 2.10.8
|
|
4
71
|
### Patch Changes
|
|
5
72
|
|
package/dist/bin.cjs
CHANGED
|
@@ -32,7 +32,7 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
|
32
32
|
|
|
33
33
|
var module__default = /*#__PURE__*/_interopDefault(module$1);
|
|
34
34
|
|
|
35
|
-
globalThis.__VERSION__ = '2.
|
|
35
|
+
globalThis.__VERSION__ = '2.11.0-alpha-b798cf7a8a589d4527ac8a4c7dbbfbe6284a7d74';
|
|
36
36
|
module__default.default.register("@graphql-hive/importer/hooks", {
|
|
37
37
|
parentURL: (
|
|
38
38
|
// @ts-ignore bob will complain when bundling for cjs
|
package/dist/bin.js
CHANGED
|
@@ -26,7 +26,7 @@ import '@graphql-tools/code-file-loader';
|
|
|
26
26
|
import '@graphql-tools/graphql-file-loader';
|
|
27
27
|
import '@graphql-tools/load';
|
|
28
28
|
|
|
29
|
-
globalThis.__VERSION__ = '2.
|
|
29
|
+
globalThis.__VERSION__ = '2.11.0-alpha-b798cf7a8a589d4527ac8a4c7dbbfbe6284a7d74';
|
|
30
30
|
module$1.register("@graphql-hive/importer/hooks", {
|
|
31
31
|
parentURL: (
|
|
32
32
|
// @ts-ignore bob will complain when bundling for cjs
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-hive/gateway",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.11.0-alpha-b798cf7a8a589d4527ac8a4c7dbbfbe6284a7d74",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -95,30 +95,30 @@
|
|
|
95
95
|
"@escape.tech/graphql-armor-block-field-suggestions": "^3.0.0",
|
|
96
96
|
"@escape.tech/graphql-armor-max-depth": "^2.4.2",
|
|
97
97
|
"@escape.tech/graphql-armor-max-tokens": "^2.5.0",
|
|
98
|
-
"@graphql-hive/gateway-runtime": "
|
|
98
|
+
"@graphql-hive/gateway-runtime": "2.10.4-alpha-b798cf7a8a589d4527ac8a4c7dbbfbe6284a7d74",
|
|
99
99
|
"@graphql-hive/importer": "^2.0.0",
|
|
100
100
|
"@graphql-hive/logger": "^1.1.1",
|
|
101
|
-
"@graphql-hive/plugin-aws-sigv4": "
|
|
102
|
-
"@graphql-hive/plugin-opentelemetry": "
|
|
101
|
+
"@graphql-hive/plugin-aws-sigv4": "2.0.58-alpha-b798cf7a8a589d4527ac8a4c7dbbfbe6284a7d74",
|
|
102
|
+
"@graphql-hive/plugin-opentelemetry": "1.4.40-alpha-b798cf7a8a589d4527ac8a4c7dbbfbe6284a7d74",
|
|
103
103
|
"@graphql-hive/pubsub": "^2.2.1",
|
|
104
104
|
"@graphql-hive/render-laboratory": "^0.1.10",
|
|
105
105
|
"@graphql-hive/signal": "^2.0.0",
|
|
106
106
|
"@graphql-mesh/cache-cfw-kv": "^0.105.35",
|
|
107
107
|
"@graphql-mesh/cache-localforage": "^0.105.36",
|
|
108
|
-
"@graphql-mesh/cache-redis": "
|
|
108
|
+
"@graphql-mesh/cache-redis": "0.106.0-alpha-20260721125616-85ceb3ca7e8b6092a6bf4e389e8c7d00ab0e59d9",
|
|
109
109
|
"@graphql-mesh/cache-upstash-redis": "^0.1.31",
|
|
110
110
|
"@graphql-mesh/cross-helpers": "^0.4.13",
|
|
111
|
-
"@graphql-mesh/hmac-upstream-signature": "
|
|
111
|
+
"@graphql-mesh/hmac-upstream-signature": "2.0.14-alpha-b798cf7a8a589d4527ac8a4c7dbbfbe6284a7d74",
|
|
112
112
|
"@graphql-mesh/plugin-http-cache": "^0.105.37",
|
|
113
113
|
"@graphql-mesh/plugin-jit": "^0.2.35",
|
|
114
|
-
"@graphql-mesh/plugin-jwt-auth": "
|
|
115
|
-
"@graphql-mesh/plugin-prometheus": "
|
|
114
|
+
"@graphql-mesh/plugin-jwt-auth": "2.0.13-alpha-b798cf7a8a589d4527ac8a4c7dbbfbe6284a7d74",
|
|
115
|
+
"@graphql-mesh/plugin-prometheus": "2.1.56-alpha-b798cf7a8a589d4527ac8a4c7dbbfbe6284a7d74",
|
|
116
116
|
"@graphql-mesh/plugin-snapshot": "^0.104.36",
|
|
117
117
|
"@graphql-mesh/string-interpolation": "^0.5.17",
|
|
118
|
-
"@graphql-mesh/transport-http": "
|
|
119
|
-
"@graphql-mesh/transport-http-callback": "
|
|
120
|
-
"@graphql-mesh/transport-ws": "
|
|
121
|
-
"@graphql-mesh/types": "
|
|
118
|
+
"@graphql-mesh/transport-http": "1.1.4-alpha-b798cf7a8a589d4527ac8a4c7dbbfbe6284a7d74",
|
|
119
|
+
"@graphql-mesh/transport-http-callback": "1.0.24-alpha-b798cf7a8a589d4527ac8a4c7dbbfbe6284a7d74",
|
|
120
|
+
"@graphql-mesh/transport-ws": "2.0.24-alpha-b798cf7a8a589d4527ac8a4c7dbbfbe6284a7d74",
|
|
121
|
+
"@graphql-mesh/types": "0.105.0-alpha-20260721125616-85ceb3ca7e8b6092a6bf4e389e8c7d00ab0e59d9",
|
|
122
122
|
"@graphql-mesh/utils": "^0.104.38",
|
|
123
123
|
"@graphql-tools/code-file-loader": "^8.1.26",
|
|
124
124
|
"@graphql-tools/graphql-file-loader": "^8.1.6",
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
"ws": "^8.21.0"
|
|
148
148
|
},
|
|
149
149
|
"devDependencies": {
|
|
150
|
-
"@graphql-mesh/transport-common": "
|
|
150
|
+
"@graphql-mesh/transport-common": "1.0.20-alpha-b798cf7a8a589d4527ac8a4c7dbbfbe6284a7d74",
|
|
151
151
|
"@graphql-mesh/transport-soap": "^0.10.42",
|
|
152
152
|
"@graphql-tools/executor": "^1.4.13",
|
|
153
153
|
"@rollup/plugin-commonjs": "^29.0.0",
|