Filter out / exclude the operator events in the "Login Events" and the "Admin Events".

Solution Verified - Updated -

Environment

  • Red Hat Single Sign-On (RH-SSO) - Operator
    • 7.x

Issue

  • Is there any way to filter out / exclude the operator actions in the "Login Events" and the "Admin Events"?

Resolution

  • It is possible to configure what Login Events are recorded, please see the following example:
apiVersion: keycloak.org/v1alpha1
kind: KeycloakRealm
metadata:
  name: example-keycloakrealm
  labels:
    app: sso
spec:
  instanceSelector:
    matchLabels:
      app: sso
  realm:
    displayName: Basic Realm
    enabled: true
    id: basic
    realm: basic
    eventsEnabled: true
    enabledEventTypes:
      - LOGIN_ERROR
      - REGISTER_ERROR
      - LOGOUT_ERROR
  • This example logs only login errors, register errors and logout errors.

  • Unfortunately, this filtering is not possible with the Admin Events due to a limitation from the RH-SSO side (it's not an Operator issue), alternative would be to create a custom Event Listener that would do this kind of filtering.

  • For more details about Events please see the documentation

  • The Operator should provide full support for around Events that is provided by the RH-SSO.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments