pangolin/server/private/lib
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
..
alerts Guard tenant-supplied outbound URLs against SSRF 2026-11-25 19:38:03 -05:00
billing Fix expiring line up with subscription 2026-11-16 15:54:51 -05:00
blueprints Add fist pass of mtls support 2026-09-24 16:56:57 -04:00
certificates Manage cert enabled with leader election 2026-10-14 15:30:58 -04:00
dns Update comment 2026-11-13 10:27:52 -05:00
exitNodes Standalone dns server 2026-10-28 15:41:31 -04:00
logStreaming Guard tenant-supplied outbound URLs against SSRF 2026-11-25 19:38:03 -05:00
traefik Stop local sites attaching to another org's remote exit node 2026-11-25 21:20:03 -05:00
cache.ts Quiet up logs 2026-09-14 16:48:10 -04:00
checkOrgAccessPolicy.ts improve org policy error message responses 2026-06-24 16:32:58 -04:00
clientSettings.ts Support config on machine clients 2026-11-17 16:54:51 -05:00
config.ts add custom css 2026-11-06 16:48:14 -05:00
isLicencedOrSubscribed.ts Update year 2026-04-15 14:41:13 -07:00
isSubscribed.ts Update year 2026-04-15 14:41:13 -07:00
leaderElection.ts Manage cert enabled with leader election 2026-10-14 15:30:58 -04:00
lock.ts Improve latency on register messages for olm 2026-10-22 16:04:38 -04:00
logAccessAudit.ts Resource session page 2026-11-02 15:00:09 -05:00
logConnectionAudit.ts Add client endpoint to network log 2026-05-08 17:04:58 -07:00
logSshSessionAudit.ts Fix the upsert 2026-11-04 14:40:57 -05:00
orgRebuildCounter.ts Update rate limit to 10 2026-07-03 11:52:59 -04:00
rateLimit.test.ts Update year 2026-04-15 14:41:13 -07:00
rateLimit.ts Use regional cache for rate limiting 2026-06-29 18:33:03 -04:00
rateLimitStore.ts Update year 2026-04-15 14:41:13 -07:00
readConfigFile.ts Merge branch 'dev' into custom-login-css 2026-11-20 14:25:16 -05:00
rebuildQueue.ts Improve latency on register messages for olm 2026-10-22 16:04:38 -04:00
redis.ts Increase maxRetriesPerRequest for Redis connections to improve resilience 2026-09-02 11:57:50 -04:00
redisStore.ts Update year 2026-04-15 14:41:13 -07:00
resolveClientsBySourceAddr.ts SSH log 2026-11-02 14:56:55 -05:00
resourceSessionReauth.ts Resource session page 2026-11-02 15:00:09 -05:00
stripe.ts Update year 2026-04-15 14:41:13 -07:00
tokenCache.ts Update year 2026-04-15 14:41:13 -07:00