Add copy logs button with PII/secret sanitization

Add a copy button to individual container logs that strips sensitive
data before copying to clipboard. Includes sanitization for emails,
database URLs with passwords, JWT tokens, API keys, private key blocks,
and git access tokens.
This commit is contained in:
Duane Adam
2025-12-16 10:43:18 +08:00
parent 6b88481ce2
commit 327e8181af
4 changed files with 147 additions and 0 deletions

View File

@@ -179,6 +179,11 @@ class GetLogs extends Component
}
}
public function copyLogs(): string
{
return sanitizeLogsForExport($this->outputs);
}
public function render()
{
return view('livewire.project.shared.get-logs');