liveBook · Manning

Security

As explained in Apache Kafka in Action

Security is the protection of systems, data, and services against unauthorized access, misuse, disruption, or compromise.

Security protects Kafka data and services from unauthorized access, tampering, disruption, and compromise. In an online store, neglected security could expose payment data, cause financial loss, or damage customer trust. section 13.0

A practical Kafka security posture combines:

  • Authentication, so brokers can verify client identities. section 13.0
  • Authorization through access control lists (ACLs), so users can access or modify only permitted resources. section 13.0
  • Encryption with TLS to protect data in transit and support secure broker and client connections. section 13.2.7 section 15.5.6
  • Monitoring for failed authentication attempts, unauthorized access, and encryption overhead. section 15.5.6

Migrating an unsecured cluster

Add a TLS listener and authentication mechanism to every broker, restarting brokers one at a time. Move inter-broker communication to the new listener, then reconfigure clients with TLS and credentials or new key pairs. After verifying every client, disable the old listener. Finally, create and test ACLs before enforcing them; temporary allow-by-default settings reduce disruption but risk being left enabled. section 13.2.7

Figure 13.5 Required steps to secure an unsecured Kafka cluster
A black background with green ticks and white envelopes

AI-generated content may be incorrect.

Use the migration sequence as a visual checklist for introducing secure listeners, moving clients, disabling the legacy path, and enforcing ACLs. section 13.2.7

How Apache Kafka in Action covers it

How deep it goes
Explains authentication, authorization, encryption, monitoring, and a staged migration, but does not provide exact configuration commands.
Examples
Uses payment-data exposure, unsecured-to-secured migration, security metrics, and isolated clusters for sensitive departmental data.
What you can do after
Operate/configure Kafka security by adding TLS listeners, migrating clients, managing credentials, enforcing ACLs, and monitoring security signals.
How it connects
Connects security with authentication, authorization, encryption, access control, monitoring, governance, and cluster architecture.

Also explained in

Compare how 28 books explain security →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Apache Kafka in Action. The section links point to the parts of the book it draws on.