requestlog: publish collector-readable evidence boundary
verify / verify (push) Successful in 3m28s

Publish the reviewed Gamertan Web Foundations v0.1.0-preview.6 snapshot with a narrow mode-0640 collector boundary, private mode-0600 default, explicit setgid ownership guidance, and native macOS-safe release verification.

Exported from reviewed private source 120d660fa432761f85316ca3dde990e2dd142f19 after trusted Gitea CI run 681 and the complete native Mac verification suite.

Material implementation assistance provided by OpenAI Codex; reviewed and verified through the maintainer workflow.

Signed-off-by: Cole Speelman <crspeelman@gmail.com>
This commit is contained in:
2026-08-24 17:06:47 -04:00
parent 5563306368
commit a39e8f893c
12 changed files with 110 additions and 21 deletions
+27
View File
@@ -101,6 +101,33 @@ func TestJSONLRoundTripAndMode(t *testing.T) {
}
}
func TestJSONLAllowsExplicitCollectorGroupRead(t *testing.T) {
path := filepath.Join(t.TempDir(), "access.jsonl")
sink, err := OpenJSONLWithOptions(path, JSONLOptions{FileMode: 0o640})
if err != nil {
t.Fatal(err)
}
if err = sink.Close(); err != nil {
t.Fatal(err)
}
info, err := os.Stat(path)
if err != nil {
t.Fatal(err)
}
if runtime.GOOS != "windows" && info.Mode().Perm() != 0o640 {
t.Fatalf("mode=%o", info.Mode().Perm())
}
}
func TestJSONLRejectsOverlyPermissiveMode(t *testing.T) {
for _, mode := range []os.FileMode{0o400, 0o620, 0o644, 0o660, 0o666} {
path := filepath.Join(t.TempDir(), "access.jsonl")
if _, err := OpenJSONLWithOptions(path, JSONLOptions{FileMode: mode}); err == nil {
t.Fatalf("accepted mode %o", mode)
}
}
}
func TestPanicIsRecordedAndRepanicked(t *testing.T) {
sink := &memorySink{}
handler := Middleware(sink, Policy{})(http.HandlerFunc(func(http.ResponseWriter, *http.Request) { panic("expected") }))