R-136: operator session cookie renamed to __Host-hub_session (always Secure, Path=/, no Domain)

A sibling subdomain can no longer toss a session cookie the hub reads first. Operators are logged out
once; plain-HTTP browser login no longer holds a session; Basic auth for scripts is unchanged.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
This commit is contained in:
adminandClaude Opus 5.5 committed 2026-10-05 21:45:04 +02:00
1 parent 5f060e3d1e
commit e221476ff5
5 files changed
+95 -12

No files matched your search

+1 -1
View File
@@ -348,7 +348,7 @@ func accuracyClass(p95MB float64, limitStr string) string {
// getCSRFToken retrieves the CSRF token from the session cookie.
func (s *Server) getCSRFToken(r *http.Request) string {
cookie, err := r.Cookie("hub_session")
cookie, err := r.Cookie(SessionCookieName)
if err != nil {
return ""
}