liveBook · Manning

Encryption

As explained in Apache Kafka in Action

Encryption transforms readable data into an encoded form that requires a corresponding decryption method to recover.

Kafka data can be exposed while crossing a network or while stored on disk. Encryption helps protect it in both states; highly sensitive data may need end-to-end encryption as well. section 13.2 section 13.4

Choose protections according to where data is vulnerable:

  • Encrypt network traffic and sign it to protect data in transit and its integrity. section 13.2
  • Encrypt disks through the underlying storage system; Kafka does not provide native at-rest encryption. section 13.4
  • Use client-level end-to-end encryption for highly sensitive data. Network and disk encryption do not protect data from server or Kafka administrators. section 13.2

For ZooKeeper-based clusters, unencrypted connections can expose Kafka metadata and, in some cases, stored credentials. TLS is supported for ZooKeeper connections with Kafka 2.5 and later; mutual TLS is recommended between brokers and ZooKeeper. Watch latency, since excessive delay can affect cluster availability. section 13.2.6

Figure 13.3 Securing a Kafka cluster involves transport encryption for communication, user authentication and authorization, and encryption of data at rest.
A screenshot of a computer screen

AI-generated content may be incorrect.

The diagram connects transport encryption, authentication and authorization, and encryption at rest as complementary Kafka security measures. section 13.2

How Apache Kafka in Action covers it

How deep it goes
Distinguishes transport, disk, and end-to-end encryption, explains their limits, and notes ZooKeeper TLS without detailing its configuration.
Examples
Contrasts Kafka network traffic, stored disks, sensitive messages, and broker-to-ZooKeeper connections.
What you can do after
Apply TLS to Kafka transport, encrypt storage through underlying systems, and use client-level end-to-end encryption for sensitive data.
How it connects
Connects encryption with TLS, authentication, authorization, disk encryption, end-to-end encryption, and ZooKeeper security.

Also explained in

Compare how 16 books explain encryption →

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.