Sidecar user cannot traverse /opt/servuo — latent permission trap #41

Closed
opened 2026-11-25 17:05:52 -06:00 by wtclaude · 1 comment
Member

Split out of #39 ("Related findings"), which asked for this to be its own issue.

Summary

On the live shard host, /opt/servuo is drwxr-x--- servuo servuo. ServUO runs as
servuo; the uo-link sidecar (runicgateway-link) runs as a separate runicgateway user.
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 the
website 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 on
Linux, exactly the shape of bug #37 and #39 were.

To close

  • Decide the intended contract: should the sidecar ever read /opt/servuo directly, 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.)
  • If it should: add runicgateway to group servuo (or a shared group) and make the
    relevant paths group-readable/traversable — owned by the installer, documented in
    docs/installer/INSTALL.md.
  • Either way: explain the pre-2026-11-22 Permission denied (os error 13) lines in the
    sidecar log so we know which code path hit the gap and whether it is already dead.
Split out of #39 ("Related findings"), which asked for this to be its own issue. ## Summary On the live shard host, `/opt/servuo` is `drwxr-x--- servuo servuo`. ServUO runs as `servuo`; the uo-link sidecar (`runicgateway-link`) runs as a separate `runicgateway` user. 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 the website 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 on Linux, exactly the shape of bug #37 and #39 were. ## To close - Decide the intended contract: should the sidecar ever read `/opt/servuo` directly, 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.) - If it should: add `runicgateway` to group `servuo` (or a shared group) and make the relevant paths group-readable/traversable — owned by the installer, documented in `docs/installer/INSTALL.md`. - Either way: explain the pre-2026-11-22 `Permission denied (os error 13)` lines in the sidecar log so we know which code path hit the gap and whether it is already dead.
Author
Member

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 in installer/INSTALL.md). The sidecar only reads its own config, so no permission or installer change is needed, and drwxr-x--- servuo servuo is 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's runicgateway-link journal, which wasn't reachable this session. The most likely source is the old #37 cliloc import path (now dead), but that is unconfirmed.

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 in `installer/INSTALL.md`). The sidecar only reads its own config, so no permission or installer change is needed, and `drwxr-x--- servuo servuo` is 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's `runicgateway-link` journal, which wasn't reachable this session. The most likely source is the old #37 cliloc import path (now dead), but that is unconfirmed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: RunicGateway/servuo-plugins#41
No description provided.