Keycloak event listeners for webhooks and message queues

Keycloak can emit user and admin events, but getting them reliably into a CRM, warehouse or broker is a custom build with its own delivery, retry and performance decisions. This page sets out what the work involves and what drives its cost.

On this page

Keycloak event listeners for webhooks and message queues: when a team builds this

A team that needs Keycloak login and admin activity in another system has to decide whether to write a custom Event Listener SPI provider or hire a partner to do it. Keycloak is licensed under Apache 2.0, so the code is free to use, modify and ship, and the server exposes user and admin events through its Event Listener SPI. The part that matters for the decision is that the delivery path is code your organization owns. Keycloak emits the events, but nothing in the default product pushes them to a CRM, a data warehouse or a message broker. Whoever writes the provider also owns its failure handling, its credentials and its upkeep across Keycloak releases.

The three common targets carry different risk. A CRM usually needs a small set of login or profile events, delivered with low latency and tolerant of occasional gaps. A data warehouse usually needs complete, ordered history for audit and analytics, which makes lost or duplicated events a reporting problem. A message broker such as Apache Kafka, which is also open source under Apache 2.0, adds its own authentication, topic design and retention decisions, and those belong to the broker team as much as the identity team. Ask which of these delivery targets is authoritative for the business question before choosing a design.

Build in-house when a platform team already runs the target system, can staff an on-call rotation for the listener, and can test provider changes against each Keycloak minor release the organization adopts. Consider a partner when the listener must meet a documented delivery guarantee, when retries and dead-letter handling need design work, or when the team cannot absorb the upgrade cost of custom Java code in a regulated environment. Either way, confirm the target's delivery and authentication options in its own documentation before writing the provider, because those limits set the design more than Keycloak does.

What the Event Listener SPI gives you and what it does not

The Event Listener SPI gives custom code a server-side hook into two separate event streams, user events and admin events. Everything after that hook is your responsibility, from how events are formatted to whether a failed delivery is ever retried.

Two separate event streams

Keycloak reports user events (such as logins, failed logins and account changes made by users) and admin events (configuration changes made through the Administration console or REST API) as distinct streams. Your provider can subscribe to one, the other, or both, and each stream carries different fields. Confirm in the server administration guide which event types your Keycloak version emits in each stream, and enable admin event storage and detail settings before you depend on them.

Keycloak docs

Provider runs inside the server

An Event Listener provider is Java code packaged as a provider JAR and loaded by the Keycloak server process. It receives events in the same process that handles logins and token requests, so it shares that process's memory, threads and failure modes. A slow outbound call in the provider can slow sign-in for every user, which is why the provider design matters as much as the event list.

Hooks where custom code runs

The SPI gives you a callback for each event the server publishes to listeners, plus a factory that creates the provider instance. Work done inside those callbacks happens synchronously with the request that produced the event. Plan which work belongs inside the callback (filtering, mapping) and which belongs in an external queue or worker, and confirm the callback signatures against the SPI version your Keycloak release ships.

Transport, formatting and retries are yours

The provider must build the payload, choose the transport (HTTP webhook, Kafka topic, or another broker), handle authentication to the target, and decide what happens when the target is down. Keycloak does not add a retry queue, dead-letter store or ordering guarantee for custom listeners. Any delivery guarantee you need, such as at-least-once delivery with idempotent consumers, must be built and tested by your team or a partner.

No managed webhook or queue service

Keycloak does not operate a hosted webhook endpoint, message queue or event store on your behalf. Keycloak's own event storage in the database and any broker such as Apache Kafka are components you deploy, size, secure and back up in your infrastructure. Ask who owns on-call for the target system, since a provider that fails silently is a common cause of missing audit or CRM data.

Check coverage against your version

Before designing the event schema, list the event types your target Keycloak version emits, then test each one in a non-production realm and record the payload fields. Event coverage and field names can change between releases, and Keycloak's minor releases follow a faster cadence since version 26.0. Use this check to decide which events your consumers may rely on and which need a fallback.

