Skip to content

Releases: rack/rack-attack

v5.4.2

31 Oct 14:16
v5.4.2
42a8a30
Compare
Choose a tag to compare

Fixed

  • Fix unexpected error when using redis 3 and any store which is not proxied

Changed

  • Provide better information in MisconfiguredStoreError exception message to aid end-user debugging

v5.4.1

29 Sep 21:28
v5.4.1
332eb40
Compare
Choose a tag to compare

Fixed

v5.4.0

02 Jul 17:28
v5.4.0
783060d
Compare
Choose a tag to compare

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

25 Jun 22:34
v5.3.2
21561bb
Compare
Choose a tag to compare

Fixed

v5.3.1

21 Jun 14:29
v5.3.1
1968681
Compare
Choose a tag to compare

Fixed

v5.3.0

19 Jun 19:22
v5.3.0
dac926c
Compare
Choose a tag to compare

Added

v5.2.0

29 Mar 20:31
389287f
Compare
Choose a tag to compare

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

10 Mar 15:26
c119186
Compare
Choose a tag to compare
  • Fixes edge case bug when using ruby 2.5 and redis #253 (#271)
  • Throws errors with better semantics when missing or misconfigured store caches to aid in developers debugging their configs (#274)
  • Removed legacy code that was originally intended for Rails 3 apps (#264)

v5.0.1

11 Aug 18:00
Compare
Choose a tag to compare
  • Fixes arguments passed to deprecated internal methods. (#198)

v5.0.0

09 Aug 17:03
Compare
Choose a tag to compare
  • Deprecate whitelist/blacklist in favor of safelist/blocklist. (#181,
    thanks @renee-travisci). To upgrade and fix deprecations, find and replace instances of whitelist and blacklist with safelist and blocklist. If you reference rack.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)