security: isolate artifact documents and default servers to execution-only

This commit is contained in:
2026-10-20 15:36:14 +01:00
parent db88cebd0b
commit f06281db08
10 changed files with 193 additions and 4 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ func setup(t *testing.T) (func(...string) (string, error), *pipeline.Store, stri
if err != nil {
t.Fatal(err)
}
handler := server.Handler(ctx, store)
handler := server.HandlerWithOptions(ctx, server.Options{AllowAuthoring: true}, store)
http := httptest.NewServer(handler)
t.Cleanup(func() { cancel(); http.Close(); server.WaitRuns(handler); store.Close() })
url := "ws" + strings.TrimPrefix(http.URL, "http") + "/connect"