Skip to main content

Module replay_metrics

Module replay_metrics 

Source
Expand description

OpenTelemetry signals for fail-closed OAuth replay barriers.

Constants§

ATPROTO_SERVICE_ASSERTION
CLIENT_ASSERTION
DPOP

Functions§

record_rejection
Record every failed replay-barrier insertion. The reason attribute makes a blocked replay distinguishable from legitimate traffic refused because the fail-closed barrier is saturated.
should_warn_full
Return true at most once per barrier per minute for a full-barrier rejection. Metrics still record every rejection; this only prevents an attacker from turning saturation into unbounded warning-log volume.