For the complete documentation index, see llms.txt. This page is also available as Markdown.

Security and permissions

Network paths, ACLs, and permissions required by K2K.

K2K uses standard Kafka and Schema Registry clients. Security configuration follows the same properties as any other Kafka application — see Kafka connectivity and authentication and Secrets and templates.

This page summarizes the network paths and permissions K2K needs on each cluster.

Network paths

Direction
From
To
Purpose

Source read

K2K replicator

Source Kafka bootstrap servers

Consume replicated topics

Target write

K2K replicator

Target Kafka bootstrap servers

Produce replicated records and control messages

Offset mapping (source)

K2K offset mapper

Source Kafka bootstrap servers

List consumer groups and read committed offsets via admin API

Offset mapping (target)

K2K offset mapper

Target Kafka bootstrap servers

Read offset mapping control topic; commit translated offsets

Schema Registry (optional)

K2K replicator

Source and target Schema Registry

Schema migration when enabled

Deploy the replicator close to the target cluster to minimize producer latency. See Deployment.

Source Kafka cluster permissions

The replicator needs:

Operation
Client
Used for

READ on replicated topics

Consumer

Reading records for replication

DESCRIBE on topics

Admin

Topic validation and metadata

JOIN consumer group

Consumer

Partition assignment via K2K group

The offset mapper needs (when offset mapping is enabled):

Operation
Client
Used for

DESCRIBE / LIST consumer groups

Admin

Discover groups to translate

READ committed offsets

Admin

Read source group positions

K2K does not commit offsets on the source Kafka cluster.

Target Kafka cluster permissions

The replicator needs:

Operation
Client
Used for

WRITE on replicated topics

Producer

Publishing replicated records

WRITE on control topics

Producer

Commits, offset mappings, coordination, metrics

READ on control topics

Consumer

Assignment and progress tracking

CREATE / ALTER topics (optional)

Admin

Topic creation and control topic provisioning

INIT_PRODUCE_ID / transactional writes (optional)

Producer

The offset mapper needs:

Operation
Client
Used for

READ on offset mapping control topic

Consumer

Read mappings recorded by replicator

ALTER consumer group offsets

Admin

Commit translated offsets on target groups

Control topics

Control topics live on the target Kafka cluster. They are created automatically when features.autoCreateControlTopics is enabled, or must be provisioned manually. Grant the K2K service principal CREATE and WRITE on the target cluster, or pre-create topics with the expected names from Topic creation.

Do not grant application consumers access to control topics. They contain internal coordination data, not application payloads.

Schema Registry permissions

When schema migration is enabled, the replicator needs read access to subjects on the source registry and write access on the target registry. Authentication uses the same mechanisms as Kafka — see Schema Registry connectivity and authentication.

Secrets management

Keep license tokens, SASL credentials, and TLS keystores out of source control. Use Secrets and templates to inject values at deploy time from environment variables, mounted files, or your secrets manager.

Validation

After configuring security, run through the Validation checklist and enable Startup validation probes before production traffic.

Last updated

Was this helpful?