How midPoint asynchronous provisioning with Kafka fits your identity estate
Start here if the system you need to govern does not accept direct connector calls and instead consumes events from a queue. midPoint supports this pattern through asynchronous resources: resources that receive add, modify and delete commands and process them at a time midPoint does not control. The Evolveum catalog covers the pattern with two built-in connectors, Asynchronous Provisioning and Asynchronous Update, plus a Kafka connector. Before you design anything, note the status: the asynchronous connectors are listed as experimental, and the Kafka connector is listed with unknown status. Confirm both in the Evolveum identity connectors list against the midPoint release you plan to run.
Because processing happens at an unspecified time, midPoint cannot confirm that a change has reached the target when its own task finishes. Your design has to account for that gap. Decide which system holds the authoritative record of an account after a command is queued, how a rejected or lost message is detected, and who reconciles the target against midPoint. Those answers matter more to an auditor than the transport itself, and they determine whether a leaver's access is actually removed on time.
This page is a planning guide, not a promise of a supported path. Treat the asynchronous and Kafka options as candidates to prove in a pilot, not as components to put under a production subscription without written confirmation from Evolveum. Ask Evolveum how the experimental status affects support for your release, and ask your own messaging team who will own the broker, topics, consumer lag and dead-letter handling. Those owners, not the connector, will carry most of the operating load.
What you need before building a messaging integration
A messaging integration depends on several components being ready before any connector work starts. Each card below covers one prerequisite, from the midPoint release and Java runtime to the Kafka release line, transport security and topic ownership.
Matching midPoint release and Java runtime
Pick the midPoint release first, because it sets the Java runtime. midPoint recommends Java 25 for 4.11 and later and Java 21 for 4.10 and older, with Java 21 supported on 4.11 and Java 17 supported on 4.10. Confirm the release you will run against its support end date, since 4.9 support ends 18 October 2026 and the asynchronous connectors are experimental, so the release you pick must be one you can upgrade from later.
midPoint releasesPostgreSQL repository on a separate server
midPoint uses PostgreSQL as its native repository and recommends running it on a database server separate from the midPoint application. Asynchronous provisioning writes task and shadow state to this repository, so its sizing, backups and connection limits affect message processing as much as the broker does. Confirm the PostgreSQL version against the midPoint system requirements before you build.
System requirementsSupported Kafka release line
Choose one of the supported Kafka releases before you deploy brokers: 4.3.1, 4.2.2 or 4.1.2. Earlier releases are archived and receive no fixes. Plan for rolling upgrades, which Kafka supports from each release in the past year to the latest version, so the chosen line should have a clear upgrade path.
KRaft mode and Java 17 brokers
Kafka 4.0 and later run only in KRaft mode, so a ZooKeeper-based cluster must migrate to KRaft before you can move to 4.x. Kafka brokers, Kafka Connect and tools also require Java 17 on Kafka 4.0 and later. Check the broker host image and any existing cluster before you start, because a ZooKeeper cluster older than 3.3.x should first move to 3.9.x.
Kafka upgrade notesTLS certificates and SASL mechanism
Kafka secures client, broker and tool traffic with SSL/TLS, and authenticates with SSL or SASL. The documented SASL options are GSSAPI (Kerberos), PLAIN, SCRAM-SHA-256, SCRAM-SHA-512 and OAUTHBEARER. Decide the mechanism and the certificate authority before writing the midPoint resource, and confirm with your security team how the midPoint service account's credentials will be stored and rotated.
Kafka security overviewTopic ownership and ACL design
In KRaft clusters, the StandardAuthorizer keeps ACLs in the metadata log, and resources without an ACL are restricted to super users unless allow.everyone.if.no.acl.found is set to true. Name a team that owns each topic, grant the midPoint principal only the read and write rights it needs, and document who approves new topics. Without this, a missing ACL can block provisioning silently.
Kafka authorization docsProvisioning commands cross three trust boundaries before the target applies them
The diagram starts in midPoint, where the provisioning engine sends add, modify and delete commands to an asynchronous connector. That connector publishes them to a Kafka cluster in its own trust boundary, where clients authenticate with SSL or SASL and ACLs decide which principals may produce or consume each topic. A consumer on the target side reads the messages and applies them to the target application, which returns status or update events through the broker to an asynchronous update connector in midPoint. Check each crossing: which credentials each side holds, which ACLs apply, and when midPoint processes the reply, since midPoint does not guarantee a processing time.
Command and status paths across midPoint, Kafka and the target system.
How to configure an asynchronous resource step by step
This sequence takes a messaging-based target from an unverified idea to a tested midPoint asynchronous resource with an authenticated Kafka path, documented message schemas and monitoring in place before it carries live identities.
Confirm connector status and version with Evolveum
Before any build work, check the Evolveum connector catalog for the Asynchronous Provisioning, Asynchronous Update and Kafka connectors, and confirm with Evolveum which midPoint release and connector bundle version you will run. The catalog lists the built-in asynchronous connectors as experimental and the Kafka connector with unknown status, so ask what support, if any, applies to your planned use and whether your subscription covers it. Record the answers in the design document. Done when you hold a written statement from Evolveum or a documented decision to accept experimental risk, with the midPoint version pinned.
Deploy the Kafka cluster in KRaft mode
Your platform team deploys a Kafka cluster in KRaft mode in infrastructure you control, since Kafka 4.0 supports only KRaft and removed ZooKeeper mode. Choose a release from the supported list on the Kafka downloads page and confirm Java 17 is available on brokers and Kafka Connect hosts. Enable at least one listener secured with SSL/TLS and a SASL mechanism such as SCRAM-SHA-512, and confirm plaintext listeners are not exposed beyond the test network. Done when a client with the intended credentials connects over the secured listener and an unauthenticated client is refused.
Create topics and ACLs for the midPoint principal
Create separate topics for midPoint commands and for acknowledgements or responses, with partitions and retention set by your team for the expected event volume. In KRaft clusters the StandardAuthorizer stores ACLs in the metadata log, and resources without ACLs are restricted to super users unless allow.everyone.if.no.acl.found is set to true, so grant the midPoint service principal only the produce, consume and describe rights it needs on those topics. Leave that override at its default unless you have a documented reason. Done when the midPoint principal can produce and consume on its topics and is denied on any other topic in a test check.
Define the midPoint resource and connector configuration
Create the resource object in midPoint using the asynchronous connector configuration Evolveum documents for your chosen version, including the broker addresses, the TLS trust material and the SASL credentials held in midPoint's protected storage rather than in plain text in the resource XML. Keep the resource in a disabled or test state until the later checks pass. Confirm the connector test in the midPoint GUI reports a successful connection. Done when the connector test succeeds and the resource shows the expected schema.
Map add, modify and delete to message schemas
Define how each add, modify and delete command from midPoint becomes a message: the payload fields, the key used for partitioning, the operation type field and the attribute mappings. Agree the schema with the consuming system's owners and version it, because the target processes commands at an unspecified time and may not report back in real time. Document how a failed or unprocessed message is detected, since midPoint's view of the target depends on it. Done when a sample payload for each operation has been reviewed and signed off by the consuming team.
Test with a non-production topic
Point the resource at a dedicated test topic and a consumer owned by the target team. Run one test user through add, modify and delete in midPoint, using a simple assignment so the effect is clear. Inspect the produced messages with a Kafka console consumer, and confirm the consumer's acknowledgement arrives on the response topic. Check the midPoint task log and the resource object's shadow state for the matching entries. Done when each operation produces the expected message, the acknowledgement is consumed, and the midPoint log records the outcome without errors.
Enable reconciliation and monitoring
Once the test cases pass, schedule reconciliation for the resource so midPoint can detect drift between its records and the target, and set alerting on consumer lag, broker authentication failures and midPoint task errors. Agree a process for replaying or correcting messages that failed. Move the resource from test to production only after the monitoring is visible to the operations team. Done when a reconciliation task completes against the test topic, a deliberate failure triggers an alert, and the runbook names who responds.
When to use messaging instead of a direct connector
When the target system already reads change events from a broker, midPoint can publish account changes into the same stream rather than opening a second, separate write path. The target team then owns one consumption model, and midPoint's asynchronous resource receives add, modify and delete commands that it processes at an unspecified time, as the Evolveum features page describes for messaging-based resources. The trade-off is that delivery timing and ordering become properties of your messaging layer, not of midPoint's provisioning run, so reconciliation and error handling must be designed on both sides.
- Ownership of the stream: Confirm which team operates the broker and who approves new topics and access control lists.
- Message contract: Define the payload schema, identifiers and versioning before midPoint is connected, since the target consumer depends on it.
- Error and replay handling: Decide how failed messages are retried, parked or reconciled against the target's state.
- Authentication: Kafka supports SSL and SASL mechanisms, so agree on the mechanism and credential rotation with the platform team.
- Support status: The built-in asynchronous connectors are listed as experimental, so ask Evolveum how this affects your subscription before going to production.
Check whether the target can detect and recover from missed or duplicated events before you rely on this path.
When no catalog connector fits the target, a message queue can look like a shortcut, because the target only needs to receive events. Before choosing it, compare three paths: a supportable catalog connector if one covers the target, a community connector if the catalog lists one, and a custom ConnId connector built for this target. A messaging bridge moves the integration work to the consumer, which must still map identities, handle attribute semantics and report results back. The catalog's support status governs what Evolveum will help with, so a bridge built on experimental components carries that risk for the life of the integration.
- Catalog check: Review the Evolveum connector list for the target and record the status of every candidate.
- Consumer build effort: Estimate who writes and maintains the consumer that turns messages into target API calls.
- Custom connector option: Compare the bridge with a ConnId connector, which provides a standard resource model inside midPoint.
- Manual or ticket fallback: For low-volume or rarely changing accounts, a manual provisioning case may be simpler.
- Documentation: Ask whether the consumer code, schema and runbooks will be handed over and maintained.
If a catalog or ConnId connector can meet the requirement, that path is usually easier to support than a custom bridge.
Teams often want access changes to reach a target within seconds of an HR or approval event. Asynchronous delivery can help because the message is written as soon as midPoint decides on the change, and the target consumes it independently. However, midPoint does not promise a processing time for asynchronous resources, so the delay is not something the design can fix in advance. Near-real-time needs must be tested against the actual broker, consumer and midPoint task configuration rather than assumed from the messaging layer.
- Latency requirement: Write down the acceptable delay in your own terms, and state how it will be measured.
- Consumer throughput: Confirm the target consumer can keep up with peak change volumes during bulk events such as reorganizations.
- Scheduling interaction: Understand how midPoint's scheduled reconciliation runs alongside event-driven changes.
- Monitoring: Plan alerts on consumer lag and failed messages, using the broker's own tooling.
- Load test: Measure end-to-end timing with representative data before committing.
If the latency target cannot be verified in a test environment, a synchronous connector or a shorter reconciliation interval may be easier to explain to auditors.
Some workflows need the target to confirm each change before midPoint records it as done, for example when an account must exist before a dependent entitlement is granted or when an audit requires an immediate result. Asynchronous connectors do not provide this confirmation loop by default. A direct connector, such as an LDAP, Active Directory or Entra ID connector from the catalog, returns the outcome of each operation to midPoint, which can then retry or report it. Messaging can still be used with an acknowledgment design, but that adds a return channel that must be built and tested.
- Dependency analysis: Identify which provisioning steps depend on the result of an earlier step.
- Return channel: If messaging is used, design how the consumer reports success or failure back to midPoint.
- Audit evidence: Confirm what log entries the target and midPoint each produce for a single change.
- Connector choice: Check the catalog for a supportable direct connector before accepting asynchronous delivery.
- Retry rules: Decide how long midPoint and the consumer wait and when a failed change is escalated to a person.
Record the confirmation model in the design document so that the compliance team can see how each change is evidenced.
How midPoint attributes map to messages
This table compares each midPoint object type with the message fields a receiving system might expect, the operation sent, the correlation key and the owner who confirms each field. The rows are illustrative only, because the actual message schema is set by the target team and must be agreed before mappings are built. Use it as a checklist for the conversation with that team.
| Object type | Illustrative message fields | Operation and correlation key | Field owner to confirm |
|---|---|---|---|
| User | employeeId, givenName, familyName, email, lifecycleState | add, modify or delete; correlated on employeeId from the HR source | Target application owner and HR data owner |
| Account (on the target) | accountId, username, enabled, targetSystemCode | add, modify or delete; correlated on the target's own account identifier | Target system administrator |
| Group | groupId, groupName, description, memberIds | add or modify; correlated on groupId, with membership changes sent as modify | Target application owner |
| Role assignment | userId, roleCode, validFrom, validTo | add or delete; correlated on the userId and roleCode pair | Business owner of the role and target team |
| Password or credential | Not sent by default; confirm whether the target accepts any credential message | Confirm with the target team before any operation is defined | Security owner and target team |
| Deprovisioning event | userId, action flag such as disable or delete, effectiveDate | delete or modify; correlated on the same key used at creation | Security owner and target team |
Securing the Kafka path from midPoint to consumers
A provisioning event stream carries identity changes that downstream systems act on, so the Kafka path needs the same scrutiny as any other privileged integration. The cards below cover transport, authentication, authorization, credentials, payload content and publisher accountability, in the order a security review usually asks about them.
Encrypt every listener with TLS
Kafka encrypts traffic between clients, brokers and tools with SSL/TLS, but security is optional, so a cluster can run unsecured or mix secured and unsecured listeners. Check each listener that midPoint, consumers and tooling use, and confirm that no plaintext listener remains reachable from other network segments. Provisioning events often contain account names and group memberships, so treat the transport as sensitive data in transit.
Kafka security overviewChoose a SASL mechanism deliberately
Kafka supports GSSAPI (Kerberos), PLAIN, SCRAM-SHA-256, SCRAM-SHA-512 and OAUTHBEARER for client authentication. Pick the mechanism that matches your directory and secret management, and confirm which options the midPoint connector and your consumers can use before you commit. PLAIN sends credentials that must be protected by TLS, so pair it with encryption on every listener.
SASL mechanisms in the docsRestrict topics with least-privilege ACLs
In KRaft clusters the StandardAuthorizer stores ACLs in the cluster metadata log. Resources without ACLs are restricted to super users unless allow.everyone.if.no.acl.found is set to true, so leaving that setting enabled widens access to every unprotected topic. Grant the midPoint principal write access only to its provisioning topics, and give each consumer read access only to the topics it needs.
Authorization and ACLsStore midPoint client credentials outside config files
The midPoint side of the Kafka connection needs a client identity, whether a Kerberos keytab, SCRAM password or OAuth client secret. Keep these values in a secrets manager you operate, limit read access to the midPoint service account, and plan rotation as part of the runbook. Confirm how the connector configuration stores the secret and whether it appears in exported midPoint configuration.
Minimize what each event carries
Provisioning messages should identify the account and the change, not replicate the full identity record. An illustrative event could carry a user identifier, the operation and the changed attribute names, while consumers fetch sensitive attributes from the source of record when needed. Review payload fields with your privacy team, and set retention on the topic to match how long consumers actually need the data.
Audit who can publish provisioning events
Any principal with write access to a provisioning topic can make downstream systems create, change or delete accounts, so publisher identity is a control point. Review ACL entries for write permission on a regular schedule, record which principals hold them, and keep the audit trail with your change records. Confirm with your compliance team which evidence they need for access to these topics.
Why messages are produced but accounts do not change
This table lists the failure points that most often leave midPoint messages sitting in Kafka while target accounts stay unchanged. Read each row as a symptom-cause pair, then check the fix against your own cluster, midPoint version and connector status. Most of these problems are configuration and version questions that can be confirmed in a test environment before production traffic flows.
| Symptom or failure | Likely cause | Fix or what to confirm |
|---|---|---|
| Produce succeeds but writes are denied | Kafka ACLs are missing for the midPoint client principal, so topic writes or group reads fail | Grant the client principal write and describe access on the topic and read access on its consumer group, then confirm with a test message |
| Messages are not consumed and no fallback applies | Resources without ACLs are restricted to super users unless allow.everyone.if.no.acl.found is set to true | Define explicit ACLs for each consumer rather than relying on that setting, and confirm super user membership is limited to administrators |
| Clients connect but the handshake fails | Listener protocol mismatch, such as midPoint configured for SASL while the broker listener expects SSL or the reverse | Match the security protocol on the client and the listener named in the broker configuration, and test each listener separately |
| Brokers or tools fail after an upgrade | Java version mismatch: Kafka 4.0 and later need Java 17 for brokers, Kafka Connect and tools | Confirm the runtime Java version on every broker and tool host before upgrading the Kafka release |
| Changes appear delayed or lost in the target | Asynchronous resources process commands at a time midPoint does not define, so the target update can complete later than expected | Agree a processing window with the consumer owner, and verify target state with a reconciliation task instead of assuming immediate completion |
| Messages are consumed but fields are empty or rejected | Schema drift between midPoint attribute definitions and the consumer's expected message structure | Version the message contract, compare attribute names and types after each midPoint or consumer change, and test one record end to end |
| Connector behavior differs from the documentation | The Asynchronous Provisioning and Asynchronous Update connectors are experimental and the Kafka connector has unknown status in the catalog | Ask Evolveum in writing whether the connector is supported for your midPoint version, and plan a fallback path before production use |
Questions buyers ask before building Kafka-based provisioning
Is the midPoint Kafka connector supported for production use?
The Evolveum connector catalog lists the Kafka connector with an unknown status, so treat it as unconfirmed for production until Evolveum states otherwise in writing. The built-in Asynchronous Provisioning and Asynchronous Update connectors are listed as experimental. Ask Evolveum which connector version you would run, whether it falls under a Product Support or Platform Subscription, and what the support boundary is for bugs you hit. Those answers decide whether the design can rest on a supported component or needs an internal owner for the connector code. Check the Evolveum connector list before you commit to a design.
What drives the effort of a Kafka-based provisioning build?
Effort follows the number of target systems, the message contract for each one, and how much logic sits between midPoint and the topic. The main drivers are the event schema for add, modify and delete commands, the mapping from midPoint attributes to each consumer's fields, error and retry handling, and how midPoint learns that a downstream change actually happened. Asynchronous resources process commands at an unspecified time, so the design must handle delayed results, duplicates and out-of-order messages explicitly. Each additional consumer team, topic and authorization rule adds design and test work.
Can an internal team build this without outside help?
An internal team can build it if it already runs midPoint in production, has Kafka operators who understand topics, ACLs and TLS, and has engineers comfortable with midPoint mappings and tasks. The gap is usually the experimental status: someone must own the connector behavior, reproduce its failures and patch or wrap it when needed. Plan for ownership of the broker, the midPoint side, the consumer applications and the reconciliation job that catches drift. If one of those areas has no skilled owner, an outside partner can cover part of the work under a written scope, while your team keeps operational control.
How long does testing take, and who must take part?
Testing length depends on how many consumers acknowledge messages, how many failure cases you must prove, and how long your change windows are. Testing crosses several teams: the midPoint team checks command generation and retries, the Kafka team checks topics, partitions, retention and access control, and each target system team checks that it consumes and applies changes correctly. Dependencies on broker and target teams often set the schedule more than the midPoint work does. Confirm access to non-production topics and target environments early, because waiting for them is a common source of delay.
Which Kafka version and security settings should the design assume?
Design against the Kafka release line you actually operate, and confirm it against the supported releases on the Apache Kafka downloads page. Kafka 4.0 and later run only in KRaft mode and require Java 17 for brokers, so ZooKeeper-based clusters need migration first. Settle client authentication early: Kafka supports SSL and several SASL mechanisms, and resources without ACLs are restricted to super users unless configured otherwise. Give the midPoint service account only the topic permissions it needs, and check how the connector authenticates before you finalize the access model.
Can DeployOpen deliver this under a fixed scope?
DeployOpen can plan, implement, integrate and test a midPoint and Kafka provisioning design inside your infrastructure under a fixed scope. Most engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts. Because the Kafka connector and the asynchronous connectors are experimental or unknown in status, the written scope should name the connector version, the target systems, the message contracts and the test cases that count as acceptance. DeployOpen does not publish a price list, so a quote follows from that written scope. Ongoing support and upgrades can be handled as a retainer.
What should we confirm with Evolveum before starting?
Ask Evolveum four things before you design around the asynchronous path. First, the support status and subscription coverage for the Kafka connector and the asynchronous connectors. Second, the midPoint release you will run, using the midPoint releases page to check support end dates for your version. Third, how midPoint records the outcome of asynchronous commands, since processing happens at an unspecified time. Fourth, the recommended way to reconcile state when messages are lost or duplicated. Get the answers in writing and attach them to the scope document.
What your team must provide for a messaging integration
Before the build starts, name one owner for each side of the queue. The midPoint administrators own the resource definitions, mappings, correlation rules and the decision about which account and group changes midPoint publishes as asynchronous commands. They also own the reconciliation approach, because an asynchronous resource receives add, modify and delete commands and processes them at a time midPoint does not control, so midPoint cannot be treated as the single immediate source of truth for that system. The Kafka platform operators provide the topics, partitions, retention, consumer groups, credentials and ACLs that midPoint and the consuming application will use. Ask them to confirm which Kafka release line they run before the integration design is fixed, since the supported releases and upgrade rules change over time.
The target application owners must provide a consumer that reads the messages, applies them in its own data model and reports back failures in a way someone can act on. They should state in writing how they handle duplicate messages, out-of-order delivery, deletes for accounts that no longer exist and messages that cannot be applied. Their answers decide whether midPoint's reconciliation must correct drift, and that effort belongs in the scope agreed with the client. Security reviewers need the message schema, the payload fields that carry personal data, the topic access model, and the TLS and SASL settings for each listener. Kafka supports SSL and SASL with several mechanisms, but security is optional and a cluster can mix secured and unsecured listeners, so the reviewers must confirm that none of the identity traffic uses an unsecured listener.
Finally, an approver must accept the support status risk in writing. Evolveum lists the built-in asynchronous connectors as experimental and the Kafka connector with unknown status, so the approver decides whether an experimental path is acceptable for a production identity flow, or whether the team needs a supportable connector or a fallback process. Confirm this with Evolveum's support subscription terms and the current connector catalog before the design is signed off, not after the first integration test. This approval should name the owner who will accept any residual risk and the review date for it.

