Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions validators/_cases/keycloak_admin_events_details_enabled.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
validator: keycloak_admin_events_details_enabled
cases:
- name: compliant
expect: PASS
artifact: '{"metadata": {"exit_code": 0, "status": "success"}, "payload": {"metadata": {"api_failures": [], "base_url": "https://keycloak.admin.example.com", "datetime": "2026-11-17T00:00:00Z", "partial_failure": false, "realm": "uds"}, "results": {}, "summary": {"access_token_lifespan_minutes": 1.0, "admin_events_details_enabled": true, "admin_events_enabled": true, "browser_flow": "UDS Authentication", "browser_flow_alternative_authenticators": [], "browser_flow_always_required_authenticators": ["auth-x509-client-username-form", "webauthn-authenticator"], "browser_flow_conditional_authenticators": [], "browser_flow_phishing_resistant_always_required": true, "brute_force_protected": true, "default_required_actions": ["TERMS_AND_CONDITIONS", "webauthn-register"], "event_listeners": ["jboss-logging"], "identity_provider_types": ["oidc"], "identity_providers_enabled": 1, "lockout_failure_threshold": 3, "lockout_max_wait_minutes": 15.0, "login_events_enabled": true, "login_events_expiration_days": 90.0, "password_expiry_days": 60, "password_history": 24, "password_min_length": 15, "password_policy_rules": ["forceExpiredPasswordChange", "length", "notUsername", "passwordHistory"], "permanent_lockout": true, "realm_enabled": true, "registration_allowed": false, "remember_me_enabled": false, "reset_credentials_authenticators": ["reset-credential-email", "reset-credentials-choose-user"], "ssl_required": "all", "sso_session_idle_timeout_minutes": 15.0, "sso_session_max_lifespan_minutes": 600.0, "terms_and_conditions_default_action": true, "terms_and_conditions_enabled": true, "user_federation_providers": 1}}}'

- name: non_compliant
expect: FAIL
artifact: '{"metadata": {"exit_code": 0, "status": "success"}, "payload": {"metadata": {"api_failures": [], "base_url": "https://keycloak.admin.example.com", "datetime": "2026-11-17T00:00:00Z", "partial_failure": false, "realm": "uds"}, "results": {}, "summary": {"access_token_lifespan_minutes": 1.0, "admin_events_details_enabled": false, "admin_events_enabled": true, "browser_flow": "UDS Authentication", "browser_flow_alternative_authenticators": [], "browser_flow_always_required_authenticators": ["auth-x509-client-username-form", "webauthn-authenticator"], "browser_flow_conditional_authenticators": [], "browser_flow_phishing_resistant_always_required": true, "brute_force_protected": true, "default_required_actions": ["TERMS_AND_CONDITIONS", "webauthn-register"], "event_listeners": ["jboss-logging"], "identity_provider_types": ["oidc"], "identity_providers_enabled": 1, "lockout_failure_threshold": 3, "lockout_max_wait_minutes": 15.0, "login_events_enabled": true, "login_events_expiration_days": 90.0, "password_expiry_days": 60, "password_history": 24, "password_min_length": 15, "password_policy_rules": ["forceExpiredPasswordChange", "length", "notUsername", "passwordHistory"], "permanent_lockout": true, "realm_enabled": true, "registration_allowed": false, "remember_me_enabled": false, "reset_credentials_authenticators": ["reset-credential-email", "reset-credentials-choose-user"], "ssl_required": "all", "sso_session_idle_timeout_minutes": 15.0, "sso_session_max_lifespan_minutes": 600.0, "terms_and_conditions_default_action": true, "terms_and_conditions_enabled": true, "user_federation_providers": 1}}}'

