Scope jobs and snapshots to a browser session

An HttpOnly, SameSite=Lax session cookie is issued when a job is
created. Job and snapshot routes return 404 to any other session, so
indexed source is only readable by the browser that loaded it.
This commit is contained in:
Andy Dixon
2026-02-15 10:53:01 +00:00
parent d8d4a77ba7
commit 26800b9b66
3 changed files with 71 additions and 8 deletions
+1
View File
@@ -46,6 +46,7 @@ type Edge struct {
type Snapshot struct {
ID, Name, Source string
Owner string // session that created the snapshot
Files []FileRecord
Edges []Edge
TotalLines int