Skip to main content

AlpeNonce

Stores consumed ALPE nonces for replay-attack detection.

Entries are automatically pruned after ``expires_at`` via a scheduled
15-minute maintenance sweep (registered in ``DatabaseNonceAdapter``).

This table uses the standard ``BaseDocType`` UUID PK (``id``) with a
``UNIQUE`` index on ``nonce`` to support ``ON CONFLICT`` deduplication.
The pattern mirrors ``IdempotencyKey`` exactly.

Source: alpe_nonce.py

Fields​

FieldTypeRequiredDescriptionValidators
noncestrRFC 4122 v4 UUID nonce from the JWE Protected Header.maxLen: 64
expires_atdatetimeExpiry timestamp after which this record may be pruned.-

Configuration​

SettingValue
SubmittableFalse
Track ChangesTrue

Controller​

Controller hooks are implemented in *_controller.py files. Available lifecycle hooks:

  • validate() - Called before save, raise exceptions for validation errors
  • before_insert() - Called before inserting a new document
  • after_insert() - Called after successfully inserting
  • before_save() - Called before saving (insert or update)
  • after_save() - Called after saving
  • before_delete() - Called before deleting
  • after_delete() - Called after deleting