- name: unread_null
expect: FAIL
artifact: '{"metadata": {"exit_code": 0, "status": "success"}, "payload": {"metadata": {"api_failures": [], "base_url": "https://keycloak.admin.example.com", "datetime": "2026-11-17T00:00:00Z", "partial_failure": false, "realm": "uds"}, "results": {}, "summary": {"access_token_lifespan_minutes": 1.0, "admin_events_details_enabled": null, "admin_events_enabled": true, "browser_flow": "UDS Authentication", "browser_flow_alternative_authenticators": [], "browser_flow_always_required_authenticators": ["auth-x509-client-username-form", "webauthn-authenticator"], "browser_flow_conditional_authenticators": [], "browser_flow_phishing_resistant_always_required": true, "brute_force_protected": true, "default_required_actions": ["TERMS_AND_CONDITIONS", "webauthn-register"], "event_listeners": ["jboss-logging"], "identity_provider_types": ["oidc"], "identity_providers_enabled": 1, "lockout_failure_threshold": 3, "lockout_max_wait_minutes": 15.0, "login_events_enabled": true, "login_events_expiration_days": 90.0, "password_expiry_days": 60, "password_history": 24, "password_min_length": 15, "password_policy_rules": ["forceExpiredPasswordChange", "length", "notUsername", "passwordHistory"], "permanent_lockout": true, "realm_enabled": true, "registration_allowed": false, "remember_me_enabled": false, "reset_credentials_authenticators": ["reset-credential-email", "reset-credentials-choose-user"], "ssl_required": "all", "sso_session_idle_timeout_minutes": 15.0, "sso_session_max_lifespan_minutes": 600.0, "terms_and_conditions_default_action": true, "terms_and_conditions_enabled": true, "user_federation_providers": 1}}}'

- name: renamed
expect: FAIL
artifact: '{"metadata": {"exit_code": 0, "status": "success"}, "payload": {"metadata": {"api_failures": [], "base_url": "https://keycloak.admin.example.com", "datetime": "2026-11-17T00:00:00Z", "partial_failure": false, "realm": "uds"}, "results": {}, "summary": {"access_token_lifespan_minutes": 1.0, "admin_events_details_enabled_renamed": true, "admin_events_enabled": true, "browser_flow": "UDS Authentication", "browser_flow_alternative_authenticators": [], "browser_flow_always_required_authenticators": ["auth-x509-client-username-form", "webauthn-authenticator"], "browser_flow_conditional_authenticators": [], "browser_flow_phishing_resistant_always_required": true, "brute_force_protected": true, "default_required_actions": ["TERMS_AND_CONDITIONS", "webauthn-register"], "event_listeners": ["jboss-logging"], "identity_provider_types": ["oidc"], "identity_providers_enabled": 1, "lockout_failure_threshold": 3, "lockout_max_wait_minutes": 15.0, "login_events_enabled": true, "login_events_expiration_days": 90.0, "password_expiry_days": 60, "password_history": 24, "password_min_length": 15, "password_policy_rules": ["forceExpiredPasswordChange", "length", "notUsername", "passwordHistory"], "permanent_lockout": true, "realm_enabled": true, "registration_allowed": false, "remember_me_enabled": false, "reset_credentials_authenticators": ["reset-credential-email", "reset-credentials-choose-user"], "ssl_required": "all", "sso_session_idle_timeout_minutes": 15.0, "sso_session_max_lifespan_minutes": 600.0, "terms_and_conditions_default_action": true, "terms_and_conditions_enabled": true, "user_federation_providers": 1}}}'
17 changes: 17 additions & 0 deletions validators/_cases/keycloak_admin_events_enabled.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
validator: keycloak_admin_events_enabled
cases:
- name: compliant
expect: PASS
artifact: '{"metadata": {"exit_code": 0, "status": "success"}, "payload": {"metadata": {"api_failures": [], "base_url": "https://keycloak.admin.example.com", "datetime": "2026-11-17T00:00:00Z", "partial_failure": false, "realm": "uds"}, "results": {}, "summary": {"access_token_lifespan_minutes": 1.0, "admin_events_details_enabled": true, "admin_events_enabled": true, "browser_flow": "UDS Authentication", "browser_flow_alternative_authenticators": [], "browser_flow_always_required_authenticators": ["auth-x509-client-username-form", "webauthn-authenticator"], "browser_flow_conditional_authenticators": [], "browser_flow_phishing_resistant_always_required": true, "brute_force_protected": true, "default_required_actions": ["TERMS_AND_CONDITIONS", "webauthn-register"], "event_listeners": ["jboss-logging"], "identity_provider_types": ["oidc"], "identity_providers_enabled": 1, "lockout_failure_threshold": 3, "lockout_max_wait_minutes": 15.0, "login_events_enabled": true, "login_events_expiration_days": 90.0, "password_expiry_days": 60, "password_history": 24, "password_min_length": 15, "password_policy_rules": ["forceExpiredPasswordChange", "length", "notUsername", "passwordHistory"], "permanent_lockout": true, "realm_enabled": true, "registration_allowed": false, "remember_me_enabled": false, "reset_credentials_authenticators": ["reset-credential-email", "reset-credentials-choose-user"], "ssl_required": "all", "sso_session_idle_timeout_minutes": 15.0, "sso_session_max_lifespan_minutes": 600.0, "terms_and_conditions_default_action": true, "terms_and_conditions_enabled": true, "user_federation_providers": 1}}}'

