Skip to content

@grzuy grzuy released this Apr 18, 2019 · 6 commits to master since this release

Added

  • #blocklist and #safelist name argument (the first one) is now optional.
  • Added support to subscribe only to specific event types via ActiveSupport::Notifications, e.g. subscribe to the
    throttle.rack_attack or the blocklist.rack_attack event.

Changed

  • Changed ActiveSupport::Notifications event naming to comply with the recommneded format.

Deprecated

  • Subscriptions via ActiveSupport::Notifications to the "rack.attack" event will continue to work (receive event
    notifications), but it is going to be removed in a future version. Replace the event name with /rack_attack/ to
    continue to be subscribed to all events, or "throttle.rack_attack" e.g. for specific type of events only.

Removed

  • Removed support for ruby 2.2.
  • Removed support for obsolete memcache-client as a cache store.
  • Removed deprecated methods #blacklist and #whitelist (use #blocklist and #safelist instead).
Assets 2

@grzuy grzuy released this Oct 31, 2018 · 102 commits to master since this release

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
Assets 2

@grzuy grzuy released this Sep 29, 2018 · 102 commits to master since this release

Fixed

Assets 2

@grzuy grzuy released this Jul 2, 2018 · 102 commits to master since this release

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
Assets 2

@grzuy grzuy released this Jun 25, 2018 · 111 commits to master since this release

Fixed

Assets 2

@grzuy grzuy released this Jun 21, 2018 · 145 commits to master since this release

Fixed

Assets 2

@grzuy grzuy released this Jun 19, 2018 · 160 commits to master since this release

Added

Assets 2

@grzuy grzuy released this Mar 29, 2018 · 200 commits to master since this release

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)
Assets 2

@grzuy grzuy released this Mar 10, 2018 · 259 commits to master since this release

  • 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)
Assets 2

@ktheory ktheory released this Aug 11, 2016 · 323 commits to master since this release

  • Fixes arguments passed to deprecated internal methods. (#198)
Assets 2
You can’t perform that action at this time.