Kafka Compliance: Network Security
The Network Security page reports whether data and control traffic on a Kafka cluster is encrypted in transit and, for the Kafka Connect REST API, whether it is authenticated. It covers the security protocol of each broker listener, the expiry of the TLS certificates the cluster's nodes present, the transport and authentication of each Connect worker's REST interface, and the security protocol used by cross-cluster replication. A listener or a replication flow that uses an unencrypted protocol exposes data and credentials on the wire.
The page is divided into a Kafka group, covering the brokers, and a Connect group, covering the Connect workers.
The listener protocols are derived on the AxonOps server from the cached broker configuration, and the Connect REST transport and authentication verdicts from the cached Connect worker configuration. The replication protocols are derived from the Connect connector configurations, which AxonOps serves from a short-lived cache; when the cache holds no entry for a Connect cluster, the server fetches the connectors live from that cluster through its agent. The certificate data comes from a separate probe of the cluster's TLS endpoints, described below.
Listeners
Section titled “Listeners”Each broker listener with its resolved security protocol, and a flag on any listener whose protocol is not encrypted. AxonOps resolves each listener name through the broker's listener.security.protocol.map, or treats the name itself as the protocol where the map has no entry, and treats SSL and SASL_SSL as encrypted. SASL_SSL is SASL authentication over a TLS connection; SASL_PLAINTEXT is SASL authentication over an unencrypted connection. Every protocol other than SSL and SASL_SSL, including PLAINTEXT and SASL_PLAINTEXT, is flagged.
Listeners are de-duplicated by name across the brokers, so the panel lists, and counts, distinct listener names rather than one row per broker. Where brokers disagree on the protocol of a listener with the same name, the unencrypted reading is kept, so a listener misconfigured as PLAINTEXT on a single broker is still flagged. The panel does not show which broker reported the flagged reading. Only broker nodes are read (see Not covered by this page).
The headline figure on the Compliance Overview Plaintext Listeners tile is the count of flagged listener names, reported as Fail when it is above zero. A production cluster handling regulated or credential-bearing traffic should present no plaintext listener. Where a listener is flagged, confirm its bind address in the broker's listeners configuration before treating a loopback-only listener as acceptable.
TLS certificate expiry
Section titled “TLS certificate expiry”Each Transport Layer Security (TLS) certificate the cluster's nodes present on a TLS endpoint, listed with the node, the listener it was found on, its subject and issuer, a marker on a self-signed certificate, its absolute expiry date, and the number of days until it expires. The list is sorted with the soonest expiry first, 10 rows to a page.
The certificates are collected by a probe that axon-server runs hourly. For each node, axon-server asks the AxonOps agent on that node, over the agent's MQTT connection (the agent's connection to axon-server), to open a TLS handshake to 127.0.0.1 on the port of every listener whose protocol is SSL or SASL_SSL, and to return the certificate the listener presents. Kafka Connect workers and Schema Registry nodes are probed on their HTTPS REST listeners in the same way, and their certificates appear in the same list. Because the probe connects through the loopback address, a listener bound only to a non-loopback interface is not reached and contributes no certificate.
Each certificate row carries a status: critical when it expires in fewer than 14 days, warning when it expires in fewer than 30 days, and ok otherwise. The TLS Certificate Expiry panel shows the days until the nearest expiry, the number of certificates, and the number of probed nodes. Selecting the panel opens the certificate list and a Re-check now control, which triggers an on-demand probe and is disabled while a probe is in flight. The control is available only in this dialog.
Probe failures are reported in two forms:
- A node whose agent does not answer is counted in the dialog as "N node(s) could not be probed". If an earlier probe of that node succeeded, its certificates from that probe stay in the list, and the list does not mark which rows are carried over. The expiry of a certificate on such a node can be read directly from the host with
openssl s_client -connect <host>:<port> </dev/null | openssl x509 -noout -enddate. - A listener on a node that answered, but whose handshake failed (for example because the port is closed), contributes no certificate and is not reported as a gap.
If the probe as a whole fails, the panel shows the probe error in place of a figure. A cluster with no TLS endpoint has no certificate to report, and the panel states that no TLS certificates were detected.
The headline figure on the Compliance Overview TLS Cert Expiry tile is the number of days until the nearest certificate expires. The tile reports Not measured when the probe returned an error or found no certificates. The figure gives lead time for certificate rotation. Once a listener's certificate expires, TLS clients connecting to that listener reject the handshake until the certificate is replaced (under mutual TLS, the broker also rejects an expired client certificate). The effect depends on the listener:
- On a client listener, producers, consumers, and admin clients using it cannot connect.
- On the inter-broker listener, follower replication from the affected broker stalls and the under-replicated partition count rises.
- On a Connect or Schema Registry HTTPS listener, REST clients of that worker fail.
Because the probe runs hourly, the list can show a replaced certificate for up to one hour after rotation. After rotating a certificate, open the TLS Certificate Expiry dialog, select Re-check now, and confirm that the days to expiry for the rotated certificate have increased.
Connect REST interface
Section titled “Connect REST interface”The transport each Kafka Connect worker serves its REST API over, resolved on the AxonOps server from the worker's listeners configuration, with any worker serving over plaintext HTTP flagged. The panel reports the number of workers and how many of them are flagged. The Connect REST API carries connector configurations, which commonly include the credentials the connector uses to reach its external system, so a plaintext REST interface exposes those credentials on the wire.
Each worker is assessed on its own; the result is not de-duplicated across workers. The verdict follows these rules:
- Where
listenerslists onlyhttpsentries, the worker is reported as HTTPS. - Where
listenerslists bothhttpandhttpsentries, the worker is flagged, because the HTTP listener still serves the API in plaintext. - Where
listenersis not reported, AxonOps readsrest.advertised.listenerinstead. That setting only names the protocol the worker advertises to other workers (httporhttps); it does not control what the worker serves. This fallback is therefore weaker than thelistenerscheck and cannot detect an HTTP listener served alongside an advertised HTTPS one. - Where neither is reported, AxonOps assumes HTTP and flags the worker. In Kafka 3.0 and later, only
listeners(with the advertised settings) configures the Connect REST server, and with nothing set the worker serves HTTP on port 8083. The deprecatedrest.host.nameandrest.portsettings were removed in Kafka 3.0.0 (KAFKA-12482).
Connect REST authentication
Section titled “Connect REST authentication”Whether each Kafka Connect worker authenticates REST requests through a REST extension, resolved from the worker's rest.extension.classes configuration. Apache Kafka Connect enables no REST authentication by default (unchanged through Kafka 3.x and 4.x): rest.extension.classes is empty by default. The extension mechanism this panel reads was introduced in Kafka 2.0.0 (KIP-285, KAFKA-6776). Apache Kafka ships one authentication extension, org.apache.kafka.connect.rest.basic.auth.extension.BasicAuthSecurityRestExtension, which adds HTTP basic authentication and is enabled only when listed in rest.extension.classes, together with a KafkaConnect JAAS login configuration. Basic authentication sends credentials with every request, so it should be used only on an HTTPS listener. A worker with no REST extension configured is reported as unauthenticated. Any party able to reach a genuinely unauthenticated worker may create, reconfigure, or delete connectors and read their configurations, so such a worker should be reachable only from a restricted network.
A worker with any entry in rest.extension.classes is reported as authenticated, and the tag shows the short class name of each extension. AxonOps does not inspect what the extension does. A REST extension that adds metrics, logging, or another non-authentication function counts as authentication on this panel, so a worker reported as authenticated should be confirmed against the extension's purpose.
Mutual TLS is not detected
Kafka Connect also accepts client certificate authentication on an HTTPS REST listener, configured with ssl.client.auth independently of rest.extension.classes. The REST server reads its SSL settings with the listeners.https. prefix as a set: unprefixed ssl.* settings, including ssl.client.auth, apply only when no listeners.https.-prefixed SSL setting is present. Where any prefixed setting is set, listeners.https.ssl.client.auth must also be set with the prefix, and it defaults to none. Only the value required enforces authentication; requested asks for a certificate but accepts connections without one. This panel does not inspect either setting. A worker that enforces mutual TLS but configures no REST extension is authenticated by certificate, yet is reported here as having no REST auth. Confirm a flagged worker's REST listener configuration before treating it as an exposure.
Cross-cluster replication encryption
Section titled “Cross-cluster replication encryption”The security protocol used by each MirrorMaker or replicator connector. AxonOps treats a connector as replication when its connector.class contains mirror or replicator (case-insensitive), and reads only these four keys from its configuration:
source.cluster.security.protocoltarget.cluster.security.protocolproducer.override.security.protocolconsumer.override.security.protocol
The panel lists one row for each of these keys the connector sets, with the side (source, target, producer, or consumer) and the protocol. A row whose protocol is PLAINTEXT or SASL_PLAINTEXT, or whose key is set to an empty value, is flagged. Where the connector sets none of the four keys, the panel shows a single row with the side default and the protocol PLAINTEXT, flagged.
These readings have the following limits:
- A connector that sets one side but not the other produces a row only for the side it sets; the missing side is not reported, even though it falls back to PLAINTEXT.
- Worker-level
security.protocoland other inherited client settings are not read. ThedefaultPLAINTEXT row is the Apache Kafka default forsecurity.protocol(unchanged through Kafka 3.x and 4.x), which AxonOps assumes; a connector that inherits an encrypted protocol from its worker is still flagged. - Only replication that runs as a Kafka Connect connector, such as MirrorMaker 2, is covered. Replication run by any other means, including a standalone MirrorMaker 1 process or a third-party tool outside Connect, is not represented, and an unencrypted flow of that kind is not flagged.
- If the connector list for a Connect cluster cannot be fetched, AxonOps skips that cluster and records the failure only in a server-side warning, so its replication connectors are absent from the panel without indication.
Where Kafka Connect is not enabled in AxonOps, the panel states "Kafka Connect is not enabled."; where it is enabled but no connector matches, the panel states that no MirrorMaker or replication connectors were found. Replication commonly crosses trust boundaries, so an unencrypted flow is a direct exposure.
Not covered by this page
Section titled “Not covered by this page”The following are outside the checks on this page and should be reviewed separately:
- Listeners on dedicated KRaft controller nodes (the controller quorum). The Listeners panel reads broker nodes only. The certificate probe does include controller nodes, so a controller's SSL certificate appears in the TLS certificate list, but a plaintext controller listener is not flagged.
- Truststore certificates, the certificate authorities a node is configured to accept. An expiring certificate authority in a broker or client truststore is not reported.
- Client certificates that brokers, Connect workers, or other clients present for mutual TLS. The probe collects only the certificate a listener serves, so a client keystore certificate is reported only if the same certificate is also served on a probed listener.
Underlying mechanisms
Section titled “Underlying mechanisms”TLS configuration, certificate handling, and cipher selection are documented in the Kafka Encryption reference.
Standards alignment
Section titled “Standards alignment”The signals on this page support the following ISO/IEC 27002:2022 controls: 5.14 Information transfer, 8.20 Networks security, 8.21 Security of network services, 8.22 Segregation of networks, and 8.24 Use of cryptography.