AshAuthentication.AddOn.AuditLog.IpPrivacy (ash_authentication v4.13.3)
View SourceProvides IP address privacy transformations for audit logging.
This module handles transforming IP addresses according to privacy settings to help comply with privacy regulations like GDPR.
Summary
Functions
Apply privacy transformation to an IP address string.
Apply privacy transformation to request data containing IP addresses.
Hash an IP address using SHA256.
Truncate an IP address to a network prefix.
Functions
Apply privacy transformation to an IP address string.
Options
:mode- The privacy mode (:none,:hash,:truncate,:exclude):truncation_masks- Map with:ipv4and:ipv6keys for truncation bits
Apply privacy transformation to request data containing IP addresses.
Transforms the following fields:
remote_ipx_forwarded_for(list of IPs)forwarded(list of forwarded headers)
Hash an IP address using SHA256.
Uses the application's secret key base as salt for consistent hashing.
Truncate an IP address to a network prefix.
For IPv4: Applies a subnet mask (e.g., /24 keeps first 3 octets) For IPv6: Applies a prefix length (e.g., /48 keeps first 3 hextets)