LoginAttempt: Add setting to control max number of attempts before user login gets locked (#97091)

* Add setting to adjust number of login attempts before user login gets locked

* Ensure at least one attempt can be made

* Update documentation with new setting

* Update docs/sources/setup-grafana/configure-grafana/_index.md

Co-authored-by: Eric Leijonmarck <eric.leijonmarck@gmail.com>
This commit is contained in:
Karl Persson
2024-11-28 14:33:18 +01:00
committed by GitHub
parent f2b96593ea
commit b2626a2d65
6 changed files with 37 additions and 18 deletions

View File

@@ -351,6 +351,9 @@ data_source_proxy_whitelist =
# disable protection against brute force login attempts
disable_brute_force_login_protection = false
# max number of failed login attempts before user gets locked
brute_force_login_protection_max_attempts = 5
# set to true if you host Grafana behind HTTPS. default is false.
cookie_secure = false

View File

@@ -350,6 +350,9 @@
# disable protection against brute force login attempts
;disable_brute_force_login_protection = false
# max number of failed login attempts before user gets locked
;brute_force_login_protection_max_attempts = 5
# set to true if you host Grafana behind HTTPS. default is false.
;cookie_secure = false