Two things tie valley-web to the receiver's user and to write access:
- It opens the store with `OpenStore`, which creates directories, takes the lock read-write, and runs recovery and the sweep (`webui/export/store.go`). The internet-facing reader therefore needs write access to the state directory.
- `Reachable` names the repository with `git -C` (`webui/server/bundle.go`), while every other git call uses `--git-dir`, as the comment there says they all do. With `-C`, git's ownership check applies, and with the server's isolated git config `safe.directory` cannot be set. If valley-web runs as a different user from the receiver, every source page should answer 500 (unverified).
A fix: a read-only open for the server that skips recovery and the sweep, and `--git-dir` in `Reachable`.
Fixed when valley-web serves every page from a read-only state directory owned by another user, and a test runs it that way.
Source: 2026-10-26, review of the web UI as landed on main at `ac8c5f17`.
Comments
contributor2026-10-26 19:36 UTC
Change valley:the-valley/kmvzpxsoqvsnzrplxpxkyrskyuqrnymo landed: v6 as f5c9a830d01e49c095e007aa964533f507db60ee.