Skip to content

Local dev /storage/ path bypasses SecurityHeaders and CSRF #148

@btc

Description

@btc

In `cmd/drill/main.go`, when `cfg.Storage.Backend == "local"`, a new `storageMux` wraps the handler but serves `/storage/` files directly via `http.FileServer` without passing through SecurityHeaders, CSRF, or OTel.

Local-dev only. Production uses GCS signed URLs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions