Expand description
Signed enterprise access control for Blindplane.
This crate provides application-neutral principals, administrator-signed role-key grants, default-deny capability policies, signed revocation state, and audit events encrypted for both an owning user and tenant administrators. Callers supply trusted issuer keys, current time, persistence, and identity onboarding. The library performs no network I/O and never treats an embedded issuer key as trusted by itself.
Private-key operations and audit-event sealing are enabled by the default
client feature. Disable default features for a server-safe build that can
decode and validate signed access objects but cannot open role grants.
Run cargo run -p blindplane-access --example enterprise_access for a
complete user/admin flow.
Structs§
- Access
Grant - Canonical signed grant carrying one HPKE-wrapped role secret.
- Access
Issuer - Client-held tenant issuer signing key.
- Access
Validation Policy - Bounds applied while decoding untrusted access objects.
- Audit
Context - Clear routing fields authenticated by both record signature and payload AEAD.
- Audit
Event - Full encrypted event content visible to the owning user and tenant administrators.
- Capability
Rule - One exact capability rule.
- Grant
Spec - Inputs signed into a role-key grant.
- Permissions
- Permissions carried by a role-key grant.
- Policy
Spec - Inputs signed into one tenant policy.
- Principal
- Public identity and key descriptor for an access subject.
- Principal
Keypair - Client-held encryption and signing keys for one principal.
- Revocation
Spec - Monotonic floors signed into a revocation state.
- Revocation
State - Signed epoch floors for one
(tenant, subject, scope)tuple. - Role
Keypair - Client-held X25519 role key used as a sealed-record recipient.
- Tenant
Policy - Canonical administrator-signed capability policy for one subject.
- Trusted
Issuer - A pinned issuer descriptor supplied through an authenticated channel.
- Verified
Policy - A policy that passed trust, routing, freshness, epoch, and time checks.
- Verified
Revocation - Revocation state that passed issuer and tuple verification.
Enums§
- Access
Error - A structural, trust, policy, or cryptographic access failure.
- Audit
Event Kind - Kind of encrypted enterprise audit event.
- Capability
Kind - Capability namespace interpreted by an embedding adapter.
- Decision
- Result of evaluating a verified capability policy.
- Effect
- Signed rule effect.
- Principal
Kind - The endpoint represented by a principal descriptor.
Constants§
- ACCESS_
FORMAT_ VERSION - Canonical access-object format version.
Functions§
- open_
audit_ event - Open and context-check an event using either its subject role or tenant admin role.
- seal_
audit_ event - Seal an event for exactly its subject role and the tenant administrator role.