Encrypt, identify, authorise
Defence in depth
- TLS — encrypt traffic on the wire (broker ↔ broker, client ↔ broker).
- SASL or mTLS — authenticate the principal (
User:alice,CN=svc-orders). - ACLs — authorise the principal against resources (
Topic:orders→ Read/Write).
Two common production setups:
- SASL/SCRAM over TLS — easy onboarding, secrets live in Kafka.
- mTLS — preferred at scale, integrates with PKI / Vault / SPIFFE.