Release update policy

Which event types to forward and why

Security and identity teams usually want the authentication story: who signed in, from where, how often sign-ins failed, when a session ended, and when credentials changed. Those signals feed detection rules, SIEM correlation and incident response. The useful question is not how many events to forward but which outcomes matter for a given detection, because failed sign-ins and credential changes are far more actionable than a raw firehose of every token interaction.

  • Sign-in outcomes: Forward successful and failed login events together so the consumer can compute failure bursts per account and per source address.
  • Logout and session end: Include logout events so the consumer can close sessions in downstream systems and detect sessions that never end.
  • Credential and MFA changes: Forward events for password resets, credential registration and removal, so account takeover patterns can be traced.
  • Admin activity: Forward administrative changes to realms, clients and role mappings, since these alter who can sign in to what.
  • Privacy questions: Decide whether IP addresses and user identifiers are needed in full, whether they can be pseudonymized, and how long the receiving system may retain them under your policy.

Before enabling anything, confirm the exact event type names and their fields in the documentation for your Keycloak version, and confirm which events are stored in the event store and which are only available to listeners.

Delivery design decisions for Keycloak event listeners

This table compares the main delivery decisions for a custom Keycloak Event Listener SPI provider, including synchronous webhooks, broker publishing, delivery guarantees and where retries and filtering live. Read each row as a decision point, and use the right-hand column to see when each option fits your environment.

DecisionOption and trade-offWhen it fits
Transport: synchronous webhookKeycloak waits on an HTTP call inside the event path. A slow or failed receiver can delay or fail the user action, so timeouts and error handling in the listener matter.Low event volume, a receiver you control, and a need for a simple first integration with few moving parts.
Transport: asynchronous broker publishThe listener hands events to a broker such as Apache Kafka and the receiver consumes them later. This decouples Keycloak from downstream outages but adds a broker to deploy, secure and monitor.High event volume, several consumers, or a data warehouse or CRM that must keep working through short receiver outages.
Delivery guarantee: at-most-onceAn event may be lost if the send fails and is not retried. Acceptable only for telemetry where gaps are tolerable and never for audit or account lifecycle data.Rarely appropriate for identity events. Consider it only for low-value, non-audit signals that you can afford to miss.
Delivery guarantee: at-least-onceEvents are retried until acknowledged, so duplicates can arrive. Consumers must tolerate repeats, which makes idempotency keys a requirement, not an option.Most CRM, warehouse and audit-feeding integrations, where losing an event costs more than handling a duplicate.
Where retries liveRetries in the listener are simple but tie up Keycloak threads and lose queued work on restart. A relay service or the broker itself holds retry state durably and keeps Keycloak's path short.Use listener retries only for brief blips. Use a relay or broker-level retry when outages can last longer than a request.
Idempotency and orderingInclude a unique event identifier and the realm, event type and timestamp in each message so consumers can deduplicate. Do not assume global ordering across users or realms; confirm the ordering your consumer needs per key.Any at-least-once design. Key partitions by user or realm if per-user ordering matters to the consumer.
Filtering: in Keycloak or downstreamFiltering in the listener reduces traffic but hides events you may later need. Filtering downstream keeps the full stream for audit and replay at higher storage and bandwidth cost.Filter in Keycloak for a narrow, stable use case. Filter downstream when several teams need different subsets of the same stream.
Broker security and authorizationFor Kafka, confirm the cluster version before design, since KRaft-only operation applies from 4.0. Choose SSL or a documented SASL mechanism for client authentication, and set ACLs explicitly because resources without ACLs are restricted to super users unless allow.everyone.if.no.acl.found is true.Any broker-based design. Verify the mechanism and authorization defaults against the Kafka release you will run, as these details change between versions.

How the implementation runs, step by step

