feat: mask client ip in audit log

This commit is contained in:
Marek Miklewicz
2026-06-30 19:08:10 +02:00
parent 227c16410c
commit 4fc787fea8
6 changed files with 37 additions and 3 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ return static function (): void {
];
$clientIp = ClientIp::resolve($_SERVER, $settings);
$auditBase['client_ip'] = $clientIp;
$auditBase['client_ip'] = $settings->auditClientIp($clientIp);
$createdAt = time();
$correlation = KeyName::build($ctx->serverName(), $ctx->username(), $createdAt);
$auditBase['correlation'] = $correlation;