pangolin/server
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 Merge branch '1-27' into dev 2026-11-17 17:47:01 -05:00
db Merge branch 'dev' into custom-login-css 2026-11-20 14:25:16 -05:00
emails Handle support messages for self hosted licenses 2026-11-13 14:43:14 -05:00
lib Leave local sites on remote exit nodes alone 2026-11-25 21:17:58 -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
private Stop local sites attaching to another org's remote exit node 2026-11-25 21:20:03 -05:00
routers Stop local sites attaching to another org's remote exit node 2026-11-25 21:20:03 -05:00
setup Leave local sites on remote exit nodes alone 2026-11-25 21:17:58 -05:00
types first pass 2026-02-24 17:58:11 -08:00
aiGatewayServer.ts Only trust cached org membership that belongs to the caller 2026-11-25 18:38:16 -05:00
apiServer.ts Only trust cached org membership that belongs to the caller 2026-11-25 18:38:16 -05:00
certificates.ts Wire up to start 2026-09-14 16:48:10 -04:00
cleanup.ts log chat sessions to database 2026-08-11 12:19:28 -04:00
dns.ts Add dns server 2026-09-14 16:48:09 -04:00
extendZod.ts openapi test 2025-04-06 16:06:50 -04:00
index.ts add redirect routes to integration api 2026-10-02 17:11:06 -04:00
integrationApiServer.ts Only trust cached org membership that belongs to the caller 2026-11-25 18:38:16 -05:00
internalServer.ts Only trust cached org membership that belongs to the caller 2026-11-25 18:38:16 -05:00
logger.ts Patch logger for ISO8601 TZ offsets and fix Docker build 2025-10-03 09:33:43 -04:00
nextServer.ts Fix #4002 2026-10-26 10:13:50 -04:00
openApi.ts Add resource session tracking page 2026-11-02 14:59:01 -05:00
startSchedulers.ts Fix circular import issue 2026-08-17 12:00:13 -04:00