The sequence turns a Keycloak event stream into a delivery path your target systems can rely on, with each stage ending in a artifact or check that the next stage depends on. Keycloak's own upgrade process is built into the final steps, so the listener survives later Keycloak releases.

  1. Define the consumer contract and event schema

    Your integration owner and the teams that consume the events agree which Keycloak user events and admin events are needed, which fields each consumer reads, and how events are identified and versioned. The output is a schema document listing event types, field names and types, realm and client identifiers, an event ID for deduplication, and a version field that lets the schema change without breaking consumers. Done when every consumer has signed off on the document and knows which fields are not guaranteed, such as fields that are empty for some event types.

  2. Build and unit test the SPI provider

    Your developers implement the Event Listener SPI provider in Java, along with its factory class, and configure it through realm or server settings. The provider should only filter and serialize events and hand them to a queue or buffer, so Keycloak's request handling is not blocked by a slow target. Unit tests cover event filtering, serialization against the schema document, and handling of missing optional fields. The output is a tested provider JAR and a test report that the team can rerun after each change.

  3. Add a durable outbound path

    Your team adds a delivery component that moves events from the provider to the target, such as an HTTP webhook sender or a message broker producer. This is where retries, backoff, dead-letter handling and idempotency keys are designed, and where you decide whether events survive a Keycloak node restart. The output is a delivery design record that states the guarantee you accept, for example at-least-once delivery with consumer-side deduplication, along with the storage used for undelivered events. Confirm the guarantee with each consumer before this step closes.

  4. Test failure modes against the target

    Test the full path against a staging target in four conditions: target unavailable, target responding slowly, duplicate events sent on retry, and a Keycloak node restarted mid-delivery. For each case, record what the consumer receives, how long Keycloak login and admin requests take, and whether any event is lost or applied twice. The output is a failure test report with a pass or fail result per case and a list of accepted gaps. Do not move on until a slow or unavailable target cannot change Keycloak login latency.

  5. Load test the Keycloak node

    Run a load test on a Keycloak node with the provider enabled and compare it with a baseline run without the provider. The test should match realistic login and admin volumes for your environment, which you should confirm with your operations team, and it should watch heap use, thread counts, database load and the queue depth in the outbound path. The output is a performance comparison and a recorded limit on event volume per node, which tells capacity planners when to add nodes or change the delivery design.

  6. Package and deploy the provider with the Keycloak release in use

    Package the provider JAR against the exact Keycloak version your environment runs, and deploy it through the same mechanism your Keycloak distribution uses, whether a container image build, the Operator or a server deployment. Keep the JAR version tied to the Keycloak version in your change record. When you plan a Keycloak upgrade, rebuild and retest the provider against the new version in staging before the production upgrade, because SPI interfaces can change between releases. The output is a versioned artifact, a deployment record and an upgrade checklist entry for the provider.

  7. Roll out per environment with monitoring

    Enable the listener first in a development environment, then in staging, then in production, and roll each environment forward only after the previous one passes its checks. Monitoring should cover delivery success and failure counts, retry depth, queue age, consumer lag and Keycloak metrics such as request latency. The output is a runbook covering enabling and disabling the listener, replaying events, and responding to a stuck queue, plus a dashboard and alert rules that the on-call team has tested.

How a Keycloak event reaches the target system

A user sign-in or an administrative change becomes an outbound message in a fixed sequence: Keycloak records the operation, its event listener providers receive the event in the server process, the provider serializes it and hands it to a transport (an HTTP call to a webhook or a produce request to a broker), and a consumer in your environment processes it. Keycloak only guarantees that the event reaches your provider code, so every later step is a design decision you own. The custom Event Listener SPI provider is where the handoff happens, which makes its failure behavior the first thing to specify. Confirm in the Keycloak server developer documentation for your release how listeners are invoked and whether a failure inside a listener can affect the user-facing request, because that determines whether a slow endpoint can slow sign-in.

