GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(connect): run your own T3 Connect relay with OIDC sign-in by TuroYT · Pull Request #34302 · pingdotgg/t3code

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.

Sign up for GitHub

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 43 commits into pingdotgg:main
base: main
Loading
Loading
from TuroYT:t3/self-hosted-connect-service
+8,465 −1,390
Open

feat(connect): run your own T3 Connect relay with OIDC sign-in #34302

Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
df12a51
feat(relay): self-hosted T3 Connect relay with OIDC sign-in (WIP)
TuroYT Nov 7, 2026
1ec1f96
feat(connect): choose a self-hosted relay in settings
TuroYT Nov 8, 2026
c318441
fix(relay): self-hosted relay accepts DPoP proofs behind a TLS proxy
TuroYT Nov 10, 2026
a665036
feat(relay): carry environments over a relay channel without a tunnel
TuroYT Nov 10, 2026
dd82dfa
fix(relay): bind relay channels to the environment key and drop revok…
TuroYT Nov 10, 2026
9084db5
feat(relay): serve relay channels under /env/<key> instead of subdomains
TuroYT Nov 10, 2026
ffea460
fix(relay): keep relay channel responses from acting on the relay origin
TuroYT Nov 10, 2026
39f6878
fix(relay): filter relay channel response headers case-insensitively
TuroYT Nov 10, 2026
23bbd87
fix(relay): allowlist response headers from relay channel environments
TuroYT Nov 10, 2026
137386a
fix(relay): reconnect relay channels the relay silently dropped
TuroYT Nov 10, 2026
5bd54c6
feat(connect): deregister environments from a self-hosted relay account
TuroYT Nov 10, 2026
a938d26
fix(connect): label relay-carried environments on the account page
TuroYT Nov 10, 2026
4e1f5c6
fix(connect): self-hosted relay account page loads, and removal dereg…
TuroYT Nov 10, 2026
ff03b4c
fix(mobile): self-hosted sign-in works on Android without Web Crypto
TuroYT Nov 10, 2026
224b5ef
fix(connect): harden relay channels and OIDC sign-in after review
TuroYT Nov 11, 2026
be25dc8
fix(relay): keep carried PDFs sandboxed on the relay origin
TuroYT Nov 11, 2026
2974568
fix(connect): clear typecheck failures and a stale Clerk mock
TuroYT Nov 11, 2026
c0459a7
fix(connect): address the relay review findings
TuroYT Nov 11, 2026
b6f436f
fix(connect): address the second relay review
TuroYT Nov 11, 2026
39eed46
Merge remote-tracking branch 'github/main' into t3/self-hosted-connec…
maria-rcks Nov 11, 2026
f4947bf
fix(connect): keep relay channel readiness current and public key rea…
maria-rcks Nov 11, 2026
d4261ff
Merge remote-tracking branch 'upstream/main' into t3code/pr-34302/t3/…
TuroYT Nov 14, 2026
60b530f
fix(connect): address the third relay review
TuroYT Nov 14, 2026
9ac177c
fix(mobile): blank the OIDC session when SecureStore cannot delete it
TuroYT Nov 14, 2026
fcd681a
fix(connect): describe publish-only relay access accurately
maria-rcks Nov 15, 2026
f6d3c4d
fix(connect): send PKCE with the headless device sign-in
TuroYT Nov 15, 2026
c1ebbef
Merge upstream/main into t3/self-hosted-connect-service
TuroYT Nov 15, 2026
8d808e1
fix(connect): declare Digest for the CLI device sign-in
TuroYT Nov 15, 2026
5e2523a
Merge branch 'main' into t3/self-hosted-connect-service
TuroYT Nov 16, 2026
b685f62
Merge remote-tracking branch 'upstream/main' into pr34302-merge
TuroYT Nov 18, 2026
c388320
fix(connect): translate the self-hosted relay and OIDC copy
TuroYT Nov 18, 2026
2239610
Merge remote-tracking branch 'github/main' into takeover-34302
maria-rcks Nov 18, 2026
b8787c3
fix(relay): show the provider's reason on token errors, document Entr…
TuroYT Nov 18, 2026
dc34ad0
fix(server): startup log no longer prints a stale relay URL
TuroYT Nov 18, 2026
c417cb8
fix(relay): the self-host image no longer ships node_modules
TuroYT Nov 18, 2026
33ef5ca
Merge upstream/main into self-hosted-connect-service
TuroYT Nov 19, 2026
8312715
Merge upstream/main into self-hosted-connect-service
TuroYT Nov 20, 2026
fc23516
Merge upstream/main into self-hosted-connect-service
TuroYT Nov 21, 2026
db05390
Merge upstream/main into self-hosted-connect-service
TuroYT Nov 23, 2026
5ed815a
Merge branch 'main' into t3/self-hosted-connect-service
TuroYT Nov 24, 2026
a357fd3
Merge upstream/main into self-hosted-connect-service
TuroYT Nov 25, 2026
50f6f19
Merge remote-tracking branch 'upstream/main' into t3code/pr-34302/t3/…
TuroYT Nov 26, 2026
9807e81
Merge remote-tracking branch 'upstream/main' into t3code/pr-34302/t3/…
TuroYT Nov 27, 2026
File filter
Filter by extension

