Skip to content
This repository has been archived by the owner on Apr 20, 2024. It is now read-only.

Releases: ml-archive/gatekeeper

Support Forwarded header

03 Sep 08:35
9009cfb
Compare
Choose a tag to compare

Support the Forwarded header in addition to the already supported X-Forwarded-For header (#22). Thanks @NeedleInAJayStack!

Version 4.1.0

13 Apr 11:00
02ec165
Compare
Choose a tag to compare
  • Adds expiration functionality recently added to the Vapor Cache to prevent the cache being filled up with stale values, such as old rate-limiting keys.
  • Allows customization of the error thrown if they client is sending too many requests:
req.gatekeeper.gatekeeper(on: req, throwing: MyError())
GatekeeperMiddleware(error: MyError())
  • Fixes an issue where effectively even if the config was 5 requests per second, the client would only really have 4 request available and be rate-limited on the 5th. They are now correctly first rate-limited on request no. 6.

Thanks again @madsodgaard !

Version 4.0.0

01 Mar 13:02
a9671f5
Compare
Choose a tag to compare

Updated for Vapor 4 thanks to @madsodgaard 🎉 🙏🏻

Version 3.0.0

06 May 07:34
6892a52
Compare
Choose a tag to compare

Migrated to Vapor 3 🎉

Version 2.0.1

28 Dec 10:28
0199170
Compare
Choose a tag to compare

Fixed

  • Broken tests.

Version 2.0.0

24 Oct 12:06
Compare
Choose a tag to compare

Changed

  • Removed the SSL enforcing functionality to simplify the responsibility of this package (to deal with rate limiting)

Version 1.0.0

30 May 08:01
Compare
Choose a tag to compare
  • Vapor 2 released 🎉

Version 0.1.0

27 Jan 03:54
Compare
Choose a tag to compare
Version 0.1.0 Pre-release
Pre-release

New:

  • Rate limiter
  • SSLEnforcer