|
Entropic 2.14.3
Local-first agentic inference engine
|
Refuses after repeated authentication failures (decision #84). More...
#include </home/runner/work/entropic/entropic/src/facade/http_listener.h>
Public Types | |
| using | Clock = std::chrono::steady_clock |
Public Member Functions | |
| bool | blocked (Clock::time_point now) const |
Whether requests are refused at now. | |
| void | record_failure (Clock::time_point now) |
Record one failed authentication at now. | |
Refuses after repeated authentication failures (decision #84).
Five failures inside one minute block every request for thirty seconds. Thread-safe; the clock is passed in so the policy is testable.
@dg_internal
Definition at line 137 of file http_listener.h.
| using entropic::http::AuthThrottle::Clock = std::chrono::steady_clock |
Definition at line 139 of file http_listener.h.
| bool entropic::http::AuthThrottle::blocked | ( | Clock::time_point | now | ) | const |
Whether requests are refused at now.
| now | Current time. |
| now | Current time. |
Definition at line 197 of file http_listener.cpp.
| void entropic::http::AuthThrottle::record_failure | ( | Clock::time_point | now | ) |
Record one failed authentication at now.
| now | Current time. |
| now | Current time. @req REQ-BRIDGE-001 |
Definition at line 208 of file http_listener.cpp.