Clear filters
Conversations
Failed to load comments.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Jump to
Jump to file
Failed to load files.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Diff view
Diff view
Prev Previous commit
Next Next commit
fix(connect): clear typecheck failures and a stale Clerk mock
The relay discovery error extended Error directly, which the Effect
diagnostics reject, and the Node relay kept a directive that no longer
applied. The welcome page test still mocked Clerk's useAuth after the
page moved to useCloudAuth.
  • Loading branch information

Uh oh!

There was an error while loading. Please reload this page.

@TuroYT
TuroYT committed Nov 11, 2026
commit 297456897280bd5320f982b4115c6e2482245f92

There are no files selected for viewing

4 changes: 2 additions & 2 deletions 4 apps/web/src/components/onboarding/WelcomePage.import.browser.test.tsx
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ vi.mock(import("../../cloud/publicConfig"), async (original) => ({
...(await original()),
hasCloudPublicConfig: () => state.cloud,
}));
vi.mock(import("@clerk/react"), async (original) => ({
vi.mock(import("../../cloud/cloudAuth"), async (original) => ({
...(await original()),
useAuth: (() => state.auth) as never,
useCloudAuth: (() => state.auth) as never,
}));
vi.mock(import("../clerk/useT3ConnectAuthPrompt"), async (original) => ({
...(await original()),
Expand Down
1 change: 0 additions & 1 deletion 1 infra/relay/src/node.ts
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ const program = Effect.gen(function* () {

const database = yield* makeWithDefaults();
// A failed migration leaves the database in an unknown state; refuse to start instead of serving.
// @effect-diagnostics-next-line anyUnknownInErrorContext:off - drizzle's migrate types its error as any
yield* migrate(database, { migrationsFolder, migrationsTable: "relay_migrations" }).pipe(
Effect.orDie,
);
Expand Down
14 changes: 4 additions & 10 deletions 14 packages/client-runtime/src/relay/selfHostedRelay.ts
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@ export function parseStoredSelfHostedRelay(value: string | null): SelfHostedRela

export const encodeSelfHostedRelay = (relay: SelfHostedRelay): string => JSON.stringify(relay);

class SelfHostedRelayError extends Error {
override readonly name = "SelfHostedRelayError";
}

/** Asks the relay at a user-entered address how to sign in, so the user only types the address. */
export async function discoverSelfHostedRelay(
address: string,
Expand All @@ -42,24 +38,22 @@ export async function discoverSelfHostedRelay(
/^[a-z][a-z0-9+.-]*:\/\//iu.test(trimmed) ? trimmed : `https://${trimmed}`,
);
if (relayUrl === null) {
throw new SelfHostedRelayError(
"Enter the relay's HTTPS address, for example https://relay.example.com.",
);
throw new Error("Enter the relay's HTTPS address, for example https://relay.example.com.");
}
const response = await fetchImpl(`${relayUrl}/.well-known/t3-relay`, {
headers: { accept: "application/json" },
}).catch(() => null);
if (response === null) throw new SelfHostedRelayError(`Could not reach ${relayUrl}.`);
if (response === null) throw new Error(`Could not reach ${relayUrl}.`);
const metadata = response.ok
? Option.getOrNull(decodeServiceMetadata(await response.json().catch(() => null)))
: null;
if (metadata === null) {
throw new SelfHostedRelayError(
throw new Error(
`${relayUrl} did not answer as a T3 relay. Check the address, or update the relay.`,
);
}
if (metadata.oidc === null) {
throw new SelfHostedRelayError(
throw new Error(
`${relayUrl} signs in with Clerk. Configure OIDC on the relay to use it from here.`,
);
}
Expand Down
Loading
Oops, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

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.
You are visitor 01402809 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.