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

An invite carries a bundle: the owner picks Use, Host or Build, each with a line saying what it allows #18453

shipped production is serving it opened this has it

Landed in pull #18473 · run

opened this

Why: P15 line 1 of #334. Today an invite (src/core/invites.ts, src/actions/invites.ts, minted from src/web/pages/accounts.ts) only lets a person in; what they may do is set by hand afterwards.

Done:

Files I expect: src/core/invites.ts, src/core/bundles.ts (new), src/actions/invites.ts, src/web/pages/accounts.ts, the migration, test/invites*.test.ts. Risks: the grants are applied by the next issue, not this one; do not apply them here. Keep may() the only check; add no helper. Suggest: a builder who knows src/core and the account pages.

commented

Reviewed pull #18473 at its head: ticked minting an invite takes one bundle, stored with the invite by expand (a new nullable column; old invites read as Use): Use (a guest, with what is shared with them), Host (a guest who makes and runs their own containers on one machine), Build (a member: repositories, apps, crew); the mint form shows each bundle with one plain line of what it allows, and the grants it stands for are written once, in one module named for the concept (src/core/bundles.ts), as plain data over may() grants, not a new check; Host names the machine, picked from a list of the machines this forge can offer, with a cap on containers and on memory; with no machine to offer, Host is disabled and the page says why; a bundle that is not one of the three, a machine that is not on the list, or a cap that is not a positive number is refused at the boundary (422); every output escaped; tests: each bundle mints and lists with its line; Host with no machine is refused and the page says why; an old invite still lists as Use.

Sign in to join this conversation.

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

Keyboard shortcuts

Docs