Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
Shorten fake Google API key fixtures below secret-scanner shape
rcourtmand8557c925626
diff --git a/internal/ai/safety/ai_safety_paths_and_redaction_branchcov0716_test.go b/internal/ai/safety/ai_safety_paths_and_redaction_branchcov0716_test.goindex 94bae18ecf..197f590b4c 100644--- a/internal/ai/safety/ai_safety_paths_and_redaction_branchcov0716_test.go+++ b/internal/ai/safety/ai_safety_paths_and_redaction_branchcov0716_test.go@@ -373,7 +373,9 @@ func TestBranchCovRedactSensitiveText(t *testing.T) {{"aws access key", "id=AKIAIOSFODNN7EXAMPLE"},{"jwt", "tok=eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxMjM0NTY3ODkwIn0.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"},{"openai key", "k=sk-abcdef123456"},- {"google api key", "k=AIzaSyABCdefghIJKlmnoPQRstuVWxyz1234567"},+ // Deliberately shorter than the real 39-char key shape so secret+ // scanners don't flag the fixture; the redactor only needs 10+ chars.+ {"google api key", "k=AIzaSyTestFixture00"},{"github token", "t=ghp_abcdefghijklmnopqrstuvwxyz"},}for _, c := range cases {@@ -401,13 +403,13 @@ func TestBranchCovRedactSensitiveText(t *testing.T) {`x-api-key: somekeyvalue`,`https://user:[email protected]/`,`{"secret":"shh"}`,- `GET https://example.test/v1?key=AIzaSyAbcDefGhiJklMnoPqrStuVwxYz1234567`,+ `GET https://example.test/v1?key=AIzaSyUrlFixture99`,}, "\n")out, n := RedactSensitiveText(input)if n == 0 {t.Fatalf("expected redactions, got 0")}- for _, leak := range []string{"abc123def456", "somekeyvalue", "user:pass@", "shh", "AIzaSyAbcDefGhiJklMnoPqrStuVwxYz1234567"} {+ for _, leak := range []string{"abc123def456", "somekeyvalue", "user:pass@", "shh", "AIzaSyUrlFixture99"} {if strings.Contains(out, leak) {t.Errorf("leaked %q in %q", leak, out)}