Skip to main content

AccountRecordReadAuthorizer

Trait AccountRecordReadAuthorizer 

Source
pub trait AccountRecordReadAuthorizer: Send + Sync {
    // Required method
    fn check_read(
        &self,
        subject: &Subject,
        verified_tenant: Option<&str>,
        security_context: Option<&SecurityContext>,
        object_id: &str,
    ) -> MacDecision;
}
Expand description

Mandatory MAC capability for account-record reads.

Implementations resolve the subject clearance and the trusted label of the exact canonical object_id, apply the lattice floor, and audit every MAC decision. Input-validation and mount-resolution errors are not policy decisions; they fail before an object read is attempted. The account store has no constructor without this capability.

Required Methods§

Source

fn check_read( &self, subject: &Subject, verified_tenant: Option<&str>, security_context: Option<&SecurityContext>, object_id: &str, ) -> MacDecision

Check a read before the store opens or reads the fid bound to object_id.

security_context is derived from the verified request envelope and retains its assurance and delegated attenuation. It is None only when the request had no MAC clearance, or for the fixed OAuth service’s tenant-index lookup before a hosted-account binding has been resolved.

Implementors§