Sidecar user cannot traverse /opt/servuo — latent permission trap #41
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Split out of #39 ("Related findings"), which asked for this to be its own issue.
Summary
On the live shard host,
/opt/servuoisdrwxr-x--- servuo servuo. ServUO runs asservuo; the uo-link sidecar (runicgateway-link) runs as a separaterunicgatewayuser.That user cannot traverse or read anything under
/opt/servuo—DataPath.cfg,/opt/servuo/uo-data,Cliloc.enu, etc.Why it is currently harmless (but a trap)
Today ServUO itself (as
servuo) reads the client/data files and serves everything thewebsite needs over the bridge — the sidecar never needs to touch
/opt/servuo(see #37,the cliloc import path). So the current feature set works despite the permission gap.
It is a latent trap because any future sidecar feature that assumes it can read a shard-side
file directly will fail on the live host with
Permission denied (os error 13)and only onLinux, exactly the shape of bug #37 and #39 were.
To close
/opt/servuodirectly, or is"everything goes over the bridge" the rule? (The bridge-design principle is that the
sidecar is a dumb forwarder, which argues for: it should not read shard files directly.)
runicgatewayto groupservuo(or a shared group) and make therelevant paths group-readable/traversable — owned by the installer, documented in
docs/installer/INSTALL.md.Permission denied (os error 13)lines in thesidecar log so we know which code path hit the gap and whether it is already dead.
The contract is decided and the org lead approved it: everything goes over the bridge, and the sidecar never reads shard files. It's recorded in RunicGateway/docs#420 (
link/PLAN.md§2 plus notes ininstaller/INSTALL.md). The sidecar only reads its own config, so no permission or installer change is needed, anddrwxr-x--- servuo servuois the intended state.Still open: explaining the
Permission denied (os error 13)lines in the sidecar log from before 2026-11-22. That needs the live host'srunicgateway-linkjournal, which wasn't reachable this session. The most likely source is the old #37 cliloc import path (now dead), but that is unconfirmed.