Data is held in several places between the login and the consumer. The event can sit in Keycloak's in-memory or database-backed event store if you also enable the built-in event storage, it can sit in a provider-side buffer or retry queue you write, and it can sit in the broker or HTTP intermediary until the consumer acknowledges it. Each holding point needs an owner, a retention period and an encryption decision, because user identifiers, IP addresses and admin actions are personal data in most jurisdictions. The trust boundary sits at the outbound call: once the payload leaves the Keycloak host, you rely on TLS configuration, credentials stored for the endpoint, and the endpoint's own access controls. Keep those credentials in a secrets store rather than in realm configuration, and confirm how your Keycloak version exposes them to providers.

Failure can occur at each hop: the provider may throw, the endpoint may time out or return an error, the broker may be unreachable, or the consumer may process a message twice after a retry. Keycloak does not provide a durable outbox for custom listeners, so the guarantees you can offer depend on what your provider persists before it returns. Decide before building whether a lost event is acceptable for each event type, whether consumers must be idempotent, and how you will detect a backlog. Those answers determine the retry design, the monitoring you need on the consumer side and the recovery steps you document for an outage of the target system.

What drives the cost of an event listener build

This table lists the main factors that raise or lower the effort of a Keycloak event listener build, along with how to keep each one contained. Read it as a checklist to fill in before requesting a quote, since each row changes the written scope. No price or duration is given here, and a quote follows from the scope you agree in writing.

DriverWhy it changes effortHow to keep it down
Event types and consumersEach event type and each downstream consumer adds mapping, filtering and test cases, and consumers may need different payloads.Start with the few user and admin events the business needs, and add others later through the written scope.
Delivery guaranteeAt-least-once delivery with a durable outbox needs more design than fire-and-forget, because failed sends must be stored and retried.Confirm whether a missed login or profile event is acceptable before choosing the delivery pattern.
Peak login volumeHigh sign-in rates raise the load the listener adds to each Keycloak node and the broker, and may require load testing before go-live.Ask for the expected peak logins per minute and whether events can be batched or filtered at source.
Data classification and maskingPersonal data, tokens and credentials in event details require field-level filtering, approval from data owners and evidence of what leaves the realm.Publish only the fields each consumer needs and document the masking rules in the schema.
Keycloak nodes and environmentsEach node runs the listener, so configuration, packaging and rollout must match across the cluster and in every environment.Keep one tested build artifact and externalize endpoints and credentials per environment.
Broker or CRM API complexityAuthentication modes, rate limits, error codes and schema versions of the target system set the size of the client code and the error handling.Confirm the target API version, authentication method and rate limits before scoping.
Replay and duplicate testingRetries and redelivery can produce duplicate or out-of-order events, so consumers and test plans must cover idempotency and replay.Use stable event identifiers and a versioned, documented schema so consumers can deduplicate safely.

Keycloak event flow to external consumers stays inside your trust boundary until delivery

The flow starts when a user signs in or an administrator changes a realm, and Keycloak's event pipeline hands that event to the custom Event Listener SPI provider. The provider writes to an outbound queue, and a worker delivers it to the CRM, warehouse or broker. Failed deliveries retry and then land in a dead-letter store. Check that the listener returns quickly, that the queue is durable, and that dead-letter events are monitored and replayable.

Keycloak events leave through a queue, with retries and a dead-letter path for failures.

How event streams connect to the rest of the platform

A Keycloak event listener is only the first hop. Events leave Keycloak for a broker, a warehouse or an operations log, and each hop needs its own owner, security settings and health signal. The cards below cover the connections that most often need a decision before the listener ships.

Broker-based delivery with Kafka

When the listener publishes to Apache Kafka, the broker takes over buffering, replay and fan-out to consumers such as a CRM sync or a warehouse loader. Your team needs to confirm the topic layout, partition count, retention and which consumer groups will read each event type. Kafka security is optional, so confirm whether your cluster requires SSL or SASL and which SASL mechanism your listener credentials will use before writing the producer configuration.

Kafka security overview

