security: the identity header header-trusting services sign in from can be forged on the private path and from mesh peers #1941
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#1941
Loading…
Add table
Add a link
Reference in a new issue
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?
Why human
These are sign-in trust changes: they decide who may present an identity to a service. By standing rule they go to Ben before landing.
What was found (2026-09-27, while building #1548)
The header-trusting services are Grist, LimeSurvey and now Omeka. They sign a person in from
X-Idss-Identityand trust it outright. Two paths reach them without the front door vouching for that header:renderPrivateRouteproxies every service ungated (ADR 0150) and callsrenderProxy(..., stripIdentity=false). So on a private-path community, a LAN neighbour can sendX-Idss-Identity: operatortosurveys.<apex>and land as LimeSurvey superadmin, or do the same to Grist. The Omeka module stays off on the private path for exactly this reason (ADR 0285 §4).wt0(for example 8086 Omeka, and LimeSurvey's and Grist's). Any community device on the mesh can hit it with a forged header, bypassing Caddy and the gate.Proposed default
X-Idss-IdentityinrenderPrivateRoute, like every exempt path on the public path. Header services then have no sign-in on the private path until it gains a gate, which is honest: today they have a forgeable one.wt0interface. Where the service shares the gateway host, loopback or the podman gateway is the only source.Acceptance
A third path, and the worst: the container ports answer on the PUBLIC internet (found 2026-09-27)
Checked from a laptop on home wifi (not on the mesh) against whakatohea-demo's public IP:
A request to
:8086/adminwith a made-upX-Idss-Identitywas signed in and an account was created for it (probe account deleted afterwards).Cause: the renders publish container ports as
ports = [ "8086:8080" ], which podman binds on0.0.0.0and forwards with its own NAT rules. Those bypass the NixOS firewall, sonetworking.firewall.interfaces."wt0".allowedTCPPortsdoes not confine them. Native services (LimeSurvey) are confined as intended.Reach: any gateway with a public IP that co-hosts a container port. Every podman-run catalogue service is reachable without the front door or the gate; for the header-trusting ones (Grist, Omeka) that means anyone can sign in as anyone, including a steward. It also exposes Omeka's site publicly, against the #1722 ruling.
Proposed fix, added to this ticket's scope: publish each container port on a named address only (
127.0.0.1:<port>when the front door is on the same host, the node's mesh address otherwise), with a render test per container port that no publish is address-less.Approved by Ben and landed (2026-09-27) — main
5e8141a2, GOTCHAS #355, live on whakatohea-demoClosed:
X-Idss-Identity.TestNoContainerPortIsPublishedWithoutAnAddressrenders every routable port and refuses an address-less publish. The any-sync yamux ports 3001/3003/3005 are allow-listed as public by design.Proof on the demo, from a laptop off the mesh:
:8083,:8086and:8087on the public IP no longer answer, the gateway's own mesh address doesn't either, and no firewall port is open for them. The front door still serves all four services, and a forged header sent to it is answered with the sign-in redirect. No unknown accounts in Omeka or Grist.Still open — this ticket stays open for it: on a member device, another mesh peer can reach the serve port directly (container: published on the mesh address; native: open on
wt0). Closing it needs a source rule ahead of podman's NAT that admits the gateway's mesh address only. No community runs a header-trusting service on a member device today; it needs a live member-device placement to prove.Side effect to know: on the private path Grist now receives no identity (there is no gate to mint one), so it signs nobody in there. Before, it signed in whoever the caller claimed to be.
Closed 2026-10-21 (Ben's stale sweep): approved by Ben and landed 2026-09-27 (main
5e8141a2, GOTCHAS #355), proven live on whakatohea-demo per the last comment.