feat: Add 2martens realm

This commit is contained in:
2025-01-28 10:42:59 +01:00
parent 7f87831117
commit 2a20d3d505
2 changed files with 23 additions and 1 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ api_client = ApiClient(api_url=ApiClient.API_LIVE_URL, debug_mode=True)
login_result = api_client.login(username, password) login_result = api_client.login(username, password)
if login_result['code'] == 1000: if login_result['code'] == 1000:
record_result = api_client.call_api(api_method='nameserver.info', method_params={'domain': domain}) record_result = api_client.call_api(api_method='nameserver.list')
if record_result['code'] == 1000: if record_result['code'] == 1000:
records = record_result['resData']['record'] records = record_result['resData']['record']
+22
View File
@@ -0,0 +1,22 @@
resource "keycloak_realm" "2martens_realm" {
realm = "2martens"
enabled = true
display_name = "2martens Applications"
display_name_html = "<div class=\"kc-logo-text\"><span>2martens</span></div>"
login_theme = "keycloak.v2"
account_theme = "keycloak.v3"
admin_theme = "keycloak.v2"
email_theme = "keycloak"
# Security settings
password_policy = "upperCase(1) and length(12) and forceExpiredPasswordChange(365) and notUsername"
# Brute force protection
security_defenses {
brute_force_detection {
max_login_failures = 5
}
}
}