Listener health in Prometheus and Grafana

Keycloak exposes Prometheus-format metrics at /metrics on its management interface when started with --metrics-enabled=true. Your team can chart these next to a counter your listener emits for successful and failed deliveries, so a stalled webhook or broker connection shows up as a growing gap rather than a complaint from a downstream team. Confirm that the management interface is reachable only from your monitoring network.

Keycloak metrics guide

Keycloak operations logging path

Logs from the listener and the Keycloak server give operators the context that metrics cannot, such as the exception behind a failed send or the event that caused it. Decide where these logs are shipped, how long they are kept and who can read them, because event payloads can contain usernames, IP addresses and client identifiers. Confirm that listener log lines never print secrets such as broker passwords or webhook tokens.

Failure alerts and triage

A listener failure is easy to miss because Keycloak continues to sign users in while event delivery falls behind. Define which conditions page the on-call team, such as a sustained rise in failed deliveries or a backlog that grows past the retention window of the target. Agree who owns the target system when delivery fails, so the first responder is not left deciding whether the problem is in Keycloak or in the CRM.

Downstream analytics stores

Warehouses and analytical databases receive the same events for reporting on logins, failed sign-ins and admin changes. Confirm the schema the events are mapped to, the retention the analysts expect and whether personal data in the events needs masking before it lands in a broadly readable store. Also confirm how the store authenticates the loader and whether its connection uses TLS.

Target authentication and TLS

Every target has its own authentication and transport requirements, and the listener must meet each of them. For a webhook, confirm how the receiving endpoint verifies the sender and whether it requires TLS with a certificate your team manages. For a message broker or database, confirm the account type, credential rotation process and certificate trust chain. Record these answers per target before the listener is configured.

How event forwarding affects Keycloak performance

A custom Event Listener SPI provider runs inside the Keycloak server, so its code shares threads and resources with the sign-in path. If the provider makes a blocking call to a webhook endpoint, a CRM API or a message broker during the login request, every sign-in waits for that call. The main rule is to keep the listener's work off the request thread. The usual pattern is to validate the event, place it on an in-memory queue or hand it to a separate sender thread, and return immediately. Teams should confirm how their chosen Keycloak version schedules listener callbacks before relying on any assumption about ordering or timing.

The asynchronous design still has failure modes. When the downstream system is slow or down, the queue grows, and retries multiply the load if each failed delivery is retried aggressively. Unbounded queues can consume heap memory on the node, and a full queue forces a choice between dropping events and blocking the caller. Decide that policy before go-live, along with the maximum retry count, the backoff between attempts and the alert that fires when the backlog grows. Because the Keycloak node serves logins, a consumer outage should degrade event delivery, not sign-in itself. Also confirm whether events lost from an in-memory queue during a node restart are acceptable for your audit or analytics needs.

Test before production with a load profile that matches your real peak login rate, including token refresh and admin activity if those generate events you forward. Run the test with the downstream consumer slowed or stopped, not only with a healthy one. Enable metrics with --metrics-enabled=true and watch the Keycloak Prometheus endpoint at /metrics for request latency and cache behavior alongside your queue depth and send failures. Compare sign-in latency with the listener enabled and disabled at the same load. Ask your engineers or partner to document the measured results for your environment, since published numbers from another deployment will not match your hardware, database or event volume.

Questions teams ask before building Keycloak event listeners

What drives the cost of a Keycloak event listener project?

The main cost driver is how many destinations the listener must feed and how much of each event's data those destinations need. Each target system adds its own work: a message broker, a CRM API and a data warehouse loader have different authentication, payload formats and failure modes. Other cost drivers are the number of event types in scope, whether admin events must be captured alongside user events, and how much retry, dead-letter handling and monitoring you require. Recurring costs include keeping the SPI compatible with each Keycloak upgrade and operating the broker or endpoints the listener depends on. Ask any partner for a quote that lists each destination, each event type and each operational item separately, with the one-time build and the recurring support shown apart.

