-
Notifications
You must be signed in to change notification settings - Fork 272
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HTTP/2 Cleartext protocol (h2c) support for subgraph connections (#3852)
Fix #3535 The router can now connect to subgraphs over HTTP/2 Cleartext, which uses the HTTP/2 binary protocol directly over TCP without TLS. To activate it, set the `experimental_http2` option to `http2_only`. --------- Co-authored-by: Edward Huang <[email protected]> Co-authored-by: Jeremy Lempereur <[email protected]>
- Loading branch information
1 parent
20b727b
commit 7d45877
Showing
10 changed files
with
293 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
### HTTP/2 Cleartext protocol (h2c) support for subgraph connections ([Issue #3535](https://github.com/apollographql/router/issues/3535)) | ||
|
||
The router can now connect to subgraphs over HTTP/2 Cleartext, which uses the HTTP/2 binary protocol directly over TCP without TLS. To activate it, set the `experimental_http2` option to `http2_only`. | ||
|
||
By [@Geal](https://github.com/Geal) in https://github.com/apollographql/router/pull/3852 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
apollo-router/src/configuration/migrations/0011-experimental-http2.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
description: Move experimental_enable_http2 to experimental_http2 | ||
actions: | ||
- type: change | ||
path: traffic_shaping.all.experimental_enable_http2 | ||
from: true | ||
to: enable | ||
- type: change | ||
path: traffic_shaping.all.experimental_enable_http2 | ||
from: false | ||
to: disable | ||
- type: move | ||
from: traffic_shaping.all.experimental_enable_http2 | ||
to: traffic_shaping.all.experimental_http2 | ||
|
||
- type: change | ||
path: traffic_shaping.subgraphs..experimental_enable_http2 | ||
from: true | ||
to: enable | ||
- type: change | ||
path: traffic_shaping.subgraphs..experimental_enable_http2 | ||
from: false | ||
to: disable | ||
- type: move | ||
from: traffic_shaping.subgraphs..experimental_enable_http2 | ||
to: traffic_shaping.subgraphs..experimental_http2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
...rc/configuration/snapshots/apollo_router__configuration__upgrade__test__change_field.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
source: apollo-router/src/configuration/upgrade.rs | ||
expression: "apply_migration(&source_doc(),\n &Migration::builder().action(Action::Change {\n path: \"obj.field1\".to_string(),\n from: Value::Number(1u64.into()),\n to: Value::String(\"a\".into()),\n }).description(\"change field1\").build()).expect(\"expected successful migration\")" | ||
--- | ||
{ | ||
"obj": { | ||
"field1": "a", | ||
"field2": 2 | ||
}, | ||
"arr": [ | ||
"v1", | ||
"v2" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.