Skip to content

Filtering Admin Events via OperationType & ResourceType#60

Open
peterhorvat wants to merge 8 commits into
SnuK87:masterfrom
peterhorvat:admin-event-filtering
Open

Filtering Admin Events via OperationType & ResourceType#60
peterhorvat wants to merge 8 commits into
SnuK87:masterfrom
peterhorvat:admin-event-filtering

Conversation

@peterhorvat

@peterhorvat peterhorvat commented Oct 13, 2025

Copy link
Copy Markdown

Admin Event Filtering Configuration

Keycloak admin event filtering supports fine-grained control over which admin events are processed and sent to Kafka:

  • KAFKA_ADMIN_EVENT_STRICT_TYPES: Comma-separated list of strict event type combinations in the format OPERATION__RESOURCE_TYPE (e.g., DELETE__GROUP_MEMBERSHIP).

Example usage (environment settings):

The advantage of strict event type combinations is that you can handle both resource types but for different operation types. For example:

KAFKA_ADMIN_EVENT_STRICT_TYPES: DELETE__GROUP_MEMBERSHIP, UPDATE__USER
  • This configuration would process only the defined pairs of types: DELETE on GROUP_MEMBERSHIP, and UPDATE on USER.

@peterhorvat peterhorvat changed the title Filtering via OperationType & ResourceType Filtering Admin Events via OperationType & ResourceType Oct 13, 2025
@SnuK87

SnuK87 commented Dec 3, 2025

Copy link
Copy Markdown
Owner

Imo this seems a bit overengineered. Wouldn't it have been enough to just add KAFKA_ADMIN_EVENT_STRICT_TYPES?

@peterhorvat

Copy link
Copy Markdown
Author

Imo this seems a bit overengineered. Wouldn't it have been enough to just add KAFKA_ADMIN_EVENT_STRICT_TYPES?

Yes you are right, I can remove KAFKA_ADMIN_EVENT_OPERATION_TYPES and KAFKA_ADMIN_EVENT_RESOURCE_TYPES and leave only KAFKA_ADMIN_EVENT_STRICT_TYPES to make it simpler.

Latest changes on master repository
# Conflicts:
#	src/test/java/com/github/snuk87/keycloak/kafka/KafkaEventListenerProviderTests.java
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants