Post

Moving to a New Kafka Cluster Without Losing ACLs, Schemas or Consumer Groups

Kafka migration checklist you can run: export ACLs, consumer groups, schemas and topic configs into one AsyncAPI document, compare two clusters, sync the new one, and let an AI agent find the drift over MCP

Moving to a New Kafka Cluster Without Losing ACLs, Schemas or Consumer Groups

New cluster, new tenant, same old worry: what did we forget?

Topics are the easy part. The things that hurt are the ones nobody wrote down:

  • 🔐 ACLs. Services start, then fail with authorization errors
  • 🧬 Schemas. Producers register something slightly different, or consumers can’t decode
  • 👥 Consumer groups. Nobody remembers who reads what
  • ⚙️ Topic configs. Retention is back to the default, and you find out a week later

Kurkik reads your cluster into one AsyncAPI document. You can compare with it and sync from it

1
curl -fsSL https://kurkik.pavelon.dev/install.sh | sh

The scenario

Two clusters from the demo sandbox: prod is the old home, staging is where we are moving. They have drifted apart: partitions, retention, a missing topic, no ACLs and no schemas on the new side

I added two things to the demo for this post, so that access and schemas have somewhere to land: staging enforces ACLs, and it has its own empty schema registry

Step 1: write the old cluster down

1
kurkik kafka export prod --acls --groups

You get prod-kafka.yaml. The servers part keeps what usually gets lost: how to connect, where the registry is, who may do what, and the consumer groups:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
servers:
  broker-1:
    host: localhost:29092
    protocol: kafka
    protocolVersion: "4.4"
    description: Cluster controller.
    bindings:
      kafka:
        bindingVersion: 0.5.0
        schemaRegistryUrl: http://localhost:18081
        schemaRegistryVendor: apicurio
    x-kurkik:
      kafka:
        server:
          schemaRegistryUrl: http://localhost:18081
          schemaRegistryVendor: apicurio
          security:
          - security: PLAINTEXT
            securityProtocol: PLAINTEXT
          acl:
          - principal: User:billing
            host: '*'
            operation: READ
            permission: ALLOW
            resourceType: GROUP
            patternType: LITERAL
            name: billing
          # ... six more bindings ...
          groups:
          - groupId: analytics
            groupType: classic
            state: EMPTY
            clientIds: []
            topics:
            - orders.created
            configuration: {}
          # ... billing, broker and client settings ...

In channels, each topic keeps its schema, partitions and settings:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
channels:
  orders.created:
    address: orders.created
    messages:
      orders.created-value:
        payload:
          schemaFormat: application/vnd.apache.avro;version=1.9.0
          schema:
            type: record
            name: OrderCreated
            namespace: com.shop.orders
            fields:
            - name: id
              type: string
            - name: customer
              type: string
            - name: total
              type:
                type: bytes
                logicalType: decimal
                precision: 10
                scale: 2
        name: orders.created-value
        title: orders.created
        summary: "Schema read from the Apicurio Registry: subject orders.created-value,\
          \ version 1."
        bindings:
          kafka:
            bindingVersion: 0.5.0
            schemaIdLocation: header
            schemaLookupStrategy: TopicIdStrategy
        x-kurkik:
          kafka:
            message:
              schemaIdLocation: header
              schemaLookupStrategy: TopicIdStrategy
              schemaCompatibility: NONE
    bindings:
      kafka:
        bindingVersion: 0.5.0
        partitions: 12
        replicas: 1
        topicConfiguration:
          retention.ms: 604800000

The whole document is at the end

Step 2: look for yourself

First, what is on the old cluster:

1
kurkik kafka scan prod --acls --groups --registry
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
prod - Apache Kafka, cluster cHJvZC1rdXJraWstZGVtbw
brokers (1)
  1  localhost:29092  controller
topics (4)
  customers.updated  1 partition(s), replication 1
    cleanup.policy = compact
  orders.created  12 partition(s), replication 1
    retention.ms = 604800000
  orders.paid  3 partition(s), replication 1
    retention.ms = 86400000
  shipments.dispatched  6 partition(s), replication 1
consumer groups (2)
  analytics  empty, 0 member(s): orders.created
  billing  empty, 0 member(s): orders.created, orders.paid
acl bindings (7)
  ALLOW User:analytics READ on GROUP prefix analytics
  ALLOW User:analytics READ on TOPIC prefix orders.
  ALLOW User:billing READ on GROUP billing
  ALLOW User:billing READ on TOPIC orders.created
  ALLOW User:billing READ on TOPIC orders.paid
  ALLOW User:orders-service WRITE on TOPIC prefix orders.
  DENY User:analytics READ on TOPIC customers.updated
schema registry  http://localhost:18081  (Apicurio Registry, TopicNameStrategy, compatibility NONE)
  com.shop.Money  v1  AVRO
  customers.updated-key  v1  AVRO  -> customers.updated (key)
  customers.updated-value  v1  JSON  -> customers.updated (value)
  orders.created-value  v1  AVRO  -> orders.created (value)
  orders.paid-value  v1  AVRO  -> orders.paid (value)

Then, what the new one is missing:

1
kurkik kafka diff prod staging --all
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
prod vs staging
cluster c3RhZ2luZy1rdXJraWstZA

Topics
  + payments.refunded topic - Topic payments.refunded is not on prod. (staging: payments.refunded)
  ! shipments.dispatched topic - Topic shipments.dispatched is not on staging. (prod: shipments.dispatched)

Partitions and replicas
  ~ orders.created partitions - partitions differ. (prod: 12, staging: 6)

Topic configuration
  ~ orders.paid retention.ms - retention.ms differs. (prod: 86400000, staging: 604800000)

Schemas
  ! customers.updated value - prod has a value schema for customers.updated (customers.updated-value); staging has none. (prod: customers.updated-value)
  ! customers.updated key - prod has a key schema for customers.updated (customers.updated-key); staging has none. (prod: customers.updated-key)
  ! orders.created value - prod has a value schema for orders.created (orders.created-value); staging has none. (prod: orders.created-value)
  ! orders.paid value - prod has a value schema for orders.paid (orders.paid-value); staging has none. (prod: orders.paid-value)

Groups
  ! analytics groupId - Group analytics is on prod and not on staging. (prod: analytics)

ACLs
  ! User:analytics - prod has ALLOW User:analytics READ on GROUP prefix analytics; staging does not.
  ! User:analytics - prod has DENY User:analytics READ on TOPIC customers.updated; staging does not.
  ! User:analytics - prod has ALLOW User:analytics READ on TOPIC prefix orders.; staging does not.
  ! User:billing - prod has ALLOW User:billing READ on GROUP billing; staging does not.
  ! User:billing - prod has ALLOW User:billing READ on TOPIC orders.created; staging does not.
  ! User:billing - prod has ALLOW User:billing READ on TOPIC orders.paid; staging does not.
  ! User:orders-service - prod has ALLOW User:orders-service WRITE on TOPIC prefix orders.; staging does not.

Notes
  - Prod: No value schema is registered for shipments.dispatched (expected subject shipments.dispatched-value).
  - Staging: No value schema is registered for customers.updated (expected subject customers.updated-value).
  - Staging: No value schema is registered for orders.created (expected subject orders.created-value).
  - Staging: No value schema is registered for orders.paid (expected subject orders.paid-value).
  - Staging: No value schema is registered for payments.refunded (expected subject payments.refunded-value).
  - Broker settings that name a machine were not compared: advertised.listeners, broker.id, controller.quorum.voters, listeners, node.id.

Drift: 2 changed · 1 unmanaged · 13 missing (drift) - 28 matched

! means the new side doesn’t have it, ~ means it differs, + means only the new side has it. Exit code 2 means drift

Step 3: plan, apply, check

Always start with --dry-run. It shows every change and what it costs, and touches nothing:

1
kurkik kafka sync prod-kafka.yaml staging --all --overwrite --dry-run

Happy? Run it for real. Kurkik asks you to type the connection’s name, and saves a snapshot first:

1
kurkik kafka sync prod-kafka.yaml staging --all --overwrite --accept-groups

Terminal recording: kurkik kafka export, diff, sync and diff again between two Kafka clusters

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
applied
  [+] done          raise orders.created  partitions 6 -> 12
  [+] done          set orders.paid  retention.ms 604800000 -> 86400000
  [+] done          create shipments.dispatched
  [+] done          grant ALLOW User:billing READ on GROUP billing  acl (not set) -> ALLOW User:billing READ on GROUP billing
  [+] done          grant ALLOW User:analytics READ on GROUP prefix analytics  acl (not set) -> ALLOW User:analytics READ on GROUP prefix analytics
  [+] done          grant DENY User:analytics READ on TOPIC customers.updated  acl (not set) -> DENY User:analytics READ on TOPIC customers.updated
  [+] done          grant ALLOW User:billing READ on TOPIC orders.created  acl (not set) -> ALLOW User:billing READ on TOPIC orders.created
  [+] done          grant ALLOW User:billing READ on TOPIC orders.paid  acl (not set) -> ALLOW User:billing READ on TOPIC orders.paid
  [+] done          grant ALLOW User:analytics READ on TOPIC prefix orders.  acl (not set) -> ALLOW User:analytics READ on TOPIC prefix orders.
  [+] done          grant ALLOW User:orders-service WRITE on TOPIC prefix orders.  acl (not set) -> ALLOW User:orders-service WRITE on TOPIC prefix orders.
  [+] done          register customers.updated-value  value (not set) -> customers.updated-value
  [+] done          register orders.created-value  value (not set) -> orders.created-value
  [+] done          register orders.paid-value  value (not set) -> orders.paid-value

Applied 13 of 13 changes - 11 left alone

Check again:

1
kurkik kafka diff prod staging --all
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
prod vs staging
cluster c3RhZ2luZy1rdXJraWstZA

Topics
  + payments.refunded topic - Topic payments.refunded is not on prod. (staging: payments.refunded)

Schemas
  ! customers.updated key - prod has a key schema for customers.updated (customers.updated-key); staging has none. (prod: customers.updated-key)

Groups
  ! analytics groupId - Group analytics is on prod and not on staging. (prod: analytics)

Notes
  - Prod: No value schema is registered for shipments.dispatched (expected subject shipments.dispatched-value).
  - Staging: No value schema is registered for payments.refunded (expected subject payments.refunded-value).
  - Staging: No value schema is registered for shipments.dispatched (expected subject shipments.dispatched-value).
  - Broker settings that name a machine were not compared: advertised.listeners, broker.id, controller.quorum.voters, listeners, node.id.

Drift: 0 changed · 1 unmanaged · 2 missing (drift) - 50 matched

What is left is worth knowing:

  • payments.refunded exists only on the new cluster. Sync doesn’t delete unless you ask
  • The key schema of customers.updated is only referenced in the document, so there was nothing to register
  • The analytics group has no settings of its own. It appears when a consumer joins it

Read these before you run it on something real:

  • Messages and consumer positions don’t move. Use your replication tool for data
  • More partitions can’t be taken back, and shorter retention deletes messages. The plan marks both
  • Subjects are registered with the compatibility in the document (NONE here)

Changed your mind? Every sync can be reverted:

1
kurkik kafka sync history staging
1
kurkik kafka sync revert <snapshot>

Let your AI agent do the homework

Reading diffs is fine for four topics. For four hundred, let an agent read them and tell you what matters

kurkik mcp gives an AI agent Kurkik’s tools over MCP. They read and compare. They can’t apply anything

With Claude Code it is one line:

1
claude mcp add kurkik -- kurkik mcp

I used Junie for this post. Put this in your project’s .junie/mcp/mcp.json:

1
2
3
4
5
{
  "mcpServers": {
    "kurkik": { "command": "kurkik", "args": ["mcp"] }
  }
}

Then give it the job. This is the exact task from the recording:

1
We are moving from the Kafka connection "prod" (old) to "staging" (new). Use only the kurkik MCP tools: no terminal commands, no reading files. First list the connections. Compare prod (expected) with staging (actual), areas all. Export prod to kafka-prod.json with consumer groups read, overwrite not needed. Then ask for a sync plan of that document into staging, areas all, overwrite on. Do not apply anything. Finish with a short migration report in plain markdown, at most 35 lines: what differs, what to migrate, what sync will not do, what a person still has to check by hand, and the command to run.

