Expand description
Simple Security Management API Endpoints
This module provides basic endpoints for managing security features:
- IP blacklisting and whitelisting
- Security statistics and monitoring
Structs§
Functions§
- blacklist_
ip_ endpoint - POST /api/v1/security/blacklist Add an IP address to the blacklist
- increment_
failed_ auth - Increment failed authentication attempts (for middleware use)
- increment_
suspicious_ activity - Increment suspicious activity counter (for middleware use)
- is_
ip_ blacklisted - Check if an IP address is blacklisted (for middleware use)
- stats_
endpoint - GET /api/v1/security/stats Get security statistics
- unblock_
ip_ endpoint - DELETE /api/v1/security/blacklist/{ip} Remove an IP address from the blacklist