Skip to main content

Crate chronix_security

Crate chronix_security 

Source
Expand description

§Chronix Security

The consolidated security layer for Chronix:

  • auth — authentication: API keys (Argon2), JWT/OIDC (JWKS discovery, jti replay protection), mTLS client certificates, encryption at rest (AES-256-GCM with pluggable key providers and automated rotation).
  • authz — authorization: Cedar-based RBAC + ABAC with default-deny semantics, policy hot-reload, schema validation, and row-level policies.
  • audit — tamper-evident audit trail: HMAC-SHA256 hash-chained records with pluggable sinks (memory, file, tracing, webhook).
  • tenant — multi-tenancy: namespace registry and per-tenant quota enforcement.

All submodules are independent; embedded deployments that need none of this simply never construct the types.

Modules§

audit
Chronix Audit — Structured Audit Logging
auth
Authentication
authz
Chronix Authz — Cedar-based Authorization
tenant
Multi-tenant namespace isolation and quota enforcement for Chronix.