Terminal recording: an AI agent compares two Kafka clusters through Kurkik MCP tools and writes a migration report

The recording is a real run, played back three times faster. Start-up errors from unrelated MCP servers on my machine are cut out

Here is the report it wrote:

Kafka migration assessment completed; nothing was applied

Changes

  • Differences: staging lacks shipments.dispatched, four key/value schemas, and group analytics; it also has staging-only payments.refunded
  • Plan: increase orders.created partitions 6→12 (irreversible; ordering may change) and reduce orders.paid retention 7→1 day (messages may be deleted)
  • Create shipments.dispatched and register three value schemas with compatibility NONE
  • Sync keeps payments.refunded, does not copy messages or group offsets, and does not plan to create analytics or register the customers.updated key schema
  • Manually check ACLs, broker-specific settings, producers/consumers, migration permissions and offsets; verify the untrusted key-schema reference and missing prod shipments.dispatched value schema

Verification

  • Comparison and dry-run plan completed; six changes proposed, 11 items left alone

Notes

  • Exported with groups to asyncapi/prod-kafka.json; the tool cannot specify the requested kafka-prod.json filename
  • After review, a person can run from asyncapi/: kurkik kafka sync prod-kafka.json staging --configs --groups --schemas --overwrite --expect-plan 6bbffc1a6da2

The agent’s export lands in the asyncapi/ folder, so run its command from there. --expect-plan makes sure you apply exactly the plan it looked at, and nothing newer

One thing to keep in mind: ACLs never reach the agent. The MCP comparison and sync plan leave them out on purpose. So the agent covers topics, settings, groups and schemas, and you check access yourself with diff --acls, as in step 2. Its command has no --acls for the same reason

The whole document

The whole document: prod-kafka.yaml (388 lines)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
asyncapi: 3.0.0
info:
  title: prod Apache Kafka API
  version: 1.0.0-SNAPSHOT
  description: |-
    Generated by reading the prod cluster. Cluster id: cHJvZC1rdXJraWstZGVtbw.

    Some of what this document describes could not be read, so it may be incomplete:

    - No value schema is registered for shipments.dispatched (expected subject shipments.dispatched-value).
servers:
  broker-1:
    host: localhost:29092
    protocol: kafka
    protocolVersion: "4.4"
    description: Cluster controller.
    bindings:
      kafka:
        bindingVersion: 0.5.0
        schemaRegistryUrl: http://localhost:18081
        schemaRegistryVendor: apicurio
    x-kurkik:
      kafka:
        server:
          schemaRegistryUrl: http://localhost:18081
          schemaRegistryVendor: apicurio
          security:
          - security: PLAINTEXT
            securityProtocol: PLAINTEXT
          acl:
          - principal: User:billing
            host: '*'
            operation: READ
            permission: ALLOW
            resourceType: GROUP
            patternType: LITERAL
            name: billing
          - principal: User:analytics
            host: '*'
            operation: READ
            permission: ALLOW
            resourceType: GROUP
            patternType: PREFIXED
            name: analytics
          - principal: User:analytics
            host: '*'
            operation: READ
            permission: DENY
            resourceType: TOPIC
            patternType: LITERAL
            name: customers.updated
          - principal: User:billing
            host: '*'
            operation: READ
            permission: ALLOW
            resourceType: TOPIC
            patternType: LITERAL
            name: orders.created
          - principal: User:billing
            host: '*'
            operation: READ
            permission: ALLOW
            resourceType: TOPIC
            patternType: LITERAL
            name: orders.paid
          - principal: User:analytics
            host: '*'
            operation: READ
            permission: ALLOW
            resourceType: TOPIC
            patternType: PREFIXED
            name: orders.
          - principal: User:orders-service
            host: '*'
            operation: WRITE
            permission: ALLOW
            resourceType: TOPIC
            patternType: PREFIXED
            name: orders.
          groups:
          - groupId: analytics
            groupType: classic
            state: EMPTY
            clientIds: []
            topics:
            - orders.created
            configuration: {}
          - groupId: billing
            groupType: classic
            state: EMPTY
            clientIds: []
            topics:
            - orders.created
            - orders.paid
            configuration: {}
          brokerConfiguration:
            advertised.listeners: PLAINTEXT://localhost:29092
            authorizer.class.name: org.apache.kafka.metadata.authorizer.StandardAuthorizer
            broker.id: "1"
            controller.listener.names: CONTROLLER
            controller.quorum.voters: 1@localhost:9093
            group.initial.rebalance.delay.ms: "0"
            listener.security.protocol.map: "CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT"
            listeners: "PLAINTEXT://0.0.0.0:29092,CONTROLLER://localhost:9093"
            min.insync.replicas: "1"
            node.id: "1"
            offsets.topic.replication.factor: "1"
            process.roles: "broker,controller"
            transaction.state.log.min.isr: "1"
            transaction.state.log.replication.factor: "1"
          clientConfiguration:
            bootstrap.servers: localhost:29092
            security.protocol: PLAINTEXT
          groupConfiguration: {}
          producerConfiguration: {}
          consumerConfiguration: {}
