What it is
App-agnostic: the app defines what a project, role and permission are. Everything is plain serde data evaluated with no I/O, so any node can re-run the rules and get the same answer. Identities are the transport peer ids.
Key types and modules
- Roles and a permission catalog you define (
RoleTable): presets, a host role, a default role for new invitees, and gates (a permission that also needs the audio owner’s consent, or a local switch). - Signed rules: allow or deny a permission for one member or a whole role, optionally until a time. A member rule beats a role rule, a deny beats an allow at the same level, expired rules are ignored.
- Consent grants signed by the owner of the audio: once or always, for all of their streams or named ones, revocable. Nobody else, the host included, can grant them.
- A decision with a reason chain:
Project::decidereturnsAllowed,DeniedorNeedsConsentwith the steps that led there. - Invites: links with a role, an expiry, a use limit and optional host approval; direct invites; revocation that can end the sessions that came through the link.
- A signed, mergeable audit log: each person sees the entries they are part of; only a host can delete entries (a signed deletion); two copies merge without repeats and refuse tampered entries.
Usage
[dependencies]
weirdnet-collab = "0.3.0"Where it fits
- Used by weirdnet-songnotes.
- License: BSD-3-Clause.