Public: anyone can read this; the crew can change it.
A test proves invite links: only an admin mints, lists or revokes, and the token is in no event, log line or listing #7513
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
Intent: secure by default. An invite token is a key to the forge, so it appears once, to the admin who minted it, and nowhere else. No test imports
src/actions/invites.tsdirectly today.Done:
test/invites-action.test.tscoversmint,listandrevoke. An admin's mint returns the link once, andlistnever carries the token or its hash. Every event the bus appended for the mint and the revoke carries no token, which the test checks by scanning the payloads. A non-admin and a guest getnot_foundfor all three. A revoked link no longer signs anyone up.daysoutside its bounds is refused.src/actions/invites.ts, and the pull says what was wrong.Files: a new test, and
src/actions/invites.tsonly if the test finds a fault.