channels:
  customers.updated:
    address: customers.updated
    messages:
      customers.updated-value:
        payload:
          schemaFormat: application/schema+json;version=draft-07
          schema:
            $schema: http://json-schema.org/draft-07/schema#
            title: Customer
            type: object
            properties:
              id:
                type: string
              email:
                type: string
                format: email
            required:
            - id
        name: customers.updated-value
        title: customers.updated
        summary: "Schema read from the Apicurio Registry: subject customers.updated-value,\
          \ version 1."
        bindings:
          kafka:
            bindingVersion: 0.5.0
            key:
              $ref: http://localhost:18081/apis/registry/v2/groups/default/artifacts/customers.updated-key
            schemaIdLocation: header
            schemaLookupStrategy: TopicIdStrategy
        x-kurkik:
          kafka:
            message:
              key:
                $ref: http://localhost:18081/apis/registry/v2/groups/default/artifacts/customers.updated-key
              schemaIdLocation: header
              schemaLookupStrategy: TopicIdStrategy
              schemaCompatibility: NONE
    bindings:
      kafka:
        bindingVersion: 0.5.0
        partitions: 1
        replicas: 1
        topicConfiguration:
          cleanup.policy:
          - compact
    x-kurkik:
      kafka:
        channel:
          topic: customers.updated
          partitions: 1
          replicas: 1
          topicConfiguration:
            cleanup.policy: compact
  orders.created:
    address: orders.created
    messages:
      orders.created-value:
        payload:
          schemaFormat: application/vnd.apache.avro;version=1.9.0
          schema:
            type: record
            name: OrderCreated
            namespace: com.shop.orders
            fields:
            - name: id
              type: string
            - name: customer
              type: string
            - name: total
              type:
                type: bytes
                logicalType: decimal
                precision: 10
                scale: 2
        name: orders.created-value
        title: orders.created
        summary: "Schema read from the Apicurio Registry: subject orders.created-value,\
          \ version 1."
        bindings:
          kafka:
            bindingVersion: 0.5.0
            schemaIdLocation: header
            schemaLookupStrategy: TopicIdStrategy
        x-kurkik:
          kafka:
            message:
              schemaIdLocation: header
              schemaLookupStrategy: TopicIdStrategy
              schemaCompatibility: NONE
    bindings:
      kafka:
        bindingVersion: 0.5.0
        partitions: 12
        replicas: 1
        topicConfiguration:
          retention.ms: 604800000
    x-kurkik:
      kafka:
        channel:
          topic: orders.created
          partitions: 12
          replicas: 1
          topicConfiguration:
            retention.ms: "604800000"
  orders.paid:
    address: orders.paid
    messages:
      orders.paid-value:
        payload:
          schemaFormat: application/vnd.apache.avro;version=1.9.0
          schema:
            type: record
            name: OrderPaid
            namespace: com.shop.orders
            fields:
            - name: id
              type: string
            - name: paidAt
              type:
                type: long
                logicalType: timestamp-millis
        name: orders.paid-value
        title: orders.paid
        summary: "Schema read from the Apicurio Registry: subject orders.paid-value,\
          \ version 1."
        bindings:
          kafka:
            bindingVersion: 0.5.0
            schemaIdLocation: header
            schemaLookupStrategy: TopicIdStrategy
        x-kurkik:
          kafka:
            message:
              schemaIdLocation: header
              schemaLookupStrategy: TopicIdStrategy
              schemaCompatibility: NONE
    bindings:
      kafka:
        bindingVersion: 0.5.0
        partitions: 3
        replicas: 1
        topicConfiguration:
          retention.ms: 86400000
    x-kurkik:
      kafka:
        channel:
          topic: orders.paid
          partitions: 3
          replicas: 1
          topicConfiguration:
            retention.ms: "86400000"
  shipments.dispatched:
    address: shipments.dispatched
    bindings:
      kafka:
        bindingVersion: 0.5.0
        partitions: 6
        replicas: 1
    x-kurkik:
      kafka:
        channel:
          topic: shipments.dispatched
          partitions: 6
          replicas: 1
          topicConfiguration: {}
