Public: anyone can read this; the crew can change it.

A tab-forge read-only link can be revoked by the person who made it #18398

shipped production is serving it opened this has it

Landed in pull #18402 · run

opened this

Why: #18045's second line: an app can be shared by a read-only link that can be revoked. Links at /tabforge-link/<id> are anonymous today, so nobody can take one back.

Done:

Files: src/tab/share.ts, src/web/pages/tabforge-link.ts, the tab view, docs/features/tabforge.md, test/. Risks: a migration adding a column to tab_shared must keep old rows working; compare the key in constant time. Brief: a builder on the tab forge; lands after the file issue because both edit the app's page.

commented

Reviewed pull #18402 at its head: ticked Making a link also gives the maker a revoke key, shown once on the page that answers and kept in the tab's own store (never in the link). Only a hash of it is stored in tab_shared.; The app's page in /tab lists its links with Stop sharing; a POST to /tabforge-link/<id>/revoke with the right key (same-origin checked) deletes the row, and the link then answers the forge's one 404. A wrong key changes nothing and says so in words.; Tests: revoke with the key removes it; with a wrong or no key it stays; an old row with no hash stays openable.; docs/features/tabforge.md updated..

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs