-
Notifications
You must be signed in to change notification settings - Fork 2
Product Update: TLS & HTTP/2 in Hive Router #101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
95 changes: 95 additions & 0 deletions
95
...entation/content/product-updates/2026-04-30-hive-router-tls-and-http2/index.mdx
This file contains hidden or 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,95 @@ | ||
| --- | ||
| title: TLS, mTLS and HTTP/2 Support in Hive Router | ||
| description: | ||
| Hive Router now supports TLS and mTLS for both inbound and outbound connections, alongside | ||
| end-to-end HTTP/2 with optional H2C for subgraph traffic. | ||
|
ardatan marked this conversation as resolved.
Outdated
|
||
| date: 2026-04-30 | ||
| authors: [arda] | ||
| --- | ||
|
|
||
| import { Callout } from "@hive/design-system/hive-components/callout"; | ||
|
|
||
| [Hive Router](/docs/router) is now available with the first-class **TLS / mTLS** support and full | ||
| **HTTP/2** coverage on both sides of the router; from clients all the way down to subgraphs, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it's weird to use
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Rewrote the sentence. Looks better? |
||
| including [HTTP/2 Cleartext (h2c)](https://datatracker.ietf.org/doc/html/rfc7540). | ||
|
ardatan marked this conversation as resolved.
Outdated
|
||
|
|
||
| ## TLS and mTLS, end-to-end | ||
|
|
||
| TLS can be configured independently on each connection segment, and mTLS is supported in both | ||
| directions. The router can terminate TLS for inbound API consumers and act as a TLS client for | ||
| outbound subgraph traffic by using its own client certificate when subgraphs require mutual | ||
| authentication. | ||
|
|
||
| ``` | ||
| Client ──[TLS / mTLS]──► Router ──[TLS / mTLS]──► Subgraph(s) | ||
| inbound outbound | ||
| ``` | ||
|
|
||
| ### Inbound (Client -> Router) | ||
|
|
||
| Enable HTTPS on the router itself by pointing it at a certificate and key. The same TLS port also | ||
| upgrades secure WebSocket (`wss://`) connections automatically, so subscriptions work over TLS | ||
| without any extra configuration. | ||
|
|
||
| ```yaml title="router.config.yaml" | ||
| traffic_shaping: | ||
| router: | ||
| tls: | ||
| cert_file: /etc/router/tls/server.crt | ||
| key_file: /etc/router/tls/server.key | ||
| ``` | ||
|
|
||
| For mTLS, add a `client_auth` section with the trusted client CA so only clients presenting a | ||
| valid certificate can reach the router. | ||
|
|
||
| ### Outbound (Router -> Subgraphs) | ||
|
|
||
| Configure subgraph TLS globally under `all`, or override it per subgraph. Both directions of | ||
| mutual authentication are supported so that the router can verify subgraph certificates and present | ||
| its own identity when subgraphs require it. | ||
|
|
||
| ```yaml title="router.config.yaml" | ||
| traffic_shaping: | ||
| all: | ||
| tls: | ||
| cert_file: /etc/router/tls/subgraph-ca.crt | ||
| client_auth: | ||
| cert_file: /etc/router/tls/router-client.crt | ||
| key_file: /etc/router/tls/router-client.key | ||
| subgraphs: | ||
| products: | ||
| tls: | ||
| cert_file: /etc/router/tls/products-ca.crt | ||
| ``` | ||
|
|
||
| ## End-to-end HTTP/2 | ||
|
|
||
| Hive Router now negotiates HTTP/2 transparently for both inbound and outbound TLS connections, | ||
| and exposes a new outbound option to enforce HTTP/2 even on plain HTTP using | ||
| [HTTP/2 Cleartext (h2c)](https://datatracker.ietf.org/doc/html/rfc7540). | ||
|
|
||
| ```yaml title="router.config.yaml" | ||
| traffic_shaping: | ||
| all: | ||
| allow_only_http2: true | ||
| ``` | ||
|
|
||
| When `allow_only_http2` is enabled: | ||
|
|
||
| - Plain HTTP subgraph connections use **h2c** with HTTP/2 prior knowledge. | ||
| - HTTPS subgraph connections require HTTP/2 and **do not** fall back to HTTP/1.1. | ||
|
|
||
| Like other outbound options, `allow_only_http2` can be set globally under `all` or overridden per | ||
| subgraph, so you can enable HTTP/2 only where it makes sense. | ||
|
|
||
| <Callout type="info"> | ||
|
|
||
| Both features are covered by the router's E2E test suite, including HTTPS, mTLS in both | ||
| directions, and HTTP/2 between the router and subgraphs. | ||
|
|
||
| </Callout> | ||
|
|
||
| --- | ||
|
|
||
| - [TLS & mTLS guide](/docs/router/security/tls) | ||
| - [`traffic_shaping` configuration reference](/docs/router/configuration/traffic_shaping) | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's not use
now supportsas last 3 products updates used itThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rewrote the sentence without "now supports". Looks better?