How long does it take to build a custom Keycloak event listener?

Duration depends on the number of destinations, the schema agreements still open, and how many environments must be tested before production. A single destination with a stable payload and an agreed schema is a much smaller job than several consumers that each need different fields, filters and delivery rules. Delays usually come from waiting on consumer owners to agree formats, from network or credential access to the target systems, and from load testing that reveals the listener slows logins. Use the effort and rollout tables on this page to break the work into phases, and ask for a schedule that names the dependencies each phase needs from your team.

What must our internal team provide before the build starts?

Three things block most projects if they are not decided early. First, a named owner for each consumer, such as the CRM team, the data platform team or the security operations team, who can approve the event fields and respond to questions. Second, schema decisions: which event types, which fields, how personal data is represented, and how the payload is versioned when it changes. Third, environments: development, test and production instances of Keycloak and each target system, with credentials and network paths for each. Your team also needs to decide who receives alerts when delivery fails. Writing these decisions down before the build keeps the SPI small and the consumer contracts stable.

Can our own team build a Keycloak event listener without a partner?

Yes, if your team already writes Java, understands the Keycloak Event Listener SPI and can operate the target system. The provider itself is ordinary Java code packaged and deployed to the server, so the technical skill is often less of a barrier than the operational work around it. The harder parts are delivery guarantees, retry handling, testing under load and keeping the code aligned with each Keycloak release. Ask whether your team has capacity for the first build and for each upgrade afterward. A fixed-scope engagement can cover the build and handover, while a retainer covers ongoing upgrades and testing if your team prefers not to carry them alone.

How do Keycloak upgrades affect a custom event listener SPI?

A custom SPI depends on Keycloak interfaces and packaging, so each upgrade can require code changes, rebuilding and retesting. The Keycloak project plans four minor releases a year and a major release every two to three years, and says breaking changes in a minor release will be opt-in, which reduces surprise but does not remove the need to test. Read the upgrade notes for each target version, rebuild the provider against that version, and run your event tests before promoting it. Keep the provider small and isolate the delivery logic from the Keycloak-specific code so that most changes stay in one place. Plan for this as a recurring cost, not a one-time task.

How should personal data in Keycloak events be handled?

Start by treating user events as personal data, because they can contain user identifiers, IP addresses, usernames and details of what was accessed. Decide which fields each consumer actually needs and drop or pseudonymize the rest inside the listener, before the event leaves Keycloak. Set retention rules at the destination, not only at the source, and restrict who can read the broker topics or warehouse tables that hold the events. Document the lawful basis and data flows with your privacy and compliance teams. Keycloak prepares the events, but the controls around the destinations are your responsibility, and an independent auditor or certification body is the one who assesses them.

What performance impact should we expect from an event listener?

The listener runs in the request path for some events, so a slow or blocking call to an external system can delay sign-in or admin operations. Keep the work inside the listener small, hand events to a queue or local buffer, and make network calls asynchronously where your design allows it. Measure the impact before production by running load tests that include the listener enabled and disabled, and watch Keycloak's Prometheus-format metrics, which are exposed at /metrics on the management interface when metrics are enabled. Confirm with your team how many events per second you expect at peak, because that number drives the buffer size and the consumer capacity you need.

What the team should receive and keep after go-live

The team should leave go-live holding the provider source, its build output and a pinned dependency set, because a custom Event Listener SPI provider is only maintainable if someone can rebuild the same JAR against the Keycloak version in production. Ask for the Maven or Gradle project, the Keycloak version it targets, the build pipeline definition and the artifact checksums. The client's engineering team owns the repository and the build from handover onward, and DeployOpen's role ends at the agreed support window unless a retainer is in place. Confirm that the repository lives in the client's own source control, not a DeployOpen account.

