Skip to content
Snippets Groups Projects
Verified Commit 8074f8d4 authored by Sven-Hendrik Haase's avatar Sven-Hendrik Haase
Browse files

Set basic password policy and add bruteforce protection

parent 5d0018b6
No related branches found
No related tags found
1 merge request!13Set basic password policy and add bruteforce protection
Pipeline #78 failed
......@@ -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" {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment