Skip to main content

Crate gatekeep_keepsake

Crate gatekeep_keepsake 

Source
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§

FactBinding
Mapping from one gatekeep fact to one keepsake relation.
KeepsakeRelationTarget
Resolved keepsake target for a gatekeep fact binding.
KeepsakeResolver
Resolves gatekeep facts from active keepsake relations for the principal.
PrincipalSubjectMapper
Principal-only subject mapper for applications that already encode tenancy in keepsake subject identifiers.
TenantScopedSubjectMapper
Default tenant-aware subject mapper.

Enums§

FactBindingError
Errors returned while building typed fact bindings.
KeepsakeResolveError
Backend error emitted by crate::KeepsakeResolver.
KeepsakeTargetError
Errors returned while resolving a gatekeep fact into a keepsake target.
QueryPresence
Whether a keepsake-backed fact is resolved during query preparation.

Traits§

ActiveRelationSource
Async read-side boundary for active relation state.
DynActiveRelationSource
Object-safe active relation source for application composition boundaries.
SubjectMapper
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.