esdb_revocation (reckon_db v1.2.7)
View SourceToken revocation management for reckon-db.
Manages revocation of capability tokens. Tokens can be revoked before their expiration when:
- A key is compromised
- An identity is removed from the system
- Permissions need to be immediately revoked
This module supports multiple revocation strategies:
- Local ETS (current): Fast local lookups, no distribution
- Gossip (planned): Eventually consistent, partition tolerant
- Epoch-based (planned): Revoke all tokens before a timestamp
Summary
Functions
Clear all revocations (for testing)
Get all active revocations (for debugging/monitoring)
Check if an issuer DID is revoked
Check if a token CID is revoked
Revoke a token by its CID
Revoke a token with a reason
Revoke all tokens from an issuer
Start the revocation server
Functions
-spec clear() -> ok.
Clear all revocations (for testing)
Get all active revocations (for debugging/monitoring)
Check if an issuer DID is revoked
Check if a token CID is revoked
-spec revoke(binary()) -> ok.
Revoke a token by its CID
Revoke a token with a reason
-spec revoke_issuer(binary()) -> ok.
Revoke all tokens from an issuer
This is useful when an identity is compromised or removed. All tokens with this issuer DID will be considered revoked.
Start the revocation server