- name: non_compliant
expect: FAIL
artifact: '{"metadata": {"exit_code": 0, "status": "success"}, "payload": {"metadata": {"api_failures": [], "base_url": "https://keycloak.admin.example.com", "datetime": "2026-11-17T00:00:00Z", "partial_failure": false, "realm": "uds"}, "results": {}, "summary": {"access_token_lifespan_minutes": 1.0, "admin_events_details_enabled": true, "admin_events_enabled": false, "browser_flow": "UDS Authentication", "browser_flow_alternative_authenticators": [], "browser_flow_always_required_authenticators": ["auth-x509-client-username-form", "webauthn-authenticator"], "browser_flow_conditional_authenticators": [], "browser_flow_phishing_resistant_always_required": true, "brute_force_protected": true, "default_required_actions": ["TERMS_AND_CONDITIONS", "webauthn-register"], "event_listeners": ["jboss-logging"], "identity_provider_types": ["oidc"], "identity_providers_enabled": 1, "lockout_failure_threshold": 3, "lockout_max_wait_minutes": 15.0, "login_events_enabled": true, "login_events_expiration_days": 90.0, "password_expiry_days": 60, "password_history": 24, "password_min_length": 15, "password_policy_rules": ["forceExpiredPasswordChange", "length", "notUsername", "passwordHistory"], "permanent_lockout": true, "realm_enabled": true, "registration_allowed": false, "remember_me_enabled": false, "reset_credentials_authenticators": ["reset-credential-email", "reset-credentials-choose-user"], "ssl_required": "all", "sso_session_idle_timeout_minutes": 15.0, "sso_session_max_lifespan_minutes": 600.0, "terms_and_conditions_default_action": true, "terms_and_conditions_enabled": true, "user_federation_providers": 1}}}'

- name: unread_null
expect: FAIL
artifact: '{"metadata": {"exit_code": 0, "status": "success"}, "payload": {"metadata": {"api_failures": [], "base_url": "https://keycloak.admin.example.com", "datetime": "2026-11-17T00:00:00Z", "partial_failure": false, "realm": "uds"}, "results": {}, "summary": {"access_token_lifespan_minutes": 1.0, "admin_events_details_enabled": true, "admin_events_enabled": null, "browser_flow": "UDS Authentication", "browser_flow_alternative_authenticators": [], "browser_flow_always_required_authenticators": ["auth-x509-client-username-form", "webauthn-authenticator"], "browser_flow_conditional_authenticators": [], "browser_flow_phishing_resistant_always_required": true, "brute_force_protected": true, "default_required_actions": ["TERMS_AND_CONDITIONS", "webauthn-register"], "event_listeners": ["jboss-logging"], "identity_provider_types": ["oidc"], "identity_providers_enabled": 1, "lockout_failure_threshold": 3, "lockout_max_wait_minutes": 15.0, "login_events_enabled": true, "login_events_expiration_days": 90.0, "password_expiry_days": 60, "password_history": 24, "password_min_length": 15, "password_policy_rules": ["forceExpiredPasswordChange", "length", "notUsername", "passwordHistory"], "permanent_lockout": true, "realm_enabled": true, "registration_allowed": false, "remember_me_enabled": false, "reset_credentials_authenticators": ["reset-credential-email", "reset-credentials-choose-user"], "ssl_required": "all", "sso_session_idle_timeout_minutes": 15.0, "sso_session_max_lifespan_minutes": 600.0, "terms_and_conditions_default_action": true, "terms_and_conditions_enabled": true, "user_federation_providers": 1}}}'

