Skip to content

docs(j5): sign-in through J5 Connect - #1262

Closed
Jacksondr5 wants to merge 4 commits into
j5code/j5-connect-identity-webfrom
j5code/j5-connect-identity-docs-main
Closed

Jacksondr5 wants to merge 4 commits into
j5code/j5-connect-identity-webfrom
j5code/j5-connect-identity-docs-main

Conversation

@Jacksondr5

@Jacksondr5 Jacksondr5 commented Nov 27, 2026 •

Copy link
Copy Markdown
Owner

Problem

Sign-in through J5 Connect (#1257, #1258) has no product definition, no user guide, and no guide for whoever runs the J5 Connect. The People and access definition still says J5 has no authoritative identity. Part of #632. Stacked on #1258, whose screens the user guide describes.

What changed

  • People and access (docs/j5/product/features/people-and-access.md):

    • The People and devices paragraph now describes accounts.
    • A new "Sign-in and offboarding" section, with Jackson's lapse rule: a day without a confirmation while J5 Connect is reachable, two days at worst while the server runs. The server acts when J5 Connect answers, or after 24 hourly checks in a row with no answer; restarts count as checks and sleep doesn't (AC60). Devices paired from a signed-in one end with it, and removing a person is immediate.
    • "What it is not" is reworded.
    • AC52–AC61 and two scenarios are added, and the authoritative identity leaves Later.
  • Register (docs/j5/product/upstream.md): D33 gains a bullet for sign-in, its FORK cases (73, 79 and 123), a Decided line and a history line.

  • User guide (docs/j5/user/people-and-sharing.md): a new "Signing in through J5 Connect" section covers:

    • joining a J5 Connect from Settings;
    • signing in on web and desktop, including how the desktop app's retry after waiting returns to the app;
    • what an Owner sees and decides;
    • when someone leaves;
    • Unbind and Leave.
  • Runbook (docs/j5/runbooks/j5-connect.md, new, kind: runbook), for operators:

    • running a J5 Connect, and the Dex settings the image enforces;
    • choosing an identity provider, and what identifies an account;
    • an internal deployment;
    • joining a server from its machine, and managing its client live with j5-connect clients (feat(infra): manage J5 Connect clients without restarting #1264), with no restart;
    • how long access lasts.

    It's listed under runbooks in docs/j5/README.md, and infra/j5-connect/README.md points to it.

Not in this PR:

  • Mobile steps. The user guide's mobile line and its FORK case come with the mobile PR (PR 3), which is still waiting for its device pass. AC53 already names the mobile app, as decided.
  • Local testing. "Testing locally" belongs in the infra README, as its own PR, not in the user guide.

Checklist

  • One concern: the description has no "also"
  • Tests cover the changed behavior: not applicable, docs only
  • UI changes: not applicable, docs only
  • Live testing: not applicable; the user guide describes what feat(j5): sign in through J5 Connect on web and desktop #1258's live tests exercised
  • Upstream-owned files: none edited
  • Upstream product: D33's new bullet records Jackson's 2026-11-26 and 2026-11-27 decisions
  • Surfaces: web and desktop are described here; mobile comes with PR 3
  • Docs: the People and access definition is rewritten in place, and user docs are added

Built by Claude Opus 5.5 in Claude Code (J5 Code).

🤖 Generated with Claude Code

@vercel

vercel Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
j5-code Ready Ready Preview Nov 28, 2026 4:35pm UTC

Request Review

@coderabbitai

coderabbitai Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 54 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 029db32 and 64be885.

Files selected for processing: 6

  • docs/j5/README.md
  • docs/j5/product/features/people-and-access.md
  • docs/j5/product/upstream.md
  • docs/j5/runbooks/j5-connect.md
  • docs/j5/user/people-and-sharing.md
  • infra/j5-connect/README.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:L 100-499 effective changed lines (test files excluded in mixed PRs). labels Nov 27, 2026
Jacksondr5 and others added 2 commits November 27, 2026 16:04
People and access gains accounts, sign-in and offboarding (AC52–AC61),
D33 says how sign-in rides on J5's links, People and sharing says how to
sign in and what happens when someone leaves, and a new J5 Connect guide
says how to run one and join a server to it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
- The internal-deployment Caddyfile starts from the bundled one and keeps
  its reverse_proxy line.
- Join repeats every --address given to redirect-uris.
- The lapse timing matches the code: checked when J5 Connect answers or
  after 24 tries in a row with none; restarts count, sleep doesn't.
- The Dex settings the image enforces are named.
- An account is J5 Connect's issuer and the id it gives the person.
- The operator material moves to docs/j5/runbooks/j5-connect.md; joining
  from Settings stays in People and sharing.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Comment thread docs/j5/runbooks/j5-connect.md Outdated
Comment on lines +121 to +123
3. On J5 Connect, add the server to `J5_CONNECT_CLIENTS` with that id, secret and redirect URIs,
and start it with `docker compose up -d --build`. After a later change to the clients, run
`docker compose up -d connect`.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this mean we can't add new J5 servers while Connect is live? Every add requires a restart?

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As built, yes. Each new J5 server is a static Dex client in J5_CONNECT_CLIENTS, and changing that means docker compose up -d connect, which restarts the J5 Connect container. It's short, and it isn't an outage for anyone already signed in:

  • Existing sessions on every J5 server keep working, because they're the servers' own.
  • A sign-in during those few seconds fails, and the person tries again.
  • An hourly confirmation pass that lands in the restart counts as one unanswered pass, which changes nothing.

It's still clunky, and we can remove it. Dex has a gRPC admin API (CreateClient, UpdateClient, DeleteClient). Clients created that way live in Dex's Postgres and take effect with no restart. The fix:

  1. Turn the API on, bound to 127.0.0.1 inside the container and never published.
  2. Add a small command to the image, docker compose exec connect j5-connect clients add|update|remove.
  3. Keep J5_CONNECT_CLIENTS only as a first-start seed.

That's about half a day, in infra/j5-connect only, with no upstream files. Dex has no self-service client registration, so registering a new server still takes one command on the J5 Connect host, just not a restart.

I'm doing that now as its own PR. This runbook section will describe the no-restart flow, and this PR waits for it.

Comment on lines +4 to +5
does not share, leave or rename. People come in with a link, or by
[signing in](#signing-in-through-j5-connect). Each person has a name, a level at the server, a project or a

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should consider retiring the link option once J5 Connect works. IDK if I want to do that for sure, but it should be considered

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noted, and filed as #1263, with no change in this PR. The issue lists what depends on person links today:

  • servers not on any J5 Connect;
  • the first owner's startup and desktop pairing;
  • recovery when J5 Connect is down or has been left;
  • people outside the company's J5 Connect;
  • links for many at Viewer;
  • the CLI's j5 pair;
  • mobile, until mobile sign-in ships.

Guest links, peer links and MCP clients use their own credentials, so retiring person links wouldn't touch them. The issue keeps that line clear. It sets out three options, from "keep both" to "retire entirely", without picking one.

@Jacksondr5

Copy link
Copy Markdown
Owner Author

Superseded by #1268: fresh J5 Connect docs written from the 2026-11-28 decisions. Those are: multiplayer needs J5 Connect, bearer links for people are retired, and managed policy picks the J5 Connect. Jackson's two threads here were answered, and both are carried into #1268. The runbook there covers adding servers without a restart, and the link question is #1263. Closing.

This branch was successfully deployed

1 active deployment
Preview — 64be8854 Deployed Nov 28, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L 100-499 effective changed lines (test files excluded in mixed PRs). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant