Skip to main content

Module fleet

Module fleet 

Source
Expand description

Fleet access-control records: people, the external accounts bound to them, role grants, per-channel configuration, one-time link tokens, and the audit trail. See ADR 0022, amended for channel configuration by ADR 0023. One-time link tokens store only a hash of their secret.

These are typed views only. gonzalo stores the records but never evaluates the roles in them; consumers such as Ariel read them and decide, including the two-key rule effective = min(person_role, channel_ceiling). A person is never resolved by email or handle, so nothing here offers that lookup.

Structs§

AuditEntry
Who did what, to what, when, and with what result.
ChannelConfig
Per-chat-channel configuration, keyed by provider, tenant and channel (ariel ADR 0009; gonzalo ADR 0023). It belongs to no person: who changed it is recorded in the audit trail and in gonzalo’s author stamp.
Consumption
Who redeemed a token, into which binding, and when.
EmptyFollowSet
Follows::Workspaces was given no workspace names.
IdentityBinding
Ties one external account to a person.
LinkSecret
The secret half of a link token: 32 random bytes the caller generates.
LinkSecretError
A link secret that isn’t 64 lowercase hex characters.
LinkToken
A one-time, expiring token that lets a person claim an account.
Person
A human with fleet roles, keyed by an opaque person id the minting consumer generates.
RoleGrant
A person’s role for one scope. One record per (person, scope); revoking is a delete.
VerifiedEmail
An email address as asserted by an authenticator.

Enums§

AuditResult
The outcome an audit entry records.
Authenticator
The system that authenticated an external account.
BindingOrigin
How an account came to be bound to a person.
FleetActor
Who did something: a person, an account not yet linked to one, or a service.
FleetKeyError
Why a fleet record key could not be built.
FleetRole
A fleet role, ordered Viewer < Operator < Admin. Defaults to Viewer, the least privileged, so an omitted ceiling grants nothing extra (ADR 0023).
Follows
Which workspaces a channel follows (ariel ADR 0009; gonzalo ADR 0023).
GrantScope
Where a role grant or link token applies.
NotifyPreset
How much a channel hears. A preset only narrows the consumer’s default pacing; it can never add event kinds (ariel ADR 0007/0009).
RedeemError
Why a link token could not be redeemed.

Constants§

AUDIT_ENTRIES_COLLECTION
CHANNELS_COLLECTION
FLEET_AUDIT_NAMESPACE
Namespace for audit entries, kept apart so daemon auth (ADR 0015) can scope audit access separately.
FLEET_NAMESPACE
Namespace for people, bindings, grants, channel configs and link tokens.
IDENTITY_BINDINGS_COLLECTION
LINK_TOKENS_COLLECTION
PEOPLE_COLLECTION
ROLE_GRANTS_COLLECTION