- name: renamed
expect: FAIL
artifact: '{"metadata": {"exit_code": 0, "status": "success"}, "payload": {"metadata": {"api_failures": [], "base_url": "https://keycloak.admin.example.com", "datetime": "2026-11-17T00:00:00Z", "partial_failure": false, "realm": "uds"}, "results": {}, "summary": {"access_token_lifespan_minutes": 1.0, "admin_events_details_enabled": true, "admin_events_enabled_renamed": true, "browser_flow": "UDS Authentication", "browser_flow_alternative_authenticators": [], "browser_flow_always_required_authenticators": ["auth-x509-client-username-form", "webauthn-authenticator"], "browser_flow_conditional_authenticators": [], "browser_flow_phishing_resistant_always_required": true, "brute_force_protected": true, "default_required_actions": ["TERMS_AND_CONDITIONS", "webauthn-register"], "event_listeners": ["jboss-logging"], "identity_provider_types": ["oidc"], "identity_providers_enabled": 1, "lockout_failure_threshold": 3, "lockout_max_wait_minutes": 15.0, "login_events_enabled": true, "login_events_expiration_days": 90.0, "password_expiry_days": 60, "password_history": 24, "password_min_length": 15, "password_policy_rules": ["forceExpiredPasswordChange", "length", "notUsername", "passwordHistory"], "permanent_lockout": true, "realm_enabled": true, "registration_allowed": false, "remember_me_enabled": false, "reset_credentials_authenticators": ["reset-credential-email", "reset-credentials-choose-user"], "ssl_required": "all", "sso_session_idle_timeout_minutes": 15.0, "sso_session_max_lifespan_minutes": 600.0, "terms_and_conditions_default_action": true, "terms_and_conditions_enabled": true, "user_federation_providers": 1}}}'
17 changes: 17 additions & 0 deletions validators/_cases/keycloak_brute_force_lockout_enabled.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
validator: keycloak_brute_force_lockout_enabled
cases:
- name: compliant
expect: PASS
artifact: '{"metadata": {"exit_code": 0, "status": "success"}, "payload": {"metadata": {"api_failures": [], "base_url": "https://keycloak.admin.example.com", "datetime": "2026-11-17T00:00:00Z", "partial_failure": false, "realm": "uds"}, "results": {}, "summary": {"access_token_lifespan_minutes": 1.0, "admin_events_details_enabled": true, "admin_events_enabled": true, "browser_flow": "UDS Authentication", "browser_flow_alternative_authenticators": [], "browser_flow_always_required_authenticators": ["auth-x509-client-username-form", "webauthn-authenticator"], "browser_flow_conditional_authenticators": [], "browser_flow_phishing_resistant_always_required": true, "brute_force_protected": true, "default_required_actions": ["TERMS_AND_CONDITIONS", "webauthn-register"], "event_listeners": ["jboss-logging"], "identity_provider_types": ["oidc"], "identity_providers_enabled": 1, "lockout_failure_threshold": 3, "lockout_max_wait_minutes": 15.0, "login_events_enabled": true, "login_events_expiration_days": 90.0, "password_expiry_days": 60, "password_history": 24, "password_min_length": 15, "password_policy_rules": ["forceExpiredPasswordChange", "length", "notUsername", "passwordHistory"], "permanent_lockout": true, "realm_enabled": true, "registration_allowed": false, "remember_me_enabled": false, "reset_credentials_authenticators": ["reset-credential-email", "reset-credentials-choose-user"], "ssl_required": "all", "sso_session_idle_timeout_minutes": 15.0, "sso_session_max_lifespan_minutes": 600.0, "terms_and_conditions_default_action": true, "terms_and_conditions_enabled": true, "user_federation_providers": 1}}}'

- name: non_compliant
expect: FAIL
artifact: '{"metadata": {"exit_code": 0, "status": "success"}, "payload": {"metadata": {"api_failures": [], "base_url": "https://keycloak.admin.example.com", "datetime": "2026-11-17T00:00:00Z", "partial_failure": false, "realm": "uds"}, "results": {}, "summary": {"access_token_lifespan_minutes": 1.0, "admin_events_details_enabled": true, "admin_events_enabled": true, "browser_flow": "UDS Authentication", "browser_flow_alternative_authenticators": [], "browser_flow_always_required_authenticators": ["auth-x509-client-username-form", "webauthn-authenticator"], "browser_flow_conditional_authenticators": [], "browser_flow_phishing_resistant_always_required": true, "brute_force_protected": false, "default_required_actions": ["TERMS_AND_CONDITIONS", "webauthn-register"], "event_listeners": ["jboss-logging"], "identity_provider_types": ["oidc"], "identity_providers_enabled": 1, "lockout_failure_threshold": 3, "lockout_max_wait_minutes": 15.0, "login_events_enabled": true, "login_events_expiration_days": 90.0, "password_expiry_days": 60, "password_history": 24, "password_min_length": 15, "password_policy_rules": ["forceExpiredPasswordChange", "length", "notUsername", "passwordHistory"], "permanent_lockout": true, "realm_enabled": true, "registration_allowed": false, "remember_me_enabled": false, "reset_credentials_authenticators": ["reset-credential-email", "reset-credentials-choose-user"], "ssl_required": "all", "sso_session_idle_timeout_minutes": 15.0, "sso_session_max_lifespan_minutes": 600.0, "terms_and_conditions_default_action": true, "terms_and_conditions_enabled": true, "user_federation_providers": 1}}}'

