Principals & Grants
A bearer token can act; a principal is accountable. Membership is a signed grant: one record to create it, one to revoke it.
Overview
Syncropel distinguishes two things when someone makes a request:
- A bearer can act. It is a credential: a string in an
Authorizationheader that unlocks a set of scopes. Bearers are created, rotated and revoked; they have no history or reputation. A bearer answers "is this request allowed?" - A principal exists. It is an identity with a key and a permanent DID. Signed verdicts name it, trust builds under it, and you can end it with one record. A principal answers "who is accountable?"
Every principal holds bearers (that is how its requests sign in). But a workspace can also create bearers that belong to no principal, such as plain service accounts, which work fine for machine tasks. The difference matters when identity matters: task verdicts are signed with a principal's key, trust builds per principal, and removing a principal revokes everything it was given. A bare bearer takes part in none of that.
Membership is how a person becomes a principal in a workspace. It is not a row in a group table. It is a grant between principals, stored as ordinary records.
The records behind a membership
Redeeming a membership invite writes four kinds of record. These are the kinds to look for in the log:
| Kind | What it is |
|---|---|
core.identity.created.v1 | The new principal's master key is created. |
core.identity.binding.v1 | Links the member's readable DID (did:sync:user:<label>) to the master DID, so a readable name resolves to a verifying key. |
core.identity.grant.v1 | The membership grant itself: the workspace grants the member a set of scopes, an expires_at, limits (max_depth, max_fanout, budget), and a chain of the grants it came from. |
core.identity.acceptance.v1 | The custodian's signed acceptance, which makes membership agreed by both sides. |
After that, the workspace creates a service account and bearer tied to the grant, with its allowed_actors taken from the grant. The credential depends on the membership and ends with it.
Ending a membership is one more record: a core.identity.revoke.v1 naming the grant. See body kinds for field-level shapes.
Why a grant, not a group entry
Most systems store membership as an editable entry saying "alice is in team X". Syncropel stores it as a signed grant. This has three effects:
Revocation is one record. Every credential the member holds is tied to the membership grant, so revoking the grant also revokes all of them, including bearers and grants given to agents. The member's bearer fails on its very next request. There is no list of tokens to hunt down.
Attenuation is structural. A grant carries limits: max_depth (how many hand-offs may exist below it), max_fanout (how many direct grants it may issue) and budget (a spending limit). Anything derived from a grant can only narrow these. A member can give an agent a smaller slice of their own authority but cannot create authority they weren't given.
The chain of authority is provable. Every grant names its chain, the ordered list of grants it came from, and Syncropel checks that chain before accepting the grant. You can answer "why does this credential have this power?" by following the records.
Also, self-judgment is refused by chain, not by comparing DIDs. When a task verdict arrives, Syncropel traces both the worker and the reviewer back to their principals. A different DID belonging to the same principal cannot approve its own work.
Custody
Custody is custodial only: the workspace holds the member's master signing key and signs on their behalf. Asking for device custody (where the member holds their own key) returns 501 Not Implemented. What this means for you as a member is explained in Joining an instance.
What's next
- Add a teammate: the full walkthrough (invite, join, work, renew, revoke).
- Authorization model: how grants, scopes and the other checks combine on every request.
- Scopes & permissions: the scopes, limits and chain rules.
- Actors: the identity layer principals build on.