feat: report preview page, sharp report logo, time to ban by blocker

The Reports page now previews the HTML report itself (same document as the
download and the print), with only Download and Print. The report logo is
the repository logo at 800 px. Survival splits fail2ban and the Urutau
second firewall.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Lucas RayanandClaude Opus 5.5 committed 2026-11-15 00:06:29 -03:00
1 parent 5d3374ee11
commit 9bdfdb491b
10 files changed
+245 -500

No files matched your search

+1 -1
View File
@@ -66,7 +66,7 @@ func TestReportHTMLRenders(t *testing.T) {
if strings.Contains(s, "<script") || strings.Contains(s, "<img src=x") || strings.Contains(s, "<b>Ltd") {
t.Fatalf("%s: unescaped attacker data", lang)
}
if !strings.Contains(s, "&lt;script&gt;") || !strings.Contains(s, "data:image/png;base64,") {
if !strings.Contains(s, "&lt;script&gt;") || !strings.Contains(s, "data:image/webp;base64,") {
t.Fatalf("%s: missing escaped payload or logo", lang)
}
if len(b) > 400<<10 {