← Technical articles
GovernanceLenses.io7 min read

Governance and data access on Kafka in regulated environments

Masking, per-team permissions and an audit trail: how to open Kafka to more people without creating privacy risk.

The dilemma

The more teams use Kafka, the more value it creates, and the more personal data flows in front of more eyes. In banking, insurance and healthcare, the usual answer is to restrict access to a few specialists, which turns Kafka into a bottleneck.

Three controls that solve most of it

Permissions per team and per topic namespace, so each squad accesses only its domain. Masking of sensitive fields in views, so a developer can debug a flow without seeing tax IDs, emails or health data. And an audit trail of who queried, changed or created resources in Kafka.

Lenses offers all three in a single layer, on top of any Kafka cluster.

Where this fits in privacy regulation

Privacy laws such as GDPR and Brazil’s LGPD require personal data processing to be limited to what is necessary and the company to demonstrate the security measures it takes. Least-privilege access per team, masking and auditing are technical measures that help meet those principles and answer a data subject or regulator request.

This does not replace legal and privacy work, but it gives it concrete evidence of what happens in Kafka.

How to implement

Start by classifying topics: which carry personal data and which fields. Define masking policies from that classification, not topic by topic. Integrate Lenses groups with the company identity provider so an employee leaving revokes access automatically.

Common pitfalls

Masking only in the tool and leaving direct consumption uncontrolled is the most common failure: the policy must also hold in the cluster ACLs. Another is classifying once and forgetting; new fields appear with every schema evolution, and classification has to keep up.

Referencesdocs.lenses.io ↗www.gov.br/anpd ↗Technical article by Intelium.
Want to apply this in your context?Talk to the CoE →
More articles
OperationsLenses

Running several Kafka clusters from different vendors with Lenses

Confluent, MSK and open-source Kafka side by side: one view and one access model without forcing a migration.

Read article