Catalogue / uber-2022-kafka-security

Uber secures multi-tenant Kafka with mTLS from its SPIRE-based PKI and a custom authorizer that lets secure and non-secure topics share a cluster

Uber, 2022. Kafka security (authentication and authorization on Uber's Kafka clusters).

Organisation
Uber
Evidence
Reported from production
Source
Securing Kafka® Infrastructure at Uber

Uber Blog, published 2022-04-07

Records

Decision#d1

Authenticate Kafka clients and brokers with mutual TLS

Decision#d2

Fetch keys and certificates from the PKI through a custom security provider set in Kafka config, not static keystore files

Decision#d3

Delegate Kafka authorization to the central IAM service, keyed on a workload identity instead of the hostname

Decision#d4

Allow requests on topics that have no policy, so one cluster can hold secure and non-secure topics during rollout

Decision#d5

Put monitoring of certificates, failed auth counts and dependency health in place before the production rollout

Decision#d6

Move to Java 11, tune GC and cache authorization decisions to recover latency lost when security was enabled

Sign in to read what was chosen, what was rejected and what it cost, each with its place in the source. An account is free. The job-queue cards are open without one.