v0.332.0: one sign-in for the file manager — a dashboard pass, a host-only files cookie, a per-box secret header (R-1100, operator D16)
gates / gates (push) Successful in 47s

This commit is contained in:
2026-10-19 04:56:56 +02:00
parent ba4a6f060b
commit 9bdd8f8fe8
21 changed files with 1078 additions and 54 deletions
@@ -7,10 +7,10 @@ import (
// `09` §3 decision 36 — the kept-data source appears only when named, at /srv/megorzott.
func TestFileBrowser_KeptSourceOnlyWhenNamed(t *testing.T) {
if s := RenderFileBrowserConfigKept(nil, false, ""); strings.Contains(s, FileBrowserKeptMount) {
if s := RenderFileBrowserConfigKept(nil, false, "", FileBrowserSSO{}); strings.Contains(s, FileBrowserKeptMount) {
t.Fatal("a kept source rendered with no label")
}
s := RenderFileBrowserConfigKept(nil, false, "Megőrzött adatok")
s := RenderFileBrowserConfigKept(nil, false, "Megőrzött adatok", FileBrowserSSO{})
if !strings.Contains(s, `path: "/srv/`+FileBrowserKeptMount+`"`) || !strings.Contains(s, `name: "Megőrzött adatok"`) {
t.Fatalf("kept source missing:\n%s", s)
}