Releases: rack/rack-attack
Releases · rack/rack-attack
v5.4.2
v5.4.1
Fixed
- Make
ActiveSupport::Cache::MemCacheStore
also work as excepted when initialized with pool options (e.g.pool_size
). Thank you @jdelStrother.
v5.4.0
Added
- Support "plain"
Redis
as a cache store backend (#280). Thanks @bfad and @ryandv. - When overwriting
Rack::Attack.throttled_response
you can now access the exact epoch integer that was used for caching
so your custom code is less prone to race conditions (#282). Thanks @doliveirakn.
Dependency changes
- Explictly declare ancient
rack 0.x
series as incompatible in gemspec
v5.3.2
Fixed
- Don't raise exception
The Redis cache store requires the redis gem
when usingActiveSupport::Cache::MemoryStore
as a cache store backend
v5.3.1
Fixed
- Make
ActiveSupport::Cache::RedisCacheStore
also work as excepted when initialized with pool options (e.g.pool_size
)
v5.3.0
v5.2.0
Added
- Shorthand for blocking an IP address
Rack::Attack.blocklist_ip("1.2.3.4")
(#320) - Shorthand for blocking an IP subnet
Rack::Attack.blocklist_ip("1.2.0.0/16")
(#320) - Shorthand for safelisting an IP address
Rack::Attack.safelist_ip("5.6.7.8")
(#320) - Shorthand for safelisting an IP subnet
Rack::Attack.safelist_ip("5.6.0.0/16")
(#320) - Throw helpful error message when using
allow2ban
but cache store is misconfigured (#315) - Throw helpful error message when using
fail2ban
but cache store is misconfigured (#315)
v5.1.0
v5.0.1
v5.0.0
- Deprecate
whitelist
/blacklist
in favor ofsafelist
/blocklist
. (#181,
thanks @renee-travisci). To upgrade and fix deprecations, find and replace instances ofwhitelist
andblacklist
withsafelist
andblocklist
. If you referencerack.attack.match_type
, note that it will have values like:safelist
/:blocklist
. - Remove test coverage for unsupported ruby dependencies: ruby 2.0, activesupport 3.2/4.0, and dalli 1.
- Document example for setting
X-RateLimit-*
response headers (#193)