mirror of
https://github.com/coollabsio/coolify.git
synced 2026-11-14 08:42:38 -04:00
Co-authored-by: peaklabs-dev <122374094+peaklabs-dev@users.noreply.github.com> Co-authored-by: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: rosslh <ross@rosshill.ca>
20 lines
505 B
PHP
20 lines
505 B
PHP
<?php
|
|
|
|
namespace App\Logging;
|
|
|
|
use App\Services\Security\SensitiveDataRedactor;
|
|
use Illuminate\Log\Logger;
|
|
|
|
/**
|
|
* Redacts the audit log like every other channel, but keeps email addresses so the log still records who acted.
|
|
*/
|
|
final class RedactSensitiveAuditData
|
|
{
|
|
public function __construct(private readonly SensitiveDataRedactor $redactor) {}
|
|
|
|
public function __invoke(Logger $logger): void
|
|
{
|
|
(new RedactSensitiveData($this->redactor->withoutEmailRedaction()))($logger);
|
|
}
|
|
}
|