operations:
  receive_customers.updated:
    action: receive
    channel:
      $ref: "#/channels/customers.updated"
    x-kurkik:
      kafka:
        operation:
          security: []
          consumerConfiguration: {}
          groupConfiguration: {}
  receive_orders.created:
    action: receive
    channel:
      $ref: "#/channels/orders.created"
    bindings:
      kafka:
        bindingVersion: 0.5.0
        groupId:
          $schema: http://json-schema.org/draft-07/schema#
          enum:
          - analytics
          - billing
    x-kurkik:
      kafka:
        operation:
          groupId:
            $schema: http://json-schema.org/draft-07/schema#
            enum:
            - analytics
            - billing
          security:
          - User:analytics
          - User:billing
          consumerConfiguration: {}
          groupConfiguration: {}
  receive_orders.paid:
    action: receive
    channel:
      $ref: "#/channels/orders.paid"
    bindings:
      kafka:
        bindingVersion: 0.5.0
        groupId:
          $schema: http://json-schema.org/draft-07/schema#
          enum:
          - billing
    x-kurkik:
      kafka:
        operation:
          groupId:
            $schema: http://json-schema.org/draft-07/schema#
            enum:
            - billing
          security:
          - User:billing
          consumerConfiguration: {}
          groupConfiguration: {}
  receive_shipments.dispatched:
    action: receive
    channel:
      $ref: "#/channels/shipments.dispatched"
    x-kurkik:
      kafka:
        operation:
          security: []
          consumerConfiguration: {}
          groupConfiguration: {}
  send_customers.updated:
    action: send
    channel:
      $ref: "#/channels/customers.updated"
    x-kurkik:
      kafka:
        operation:
          security: []
          producerConfiguration: {}
  send_orders.created:
    action: send
    channel:
      $ref: "#/channels/orders.created"
    x-kurkik:
      kafka:
        operation:
          security:
          - User:orders-service
          producerConfiguration: {}
  send_orders.paid:
    action: send
    channel:
      $ref: "#/channels/orders.paid"
    x-kurkik:
      kafka:
        operation:
          security:
          - User:orders-service
          producerConfiguration: {}
  send_shipments.dispatched:
    action: send
    channel:
      $ref: "#/channels/shipments.dispatched"
    x-kurkik:
      kafka:
        operation:
          security: []
          producerConfiguration: {}

Other situations

Questions people ask

How do I copy Kafka ACLs to another cluster?

Export the old cluster with kurkik kafka export <connection> --acls, then run kurkik kafka sync <document> <new connection> --all --dry-run, read the plan and run it without --dry-run

Are consumer offsets migrated?

No. Kurkik never copies messages or consumer positions. It can create a group by writing its settings, and a group with nothing to write appears only when a consumer joins it

Can an AI agent apply the migration?

No. The MCP tools read, compare and plan. The plan ends with the command a person runs, and the agent never sees ACLs

The series

One post per system Kurkik reads:

  1. Apache Kafka (you are here)
  2. Moving Apache Pulsar
  3. Moving Amazon SNS
  4. Moving Amazon SQS
This post is licensed under CC BY 4.0 by the author.