Fine-Grained Event Filtering Before Publishing
Control which Keycloak or Keymate events are eligible for external publication—based on tenant, role, event type, or custom attributes. Works as a filtering layer between event emitters and the outbound stream.
Filtered Event Publishing by Tenant, Role, and Type
Why It Matters
When working in multi-tenant IAM platforms, not all events should leave the system. Some tenants may opt-out of external logging, or only certain roles and event types should be forwarded. With Keymate's Event Filtering SPI, you can:
Key Components:
Scoped Filtering Between Event Emitters and Event Hub
A Keycloak or Keymate component emits an event (e.g. user created, role assigned)
Event Filtering Flow
Use Cases Include: • Tenant-level filtering (multi-tenant environment isolation) • Role-sensitive change tracking • Subscription-based external stream shaping • Secure logging for government or regulated environments
Example: The Event Publisher SPI attempts to store the event in the outbox. The Event Filtering SPI intercepts this call and evaluates rules. If the event passes the filter, it is written to the outbox. Integration Hub later reads and publishes it to Kafka
Key Components:
Extension Highlights — What Makes It Unique
Tenant-Aware Filtering
Evaluate if an event is allowed to leave based on tenant ID
Role & Scope Filtering
Filter based on user role, realm role, or resource scope
Type-Based Filtering
Allow only certain event types: user, org, auth, delegation
Pre-Outbox Interception
Filtering happens before outbox persistence
Compatible with Event Publisher SPI
Seamlessly integrates with Keymate's event streaming layer
Declarative Rule Support
Future roadmap includes YAML or UI-based rule definitions