Skip to main content

Module authorization

Module authorization 

Source
Expand description

Fail-closed bridge from signed QualiaDB consent to source-bound sensing authority.

The existing ConsentScope covers health record families, not sensor sources or acquisition/processing acts. This module therefore requires host-provided identity, sensor-scope, revocation, and trusted-clock authorities. It never treats a Quin or caller-supplied identity projection as authorization.

This is one optional adapter for the existing signed grant, not the sole policy framework for sensing. The host must separately resolve data-subject ownership and any applicable guardianship through its selected policy system; this module alone does not bind or decide those relationships.

Structs§

RevalidatedSensingUse
Fresh, non-copy, exact-request handle for one immediate operation. It carries no persistent authority; callers must consume it at the operation boundary.
SensingPermit
One-shot policy decision, not durable authorization. Before use, consume it through revalidate, which rechecks trusted time, identity, scope and live revocation. It is not a device receipt or proof that capture occurred.
SensingRequest
Exact operation requested under a consent grant.

Enums§

AuthorizationError
SensingAction
Distinct actions so capture consent cannot implicitly authorize later use.
SensingModality
Sensor family selected by the caller. NFC is distinct from Bluetooth even when both observations contain radio protocol identifiers. Unknown or future families need an explicit policy implementation before authorization.

Traits§

IdentityAuthority
Required fail-closed integration authorities. Implementations are trust boundaries and must be backed by authenticated identity, a sensor-specific signed scope assertion, durable revocation state, and a trusted clock.
RevocationAuthority
SensingScopeAuthority
TrustedUnixClock

Functions§

authorize_sensing
Verify grant signature/expiry, principal-recipient binding, exact purpose, sensor scope, and complete revocation state before minting a permit.