~xenrox/ansible

31a43b37f758d5b94f5ba087a1f32a0afe239314 — Thorben Günther 2 months ago ecd7e4f
terraform/keycloak: Enable event logging for prometheus metrics
1 files changed, 15 insertions(+), 0 deletions(-)

M terraform_keycloak/keycloak.tf
M terraform_keycloak/keycloak.tf => terraform_keycloak/keycloak.tf +15 -0
@@ 83,6 83,21 @@ resource "keycloak_required_action" "webauthn_register" {
  enabled  = true
}

resource "keycloak_realm_events" "realm_events" {
  realm_id = "xenrox"

  events_enabled    = true
  events_expiration = 2592000 # retain 30 days

  admin_events_enabled         = true
  admin_events_details_enabled = true

  events_listeners = [
    "jboss-logging",
    "metrics-listener"
  ]
}

# Login flow

resource "keycloak_authentication_flow" "webauthn" {