Skip to main content

Crate aequora_security

Crate aequora_security 

Source
Expand description

Runtime-, transport-, provider-, and database-neutral security contracts.

The crate turns Part 27’s threat model into typed, fail-closed boundaries. Authentication adapters establish AuthenticationEvidence; authoritative services consume only a ValidatedAuthContext. External inputs pass explicit budgets, outbound destinations are checked after DNS resolution, durable operation identities bind immutable semantics, and security telemetry remains payload-free and low-cardinality.

Structs§

ArchiveEntry
Archive entry metadata validated before extraction.
AuthenticationEvidence
Authentication evidence produced by a trusted authentication adapter.
AuthenticationPolicy
Authentication policy enforced before protected traffic enters domain authorization.
AuthorityEpochGuard
Authority rollback guard retained by clients and trusted stores.
AuthorizedResource
Resource whose trusted ownership matched the authenticated tenant.
EgressPolicy
Egress policy applied to every initial URL and every redirect.
InputShape
Measured shape supplied by a bounded decoder.
OperationBinding
Immutable semantic binding for one operation identity.
OperationReplayGuard
Bounded reference replay registry. Durable ledgers implement the same comparison contract.
ProtocolLimits
Bounds applied before or during parsing externally controlled input.
SecretString
Secret text that zeroizes on drop, never serializes, and always redacts Debug/Display.
SecurityEvent
Typed, payload-free security events for audit and immediate alert routing.
SecurityEventId
Stable identity of one security event.
SecurityInvariant
Stable Part 27 invariant registry entry.
SecurityPolicy
Complete security policy with explicit safe profiles.
SideEffectSafety
TenantBinding
Proof that a client claim was checked against server-derived identity.
TenantResource
Tenant ownership resolved from a trusted repository lookup.
UploadLimits
Bounds for uploaded blobs and archive expansion.
ValidatedAuthContext
Validated identity. Fields remain private so callers cannot construct trusted context directly.
ValidatedOutboundTarget
Destination checked against DNS answers. Revalidate immediately before every connection.

Enums§

ArchiveEntryKind
AssuranceLevel
Authentication strength used for step-up decisions.
AttackerClass
Attacker classes that every subsystem threat review must consider.
AuthMethod
Server-observed authentication mechanism.
BrowserControl
Mandatory browser control that a host adapter must enforce.
DeploymentControl
Deployment control required by a security profile.
DeviceState
Current server-side device state.
EpochDisposition
OutboundScheme
ReplayDisposition
ResourceKind
Identifier category used without exposing the underlying business identifier.
SecurityAsset
Critical assets enumerated by the normative threat model.
SecurityError
SecurityErrorCode
Stable client-safe error codes; variants do not carry secrets or internal details.
SecurityEventKind
SecurityLevel
Deployment security posture. These are architecture profiles, not certifications.
SecurityMetric
Metric series allowed by core. Identity values belong in access-controlled logs/traces.
SecuritySeverity
SideEffectRisk
Side-effect risk category used to enforce explicit idempotency/reconciliation.
TrustBoundary
Explicit boundary where data must be authenticated, authorized, and bounded again.

Constants§

ATTACKER_CLASSES
MAX_SECURITY_IDENTIFIER_BYTES
Maximum length of issuer, audience, host, and stable reason identifiers.
SECURITY_ASSETS
SECURITY_INVARIANTS
SECURITY_SCHEMA_VERSION
Schema version for serialized security policy and event contracts.
TRUST_BOUNDARIES