grafana/pkg
Marcus Efraimsson 3d1c624c12 WIP: Protect against brute force (frequent) login attempts (#10031)
* db: add login attempt migrations

* db: add possibility to create login attempts

* db: add possibility to retrieve login attempt count per username

* auth: validation and update of login attempts for invalid credentials

If login attempt count for user authenticating is 5 or more the last 5 minutes
we temporarily block the user access to login

* db: add possibility to delete expired login attempts

* cleanup: Delete login attempts older than 10 minutes

The cleanup job are running continuously and triggering each 10 minute

* fix typo: rename consequent to consequent

* auth: enable login attempt validation for ldap logins

* auth: disable login attempts validation by configuration

Setting is named DisableLoginAttemptsValidation and is false by default
Config disable_login_attempts_validation is placed under security section
#7616

* auth: don't run cleanup of login attempts if feature is disabled

#7616

* auth: rename settings.go to ldap_settings.go

* auth: refactor AuthenticateUser

Extract grafana login, ldap login and login attemp validation together
with their tests to separate files.
Enables testing of many more aspects when authenticating a user.
#7616

* auth: rename login attempt validation to brute force login protection

Setting DisableLoginAttemptsValidation => DisableBruteForceLoginProtection
Configuration disable_login_attempts_validation => disable_brute_force_login_protection
#7616
2018-01-26 10:41:41 +01:00
..
api WIP: Protect against brute force (frequent) login attempts (#10031) 2018-01-26 10:41:41 +01:00
bus (format) run go fmt in pkg 2016-12-14 12:17:38 +09:00
cmd dont spawn new subprocess while shutting down 2017-12-25 14:12:25 +01:00
components imguploader: Add support for new internal image store (#6922) 2018-01-12 21:40:12 +01:00
events feat(signup): progress on new sign up and email verification flow, #2353 2015-08-28 15:14:24 +02:00
log uses pluginmanagers log instead of global 2018-01-10 11:49:40 +01:00
login WIP: Protect against brute force (frequent) login attempts (#10031) 2018-01-26 10:41:41 +01:00
metrics stats: send amount of stars as stats 2018-01-23 22:51:05 +01:00
middleware Use strings.TrimPrefix to make sure relative url doesn't start with forward slash 2017-12-19 03:01:33 -05:00
models WIP: Protect against brute force (frequent) login attempts (#10031) 2018-01-26 10:41:41 +01:00
plugins plugins: map error property on query result 2018-01-24 10:37:04 +01:00
services WIP: Protect against brute force (frequent) login attempts (#10031) 2018-01-26 10:41:41 +01:00
setting WIP: Protect against brute force (frequent) login attempts (#10031) 2018-01-26 10:41:41 +01:00
social refactor: minor refactoring of PR #10560 2018-01-23 13:03:44 +01:00
tracing jaeger: capitalize tracer name 2017-09-27 16:38:00 +02:00
tsdb Cloudwatch: add support for multi instances (#10570) 2018-01-24 15:41:42 +01:00
util move systemd ready notification to server.go 2017-12-01 14:02:05 +01:00