Class DefaultEventSanitizer
java.lang.Object
org.apache.polaris.service.events.DefaultEventSanitizer
- All Implemented Interfaces:
EventSanitizer
Default implementation of
EventSanitizer. Drops attributes whose keys are on the denylist
and derives safe attributes (e.g., CATALOG_NAME extracted from a denied CATALOG
object) from the originals. The built-in denylist covers attributes that carry credentials or
internal secrets and may be extended via polaris.event-listener.denylisted-attributes.
Operators who need a different denial or derivation policy should replace this bean.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Set<AttributeKey<?>> resolveAdditionalDenylist(Set<String> configuredNames) sanitize(PolarisEvent event) Returns a sanitized copy ofevent.
-
Method Details
-
sanitize
Description copied from interface:EventSanitizerReturns a sanitized copy ofevent. The original event is not modified. The returned event MUST be safe to deliver to all listeners that have not opted in viaRawEventAccess.- Specified by:
sanitizein interfaceEventSanitizer
-
resolveAdditionalDenylist
-