Expand description
Keepsake-backed fact resolution for gatekeep.
The adapter maps gatekeep FactIds to keepsake relation ids. Full decisions
resolve those facts from the principal’s active keepsakes. Query resolution
can either do the same request-scoped lookup or mark selected facts as
Unknown so a later QueryLowering adapter can turn them into row
predicates.
Structs§
- Fact
Binding - Mapping from one gatekeep fact to one keepsake relation.
- Keepsake
Relation Target - Resolved keepsake target for a gatekeep fact binding.
- Keepsake
Resolver - Resolves gatekeep facts from active keepsake relations for the principal.
- Principal
Subject Mapper - Principal-only subject mapper for applications that already encode tenancy in keepsake subject identifiers.
- Tenant
Scoped Subject Mapper - Default tenant-aware subject mapper.
Enums§
- Fact
Binding Error - Errors returned while building typed fact bindings.
- Keepsake
Resolve Error - Backend error emitted by
crate::KeepsakeResolver. - Keepsake
Target Error - Errors returned while resolving a gatekeep fact into a keepsake target.
- Query
Presence - Whether a keepsake-backed fact is resolved during query preparation.
Traits§
- Active
Relation Source - Async read-side boundary for active relation state.
- DynActive
Relation Source - Object-safe active relation source for application composition boundaries.
- Subject
Mapper - Maps a gatekeep request context to the keepsake subject being resolved.
Functions§
- principal_
subject - Maps a gatekeep context through
PrincipalSubjectMapper. - tenant_
scoped_ subject - Maps a gatekeep context through
TenantScopedSubjectMapper.