Skip to content

armgit / Pulse

Public Imported from GitHub
0

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.

Supply the existing CSRF credential to session stream fixtures

pulse-triage[bot]4b2757b9da8c
diff --git a/internal/api/assistant_stream_lifetime_test.go b/internal/api/assistant_stream_lifetime_test.go
index cf4ce23998..5b20a99749 100644
--- a/internal/api/assistant_stream_lifetime_test.go
+++ b/internal/api/assistant_stream_lifetime_test.go
@@ -188,6 +188,7 @@ func (f *assistantStreamFixture) request(t *testing.T, label, raw, transport str
req.Header.Set("Authorization", "Bearer "+raw)
case "session":
req.AddCookie(&http.Cookie{Name: cookieNameSession, Value: raw})
+ req.Header.Set("X-CSRF-Token", generateCSRFToken(raw))
case "proxy":
req.Header.Set("X-Proxy-Secret", f.router.config.ProxyAuthSecret)
req.Header.Set("X-Remote-User", "assistant-fixture-admin")