The second group of artifacts defines what the listener does and what consumers may rely on. Hand over the environment variables and standalone.xml or keycloak.conf entries that enable the listener and set its target, the event schema with the event types included and their field meanings, and the consumer contract stating whether delivery is at-least-once, how duplicates are identified, and what ordering is promised. The runbook must cover replay of events from the outbox or log, handling of the dead-letter destination, and who approves a replay. The CRM, warehouse or broker team owns the consumer side of the contract, while the platform team owns the listener and its configuration.

Finally, the team should keep the test suite, monitoring setup and an upgrade note for each Keycloak minor release. The tests should include event emission for the event types in scope, failure injection for the target system, and a check that the listener does not block login under a slow consumer. Monitoring should cover delivery lag, retry counts, dead-letter growth and the Keycloak metrics exposed when --metrics-enabled=true is set, as described in the Keycloak observability guide. Because Keycloak plans four minor releases a year, the upgrade note should be reviewed against each release's upgrade notes before the platform team moves an environment. Ask the vendor to confirm which Keycloak release the handover targets and who signs off the upgrade note.

How DeployOpen scopes and delivers event listener work

This sequence turns a question about pushing Keycloak events to other systems into a written scope, a tested listener, and a handover your team can operate. Each step ends with an output you can review before the next one starts.

  1. Define the events and consumers

    DeployOpen works with your identity, integration and data owners to list which user and admin event types must leave Keycloak, which system receives each one, and what each consumer does with it. The output is an event inventory that names the realms, clients and fields in scope, along with any personal data the events carry and who may receive it. You know this step is done when every consumer has an owner and an agreed event list.

  2. Agree the delivery guarantees

    Next, the team decides what happens when a consumer is slow or unavailable: whether a lost event is acceptable, whether duplicates are tolerated, and how long retries should continue before an alert is raised. These choices determine whether the listener writes to a queue, calls an HTTP endpoint or does both, and whether consumers must be idempotent. The output is a short delivery specification that your security and data teams can sign off before any code is written.

  3. Write the written scope and quote

    DeployOpen turns the inventory and delivery specification into a written fixed scope with deliverables, the environments involved, the test approach and the timeline agreed before work starts. Cost depends on the number of event types, consumers, target systems and how much of the testing and documentation you ask for, so the quote should itemize those components. The output is a signed scope document that both parties can point to if requirements change.

  4. Build the Event Listener SPI provider

    Engineers implement a custom Event Listener SPI provider that filters events, maps them to your message format and hands them to the broker or webhook client. Configuration such as target addresses and credentials is kept out of source code and loaded from your secrets store. The output is a provider packaged for your Keycloak version, with a build pipeline that produces the same artifact for each environment.

  5. Test delivery, failure and load

    The provider is tested in a non-production environment that mirrors your Keycloak deployment and message broker. Tests cover normal delivery, consumer outages, retry exhaustion, duplicate delivery, ordering assumptions and the added latency on login and admin actions under realistic request volumes. The output is a test report with measured results, and any gap against the delivery specification is fixed and retested before release.

  6. Deploy and monitor in your infrastructure

    The provider is deployed to the Keycloak nodes in your cloud accounts, data centers or restricted network through your normal change process. Monitoring is set up for failed deliveries, retry backlog, broker lag and Keycloak metrics so operators can see when the listener slows login. The output is a production rollout record and dashboards or alerts that your operations team has confirmed they can read.

  7. Hand over and document operations

    DeployOpen delivers runbooks covering configuration, credential rotation, replaying failed events, and the steps required to rebuild the provider when Keycloak is upgraded. Your team walks through the runbooks with DeployOpen engineers and runs one recovery exercise. The output is a handover package and a signed acceptance that your owners can operate the listener without DeployOpen present.

  8. Continue with optional retainers

    If you want help after handover, DeployOpen can offer retainers for Keycloak and provider upgrades, ongoing testing of the listener, and support for new event consumers. Each retainer is scoped in writing, so your team knows which upgrade and test work is covered and what recurs. The output is an agreed support arrangement, or a clear decision to run the listener in-house.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.