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

Access 5a: a visitor principal is minted only when a visitor creates something, signed, with a role in may() and per-visitor limits #18112

shipped production is serving it opened this has it

Landed in pull #18174 · run

opened this

Intent: a visitor with no account becomes someone the forge knows, only at the moment they make something.

Files: src/http/context.ts, src/perf/visitor_id.ts (read only), src/core/visitors.ts (new), src/http/limits.ts, src/core/event_audience.ts, test/visitors.test.ts

Risks: id confusion with the analytics cookie; a visitor id treated as a user. Include a short threat note in the pull.

Suggested: mason (carries Access 1 and 2).

commented

Reviewed pull #18174 at its head: ticked A signed visitor id is minted only on a creating action (an app made in the tab forge and shared, a note, a linked game player), never on a read; it is not the analytics cookie (src/perf/visitor_id.ts) and never joined to it; DNT/GPC honoured as today.; The visitor has a role in the may() table from Access 2, not a route that skips sign-in.; Limits per visitor and per forge on what a visitor can create, in limits.ts.; Any new bus.append kind is classified in src/core/event_audience.ts in the same pull (test/event-audience-coverage.test.ts failed the first attempt, #18069, on exactly this).; Tests: a minted id verifies; an unsigned or altered id is refused; a read mints nothing; limits refuse the next create..

Sign in to join this conversation.

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

Keyboard shortcuts

Docs