- name: unread_null
expect: FAIL
artifact: '{"metadata": {"exit_code": 0, "status": "success"}, "payload": {"metadata": {"api_failures": [], "base_url": "https://keycloak.admin.example.com", "datetime": "2026-11-17T00:00:00Z", "partial_failure": false, "realm": "uds"}, "results": {}, "summary": {"access_token_lifespan_minutes": 1.0, "admin_events_details_enabled": true, "admin_events_enabled": true, "browser_flow": "UDS Authentication", "browser_flow_alternative_authenticators": [], "browser_flow_always_required_authenticators": ["auth-x509-client-username-form", "webauthn-authenticator"], "browser_flow_conditional_authenticators": [], "browser_flow_phishing_resistant_always_required": true, "brute_force_protected": null, "default_required_actions": ["TERMS_AND_CONDITIONS", "webauthn-register"], "event_listeners": ["jboss-logging"], "identity_provider_types": ["oidc"], "identity_providers_enabled": 1, "lockout_failure_threshold": 3, "lockout_max_wait_minutes": 15.0, "login_events_enabled": true, "login_events_expiration_days": 90.0, "password_expiry_days": 60, "password_history": 24, "password_min_length": 15, "password_policy_rules": ["forceExpiredPasswordChange", "length", "notUsername", "passwordHistory"], "permanent_lockout": true, "realm_enabled": true, "registration_allowed": false, "remember_me_enabled": false, "reset_credentials_authenticators": ["reset-credential-email", "reset-credentials-choose-user"], "ssl_required": "all", "sso_session_idle_timeout_minutes": 15.0, "sso_session_max_lifespan_minutes": 600.0, "terms_and_conditions_default_action": true, "terms_and_conditions_enabled": true, "user_federation_providers": 1}}}'

- name: renamed
expect: FAIL
artifact: '{"metadata": {"exit_code": 0, "status": "success"}, "payload": {"metadata": {"api_failures": [], "base_url": "https://keycloak.admin.example.com", "datetime": "2026-11-17T00:00:00Z", "partial_failure": false, "realm": "uds"}, "results": {}, "summary": {"access_token_lifespan_minutes": 1.0, "admin_events_details_enabled": true, "admin_events_enabled": true, "browser_flow": "UDS Authentication", "browser_flow_alternative_authenticators": [], "browser_flow_always_required_authenticators": ["auth-x509-client-username-form", "webauthn-authenticator"], "browser_flow_conditional_authenticators": [], "browser_flow_phishing_resistant_always_required": true, "brute_force_protected_renamed": true, "default_required_actions": ["TERMS_AND_CONDITIONS", "webauthn-register"], "event_listeners": ["jboss-logging"], "identity_provider_types": ["oidc"], "identity_providers_enabled": 1, "lockout_failure_threshold": 3, "lockout_max_wait_minutes": 15.0, "login_events_enabled": true, "login_events_expiration_days": 90.0, "password_expiry_days": 60, "password_history": 24, "password_min_length": 15, "password_policy_rules": ["forceExpiredPasswordChange", "length", "notUsername", "passwordHistory"], "permanent_lockout": true, "realm_enabled": true, "registration_allowed": false, "remember_me_enabled": false, "reset_credentials_authenticators": ["reset-credential-email", "reset-credentials-choose-user"], "ssl_required": "all", "sso_session_idle_timeout_minutes": 15.0, "sso_session_max_lifespan_minutes": 600.0, "terms_and_conditions_default_action": true, "terms_and_conditions_enabled": true, "user_federation_providers": 1}}}'
Loading
Loading