Class CpcTenantSanitizer
java.lang.Object
io.confluent.kafka.cpc.multitenant.CpcTenantSanitizer
CPC-only audit-event sanitizer.
Strips the tenant prefix from authorization audit events so they present a tenant-safe
view: the resource name (e.g. lkc-xxx_topic) is shown as topic, and the
TenantUser principal is shown as a plain User. Only the AUTHORIZATION path
is handled; authentication and other event types are out of scope for CPC V1 and pass
through unchanged.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.kafka.server.audit.AuditEventcpcTenantAuditEvent(org.apache.kafka.server.audit.AuditEvent auditEvent) Sanitizer entry point wired viaauditLogProvider.setSanitizer(...).
-
Constructor Details
-
CpcTenantSanitizer
public CpcTenantSanitizer()
-
-
Method Details
-
cpcTenantAuditEvent
public org.apache.kafka.server.audit.AuditEvent cpcTenantAuditEvent(org.apache.kafka.server.audit.AuditEvent auditEvent) Sanitizer entry point wired viaauditLogProvider.setSanitizer(...).
-