Skip to Content
SourcesApache Kafka

Apache Kafka

Apache Kafka

Discover Kafka topics and sample messages for detection.

Category
Streaming
Source type
KAFKA
Produces
topic

Event streams carry the same personal data as the databases they feed, often with less scrutiny — a topic is a pipe, and nobody reads what goes through a pipe.

What you need to connect

A bootstrap host and port, and one of four connection modes:

ModeWhat you supply
NoneNothing — a plaintext broker, typically internal
SASLUsername, password, mechanism, and a CA certificate
Client certificateAn access key, certificate and CA bundle (mTLS)
REST ProxyUsername and password for a Kafka REST Proxy over HTTP(S)

The REST Proxy mode needs no broker-protocol access at all, which is often the only way in from outside a cluster’s network.

What Classifyre reads

One asset per topic, whose content is a sample of messages from it. Scope by topic allow- and denylist, cap the topic count, and choose whether internal topics (__consumer_offsets and friends) are included.

Metadata on every asset

Asset kind · topic

FieldTypeAlways presentWhat it is
partition_countintegerYesNumber of partitions
replication_factorintegerNoReplication factor
earliest_offsetintegerNoSum of earliest offsets across partitions
latest_offsetintegerNoSum of latest offsets across partitions
retention_msintegerNoTopic retention in milliseconds
cleanup_policystringNoTopic cleanup policy (delete/compact)

Lineage

Lineage

This source records no lineage. Nothing in the system it reads describes data moving from one place to another, so no FLOW edges are produced. Related items are still linked — see Lineage & Relationships for what those links mean and how they differ from lineage.

Worth knowing

  • Reading does not disturb consumers. Messages are sampled without committing offsets on your consumer groups.
  • A dedicated read-only principal is the right credential — it needs describe and read on the topics you want.

Configuration

Beyond the fields below, every source also has the settings shared by all of them: the sampling strategy, the detectors to run, the scan schedule, and the compute limits for its scan jobs.

Required

Without these, the source will not save.

This section depends on which authentication method you pick — one of the following applies.

No Authentication

FieldTypeRequiredWhat it doesDefault
auth_mode"NONE"Yes
hoststringYesKafka broker host name or IP (e.g. kafka.example.com)
portintegerYesKafka broker port9092

SASL (Username/Password)

FieldTypeRequiredWhat it doesDefault
auth_mode"SASL"Yes
hoststringYesKafka broker host name or IP (e.g. kafka.example.com)
portintegerYesKafka broker port9092

Client Certificate (mTLS)

FieldTypeRequiredWhat it doesDefault
auth_mode"CLIENT_CERT"Yes
hoststringYesKafka broker host name or IP (e.g. kafka.example.com)
portintegerYesKafka broker port9092

Kafka REST Proxy (Username/Password)

FieldTypeRequiredWhat it doesDefault
auth_mode"REST"Yes
hoststringYesKafka REST proxy host name or IP (e.g. kafka-rest.example.com)
portintegerYesKafka REST proxy port8082

Secrets

Stored encrypted and never shown again after you save them. See Configuration & Fields.

This section depends on which authentication method you pick — one of the following applies.

No Authentication

Secret fields · No Authentication: none for this source.

SASL (Username/Password)

FieldTypeRequiredWhat it doesDefault
sasl_usernamestringYesSASL username
sasl_passwordstringYesSASL password
ca_certificatestringNoPEM-encoded CA certificate used to verify the broker's TLS certificate — the provider's ca.pem. Required for private or self-signed CAs; leave empty to trust the system CA bundle.

Client Certificate (mTLS)

FieldTypeRequiredWhat it doesDefault
access_keystringYesPEM-encoded client private key — the block starting with -----BEGIN PRIVATE KEY----- (Aiven: service.key)
access_certificatestringYesPEM-encoded client certificate — the block starting with -----BEGIN CERTIFICATE----- (Aiven: service.cert)
ca_certificatestringNoPEM-encoded CA certificate used to verify the broker's TLS certificate — the provider's ca.pem. Required for private or self-signed CAs; leave empty to trust the system CA bundle.

Kafka REST Proxy (Username/Password)

FieldTypeRequiredWhat it doesDefault
usernamestringYesREST proxy username
passwordstringYesREST proxy password

Optional

Everything you can tune. Sensible defaults apply when you leave them alone.

FieldTypeRequiredWhat it doesDefault
optionalobjectNono extra properties
connectionobjectNoKafka client connection and security options.no extra properties
connection.request_timeout_msintegerNoClient request timeout in millisecondsmin 100030000
connection.rest_use_tlsbooleanNoREST proxy only: call the proxy over HTTPS. Turn off for a plain-HTTP proxy (e.g. a local Karapace).true
connection.sasl_mechanismenumNoSASL mechanism used when security_protocol is SASL_* Allowed: PLAIN, SCRAM-SHA-256, SCRAM-SHA-512PLAIN
connection.security_protocolenumNoKafka client security protocol. Leave unset to derive it from the authentication mode (SASL → SASL_SSL, Client Certificate → SSL, No Authentication → PLAINTEXT); set it only to override, e.g. SASL_PLAINTEXT for a SASL broker without TLS. Allowed: PLAINTEXT, SSL, SASL_PLAINTEXT, SASL_SSL
scopeobjectNoKafka topic selection scope.no extra properties
scope.exclude_topicsarrayNoTopic denylist
scope.exclude_topics[]stringNo
scope.include_internalbooleanNoInclude internal topics (names starting with __)false
scope.include_topicsarrayNoOptional topic allowlist
scope.include_topics[]stringNo
scope.topic_limitintegerNoOptional cap on number of topic assetsmin 1
Last updated on