Repository navigation
feat(server): one view-only link several people can join a thread with - #585
Merged
Jacksondr5 merged 2 commits intoOct 13, 2026
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Jacksondr5
force-pushed
the
j5code/share-3c-open-link
branch
from
October 13, 2026 02:36
8bed788 to
eb98ca7
Compare
Jacksondr5
force-pushed
the
j5code/share-3c-open-link
branch
from
October 13, 2026 02:47
eb98ca7 to
dbe30f6
Compare
Jacksondr5
force-pushed
the
j5code/share-3c-open-link
branch
from
October 13, 2026 02:53
dbe30f6 to
1f03b39
Compare
Jacksondr5
force-pushed
the
j5code/share-3c-open-link
branch
from
October 13, 2026 03:07
1f03b39 to
f9dded7
Compare
Jacksondr5
force-pushed
the
j5code/share-3c-open-link
branch
from
October 13, 2026 03:18
f9dded7 to
d45a110
Compare
Jacksondr5
force-pushed
the
j5code/share-3c-open-link
branch
from
October 13, 2026 04:00
d45a110 to
94fc362
Compare
Jacksondr5
force-pushed
the
j5code/share-3c-open-link
branch
2 times, most recently
from
October 13, 2026 04:16
145b26f to
e6bf9d6
Compare
Jacksondr5
force-pushed
the
j5code/share-3c-open-link
branch
from
October 13, 2026 04:28
e6bf9d6 to
eacc8f0
Compare
Jacksondr5
force-pushed
the
j5code/share-3c-open-link
branch
from
October 13, 2026 04:41
eacc8f0 to
a33695d
Compare
Jacksondr5
force-pushed
the
j5code/share-3c-open-link
branch
from
October 13, 2026 04:54
a33695d to
a248b9e
Compare
Jacksondr5
force-pushed
the
j5code/share-3c-open-link
branch
from
October 13, 2026 04:58
a248b9e to
0a295de
Compare
6 of 8 tasks
Jacksondr5
force-pushed
the
j5code/share-3c-open-link
branch
from
October 13, 2026 05:31
0a295de to
e5c6c36
Compare
Jacksondr5
force-pushed
the
j5code/share-3c-open-link
branch
from
October 13, 2026 05:40
e5c6c36 to
e5fc7d5
Compare
A share link is made for one named person, so putting a thread in front of a group means a link each. A member who holds Manage access makes an open link for a thread, for a lifetime they choose. It is J5's own token, kept as a hash. Each person who opens it types a name and becomes a new guest with a View grant on the thread and a single-use share link of their own. The name is marked as one they gave themselves until a member renames them, and they cannot be given Collaborate before then. A link brings in at most fifty people and can be revoked. Joining takes no sign-in: the route trusts the token alone, answers every link it will not take in the same words, refuses a browser signed in as a member, and checks everything before it writes, in one transaction. A second route says what either kind of link opens without spending it. A member asking who is on a thread is told of its open links and of unconfirmed names. Refs #541 Co-Authored-By: Claude Opus 5.5 <[email protected]>
The join route says so in its refusal, and its tests cover both brackets. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Jacksondr5
force-pushed
the
j5code/share-3c-open-link
branch
from
October 13, 2026 05:53
e5fc7d5 to
6979fbc
Compare
Jacksondr5
marked this pull request as ready for review
October 13, 2026 20:39
|
Warning Review limit reached
This review includes 21 billable files and costs up to $5.25.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Or wait 21 minutes for your next included review. View limit details
Comment |
This branch was successfully deployed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Problem
A share link is made for one named person, so putting a thread in front of several people means making and sending a link each. Jackson asked for one link a member can put in a chat (#541).
What changed
apps/server/src/j5/sharing/OpenLinks.ts, J5 migration 36). A member who holds Manage access makes one for a thread. It is J5's own token, 32 random bytes, stored as a hash. Each person who opens it becomes a new guest with a View grant on that thread and an ordinary single-use share link of their own, so from there they are a guest like any other.nameSelfGiven) until a member renames them withj5.sharing.renamePerson.Unconfirmed name: <name>. A name a member types is not restricted. Square brackets are refused too, as for every name (feat(server): a member brings a guest in with a share link #582), and the route's refusal says so.putGrantrefusescollaboratefor a guest whose name is self-given, with an error that says to confirm the name first.j5.sharing.revokeOpenLinkstops new people joining.j5.sharing.listOpenLinkslists each link with who joined.POST /api/j5/sharing/join, takes no sign-in. It trusts the token alone and answers a made-up, revoked, expired, full or deleted-thread link in the same words and status (404). A request with no usable name gets a 400. There is no rate limit: the token cannot be guessed, a wrong one costs one indexed read, and a real one is capped.POST /api/j5/sharing/describe, no sign-in, body{ link }holding a named person's credential or an open link's token. For a link that would work now it answers with the kind of link, the server's name, what it opens by title (thread and project, or project) with its level, and for a named link the name the member gave that person. A named link opens nothing itself, soopenslists what that person's grants reach, which can be empty. Each entry carries the icon a person chose for its project (projectIcon, plain data). It gives no ids, no paths, no one who shared and no one who joined. Any other link, and any pairing link that is not a guest's, gets the join route's one 404. It only reads. A member's browser gets the same answer as anyone.createOpenLinktakes the same four lifetimes as a named link. The describe answer carriesexpiresAt.renamePerson(the layer below) is also how a self-given name is confirmed: it clears the mark, so there is no separate confirm request. A member asking who is on a thread is told of its open links that can still be joined, and each guest'snameSelfGivenandjoinedByOpenLink; a guest asking is told of no links. A joiner's own pairing link lasts an hour, since the browser that asked uses it at once.name_taken), the owner's name included. The link is judged first, so a link that does not work gets its usual 404 whatever name is sent and learns nothing about names. Opening a link twice under one name is therefore refused the second time; under two names it is two guests, as before.createOpenLinkis refused withOwnerNameRequiredErrorwhile the owner has none, as creating a guest is in the layer below.The definitions change with it, as the issue says: Shared server gains "An open link" and AC26 to AC28, numbered after AC25 so earlier numbers stand, and Shared conversations AC1 says a self-given name is confirmed before that person is given Collaborate.
Decisions to check
Live testing
Run by the builder on an isolated
j5-live-testserver at this branch's code (default flags), with raw requests; there is no UI.createOpenLink. After revoking, the same token got the same 404. The people list showed the joiner withnameSelfGiven: true.eb98ca7733): a name with a newline, a right-to-left override and a bell got 400, and "José 李雷" joined. Twenty-five wrong tokens each got 404 and the real token then worked. Upstream's pairing-link list showed both joiners asUnconfirmed name: …. Collaborate was refused withNameNotConfirmedError, then allowed once the name was confirmed. After the thread was deleted, the same token got 404 and no person was added.dbe30f6462): a join sent from a signed-in member's browser got 409 with that message, recorded no one, and left the member's session as it was; the same token without a cookie then joined.f9dded7b53): describe answered for a named link (twice, the same) and for an open link, with the server's real name and the thread's and project's titles; a made-up link and a used link got the join route's 404; the named link then paired and afterwards described as 404; the open link then joined and still described.d45a1101bd): names holding tag characters, a zero-width space, a soft hyphen and five stacked marks each got 400; a decomposed "José" and a Devanagari name joined.94fc36215e): a 24-hour join link expired in 24 hours; describe of a 30-day named link said 30 days; a member saw the thread's open link and the guest saw none.eacc8f0220): a join under the owner's name got 409; a made-up link got the same 404 with a taken name and with a free one; a second join under the same name in another case got 409.704423b494):createOpenLinkwas refused withOwnerNameRequiredErroron a server whose owner had no name, and made the link once the name was set.j5/main: by test, thesharingcounter moves when a join link is made, joined with or revoked, and not for a refused join. The live pass on tip3ed8990140is described in feat(server): a member brings a guest in with a share link #582.Checklist
FORK.md(case text and file-table row) in this PR — none editeddocs/j5/product/upstream.md— D33 notes the one J5 route that takes no sign-inAGENTS.md) — server and contracts only; no client has a join page. Revoke is the way outdocs/j5/product/and user docs rewritten where this changes themTests:
apps/server/src/j5/sharing/OpenLinks.test.ts, through the real route, upstream's real auth and a real database.Claude Opus 5.5, Claude Code
🤖 Generated with Claude Code