Skip to content
Snippets Groups Projects

Set basic password policy and add bruteforce protection

Merged Sven-Hendrik Haase requested to merge harden-keycloak into master
1 file
+ 13
0
Compare changes
  • Side-by-side
  • Inline
+ 13
0
@@ -43,6 +43,7 @@ resource "keycloak_realm" "archlinux" {
reset_password_allowed = true
verify_email = true
login_with_email_allowed = true
password_policy = "length(8) and notUsername"
smtp_server {
host = "mail.archlinux.org"
@@ -57,6 +58,18 @@ resource "keycloak_realm" "archlinux" {
password = data.external.keycloak_smtp_password.result.vault_keycloak_smtp_password
}
}
security_defenses {
brute_force_detection {
permanent_lockout = false
max_login_failures = 30
wait_increment_seconds = 60
quick_login_check_milli_seconds = 1000
minimum_quick_login_wait_seconds = 60
max_failure_wait_seconds = 900
failure_reset_time_seconds = 43200
}
}
}
resource "keycloak_saml_client" "saml_gitlab" {
Loading