couchdb
couchdb copied to clipboard
Temporary account lockout for repeated auth failure
Overview
Enhance couchdb to efficiently reject requests for a given user if repeated requests have failed for authentication reasons, from the same IP address. This helps slow brute-force password attacks and is especially helpful if each authentication attempt is very expensive (pbkdf2 with a high iteration count, typically).
Testing recommendations
will be covered by automated tests
Related Issues or Pull Requests
Checklist
- [x] Code is written and works correctly
- [x] Changes are covered by tests
- [x] Any new configurable parameters are documented in
rel/overlay/etc/default.ini - [ ] Documentation changes were made in the
src/docsfolder - [ ] Documentation changes were backported (separated PR) to affected branches
Would
couch_auth_lock[out].erlbe a clearer name for the module instead ofcouch_lockout.erl?
lockout is its own thing, e.g. https://en.wikipedia.org/wiki/Lockout_%28industry%29