pangolin/server/private
Owen c8d6fd2430
Stop local sites attaching to another org's remote exit node
createSite stored any exitNodeId for a local site without checking that
the org may use that exit node, and the hybrid Traefik config served every
site on the node regardless of org. An org admin could attach a local site
to another customer's remote exit node (ids are sequential) and have that
node proxy a hostname of theirs into the customer's network.

- createSite runs verifyExitNodeOrgAccess for local sites with an exit
  node, same as tunnelled sites.
- The private Traefik config for a remote exit node only includes sites of
  orgs linked to that node. Nodes with no org links keep the old
  behaviour, so the 9 existing local sites on unlinked nodes keep routing.

Found while reviewing the PAN-1885 change; no evidence on prod of a local
site on a node linked to a different org.
2026-11-25 21:20:03 -05:00
..
auth/sessions WS gateway 2026-11-17 14:47:44 -05:00
lib Stop local sites attaching to another org's remote exit node 2026-11-25 21:20:03 -05:00
license License machines 2026-10-20 15:29:37 -04:00
middlewares Only trust cached org membership that belongs to the caller 2026-11-25 18:38:16 -05:00
routers Scope device approval decisions to the org in the URL 2026-11-25 19:27:43 -05:00
wsGateway WS gateway 2026-11-17 14:47:44 -05:00
certificates.ts Wire up to start 2026-09-14 16:48:10 -04:00
cleanup.ts WS gateway 2026-11-17 14:47:44 -05:00
dns.ts Standalone dns server 2026-10-28 15:41:31 -04:00
dnsRunMode.ts Clean up config for dns servers 2026-10-28 15:51:08 -04:00
dnsServer.ts Clean up config for dns servers 2026-10-28 15:51:08 -04:00
startSchedulers.ts Fix target pulling still being private 2026-08-17 13:40:09 -04:00
wsGatewayServer.ts WS gateway 2026-11-17 14:47:44 -05:00