Expand description
Authorization module for RBAC/ABAC access control
Uses Casbin for policy-based access control with policies
stored in the .registry/policies/ directory.
Also provides JWT token authentication with Ed25519 signatures.
Re-exports§
pub use federation::FederationKeyResolver;pub use key_rotation::Es256KeySlot;pub use key_rotation::Es256SigningKeyStore;pub use key_rotation::RotationStores;pub use key_rotation::SigningKeyStore;pub use key_rotation::MlDsaKeySlot;pub use key_rotation::MlDsaSigningKeyStore;pub use op_log::load_head_verifying_key;pub use op_log::load_or_init_head_signing_key;pub use op_log::publish_head_verifying_key;pub use op_log::resolve_oplog_state_dir;pub use op_log::seal_op_log_head;pub use op_log::ActiveGeneration;pub use op_log::ActiveGenerationSource;pub use op_log::FixedGenerationSource;pub use op_log::SealedHeadEs256Source;pub use op_log::SealedOpLogHead;pub use pglite_store::PgliteUserStore;pub use policy_migration::migrate_policy_csv;pub use policy_templates::get_template;pub use policy_templates::get_templates;pub use policy_templates::PolicyTemplate;pub use policy_templates::ServicePolicyRule;pub use policy_templates::SERVICE_BASE_POLICIES;pub use rocksdb_store::RocksDbUserStore;pub use user_store::decode_pubkey_base64;pub use user_store::pubkey_fingerprint;pub use user_store::AccountKeyCustody;pub use user_store::DeviceRecord;pub use user_store::DeviceStore;pub use user_store::ExternalIdentityBinding;pub use user_store::ExternalIdentityResolution;pub use user_store::HostedAccountProvisionError;pub use user_store::HostedAccountProvisioning;pub use user_store::KeyAlgorithm;pub use user_store::PubkeyEntry;pub use user_store::UserFilter;pub use user_store::UserProfile;pub use user_store::UserProfilePatch;pub use user_store::UserStore;
Modules§
- device_
challenge - Anonymous device enrollment — stateless HMAC challenge and Ed25519 verification.
- encrypted_
columns - Envelope encryption for relational
UserStorevalue columns (#1377). - federation
- JWKS fetch and cache for multi-issuer JWT verification.
- federation_
admission hyprstream-side wiring for the federation admission gate (#137, M3).- id_
token_ verify - External IdP id_token verification with multi-algorithm JWKS support.
- identity_
store - Persistent file-based credential storage.
- jwks_
fetcher - TLS-validated JWKS retrieval for the service-authentication path.
- jwt
- JWT token implementation.
- key_
rotation - JWT signing key rotation — multi-slot drain/active/lead lifecycle.
- mesh_
trust - Admin-anchored mesh post-quantum trust store construction (#157, Option A).
- op_log
- C4 (#1170): the sealed op-log head — cross-process source of truth for the
active
#atprotoES256 generation. Closes #1123. - pglite_
store - Relational
UserStoreon the shared #1351 embedded PostgreSQL handle. - policy_
migration - Policy CSV migration from flat to dot-namespaced action strings.
- policy_
templates - Built-in policy templates for bootstrapping access control
- proof_
enrollment - v16 request-proof signer enrollment manifest (design §4.4, §11).
- rocksdb_
store - RocksDB-backed user store with Cap’n Proto serialization.
- service_
enrollment - Service enrollment manifest — the authority-owned declaration of service identity, target clearance, allowed audiences, and workload-session policy (v16 §11).
- service_
jwt - Shared helper for service JWT issuance with load-or-renew semantics.
- user_
store - User credential store abstraction.
Structs§
- Claims
- JWT claims for authentication.
- Policy
Manager - Policy manager wrapping Casbin enforcer
- Production
User Store - Opaque handle proving that an account store passed production admission.
Enums§
- JwtError
- Errors from JWT operations
- Operation
- Operation types that can be controlled via policies
- Policy
Error - Errors from policy operations
- Scope
Action
Constants§
- SCHEMA_
SCOPE_ ACTIONS - Every schema-defined scope action, in its Cap’n Proto ordinal order.
Functions§
- capabilities_
to_ access_ string - Convert capabilities to an access string based on policy
- federation_
registration_ resource - Encode a normalized federation origin as a policy resource.
- global_
policy_ manager - Access the process-global PolicyManager. Returns
Nonebefore PolicyService starts. - scope_
action_ from_ name - Parse a canonical capability token into the generated schema action. Unknown tokens fail closed.
- scope_
action_ name - Return the canonical capability token for a generated schema action.
- set_
global_ policy_ manager - Set the process-global PolicyManager. Called once by the PolicyService factory.
- write_
policy_ file - Write a policy file with restrictive permissions (0o640 on Unix).