Releases: codemonster-ru/security
Releases · codemonster-ru/security
Release v1.1.0
Added
- Trusted proxy support for rate limiting and IPv6 CIDR matching.
- Database and Redis throttle storages with atomic increments.
AtomicThrottleStorageInterfaceand atomicRateLimiter::attempt()flow.- Throttle presets with login (IP + account) support and
RateLimit-*headers. - Migration for throttle table and optional E2E tests for MySQL/Redis.
Changed
- Rate limiting key now uses request path (without query) by default.
csrf_field()respects configured input key;csrf_token()tries DI container when available.
Removed
LoginThrottleRequestsmiddleware (useThrottleRequestswithloginpreset).
Upgrade notes
- If you used
LoginThrottleRequests, switch toThrottleRequestswith theloginpreset. - For multi-node deployments, configure
storageasdatabaseorredis. - If you set a custom table name, ensure the migration uses
security.throttle.table.
Release v1.0.0
Added
- CSRF:
Codemonster\Security\Csrf\VerifyCsrfToken, token managerCodemonster\Security\Csrf\CsrfTokenManager, helperscsrf_token()andcsrf_field(). - Rate limiting:
Codemonster\Security\RateLimiting\ThrottleRequests,Codemonster\Security\RateLimiting\RateLimiter, storage contracts andSessionThrottleStorage. - Integration with Annabel:
Codemonster\Security\Providers\SecurityServiceProvider. - Tests for CSRF and rate limiter.