Design a Kafka security model for a financial services application.

Instruction: Outline the security mechanisms you would implement to protect sensitive financial data in Kafka.

Context: This question evaluates the candidate's knowledge of Kafka's security features (such as encryption, authentication, and authorization) and their ability to apply them in a high-stakes, regulated environment.

Updated

Official answer

Define the protected data, allowed producers/consumers, administrative roles, retention and recovery requirements first. Separate payment-processing effects from Kafka delivery guarantees; a transactional Kafka pipeline does not itself make an external payment exactly once.

Use authenticated TLS for every relevant network boundary. Choose managed identities/certificates, SASL/SCRAM or another supported mechanism based on the organization's identity and rotation system. SCRAM should run over TLS. Kafka does not automatically turn a SCRAM configuration into LDAP or Active Directory integration; any identity-provider integration needs an explicitly supported mechanism or component.

Give each service a separate principal and minimum ACLs for its topics, consumer groups and transactional IDs. Keep administration separate, restrict superusers and test denied operations. Topic ACLs are not field-level entitlements: isolate datasets or tokenize/encrypt sensitive fields before publishing when consumers should see different information.

Encrypt volumes, snapshots and backups; control keys independently and test recovery. Restrict network access to controllers, brokers, Connect, schema services and monitoring. Avoid secrets or sensitive payloads in logs and metric labels. Define deletion and retention across derived stores and backups as well as Kafka.

Specify which access, authorization failures, configuration changes and administrative actions must be audited. Verify that the deployed components actually emit those events, centralize them with restricted access and retention, and test alerting and incident response. Do not assume enabling Kafka ACLs creates a complete financial audit trail or certifies compliance.

Kafka authentication, TLS, authorization

Related Questions