Repository navigation
feat(connect): run your own T3 Connect relay with OIDC sign-in #34302
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
Open
TuroYT
wants to merge
38
commits into
pingdotgg:main
Choose a base branch
from
TuroYT:t3/self-hosted-connect-service
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+8,423
−1,350
Open
Changes from all commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
df12a51
feat(relay): self-hosted T3 Connect relay with OIDC sign-in (WIP)
TuroYT 1ec1f96
feat(connect): choose a self-hosted relay in settings
TuroYT c318441
fix(relay): self-hosted relay accepts DPoP proofs behind a TLS proxy
TuroYT a665036
feat(relay): carry environments over a relay channel without a tunnel
TuroYT dd82dfa
fix(relay): bind relay channels to the environment key and drop revok…
TuroYT 9084db5
feat(relay): serve relay channels under /env/<key> instead of subdomains
TuroYT ffea460
fix(relay): keep relay channel responses from acting on the relay origin
TuroYT 39f6878
fix(relay): filter relay channel response headers case-insensitively
TuroYT 23bbd87
fix(relay): allowlist response headers from relay channel environments
TuroYT 137386a
fix(relay): reconnect relay channels the relay silently dropped
TuroYT 5bd54c6
feat(connect): deregister environments from a self-hosted relay account
TuroYT a938d26
fix(connect): label relay-carried environments on the account page
TuroYT 4e1f5c6
fix(connect): self-hosted relay account page loads, and removal dereg…
TuroYT ff03b4c
fix(mobile): self-hosted sign-in works on Android without Web Crypto
TuroYT 224b5ef
fix(connect): harden relay channels and OIDC sign-in after review
TuroYT be25dc8
fix(relay): keep carried PDFs sandboxed on the relay origin
TuroYT 2974568
fix(connect): clear typecheck failures and a stale Clerk mock
TuroYT c0459a7
fix(connect): address the relay review findings
TuroYT b6f436f
fix(connect): address the second relay review
TuroYT 39eed46
Merge remote-tracking branch 'github/main' into t3/self-hosted-connec…
maria-rcks f4947bf
fix(connect): keep relay channel readiness current and public key rea…
maria-rcks d4261ff
Merge remote-tracking branch 'upstream/main' into t3code/pr-34302/t3/…
TuroYT 60b530f
fix(connect): address the third relay review
TuroYT 9ac177c
fix(mobile): blank the OIDC session when SecureStore cannot delete it
TuroYT fcd681a
fix(connect): describe publish-only relay access accurately
maria-rcks f6d3c4d
fix(connect): send PKCE with the headless device sign-in
TuroYT c1ebbef
Merge upstream/main into t3/self-hosted-connect-service
TuroYT 8d808e1
fix(connect): declare Digest for the CLI device sign-in
TuroYT 5e2523a
Merge branch 'main' into t3/self-hosted-connect-service
TuroYT b685f62
Merge remote-tracking branch 'upstream/main' into pr34302-merge
TuroYT c388320
fix(connect): translate the self-hosted relay and OIDC copy
TuroYT 2239610
Merge remote-tracking branch 'github/main' into takeover-34302
maria-rcks b8787c3
fix(relay): show the provider's reason on token errors, document Entr…
TuroYT dc34ad0
fix(server): startup log no longer prints a stale relay URL
TuroYT c417cb8
fix(relay): the self-host image no longer ships node_modules
TuroYT 33ef5ca
Merge upstream/main into self-hosted-connect-service
TuroYT 8312715
Merge upstream/main into self-hosted-connect-service
TuroYT fc23516
Merge upstream/main into self-hosted-connect-service
TuroYT 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
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,12 @@ | ||
| **/node_modules | ||
| .git | ||
| .t3 | ||
| .repos | ||
| .env | ||
| .env.* | ||
| **/.env | ||
| infra/relay/selfhost/secrets | ||
| infra/relay/selfhost/.env | ||
| **/dist | ||
| **/dist-* | ||
| **/*.log |
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
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
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
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
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
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
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
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
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,13 @@ | ||
| import { SIGNED_OUT_CLOUD_AUTH, type CloudAuthState } from "@t3tools/client-runtime/relay"; | ||
| import { createContext, useContext } from "react"; | ||
|
|
||
| /** Screens read this instead of a provider's own hooks. */ | ||
| export interface CloudAuth extends CloudAuthState { | ||
| readonly signOut: () => Promise<void>; | ||
| } | ||
|
|
||
| const SIGNED_OUT: CloudAuth = { ...SIGNED_OUT_CLOUD_AUTH, signOut: async () => {} }; | ||
|
|
||
| export const CloudAuthContext = createContext<CloudAuth>(SIGNED_OUT); | ||
|
|
||
| export const useCloudAuth = (): CloudAuth => useContext(CloudAuthContext); |
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.