pangolin/server/lib
Owen f44148c687
Leave local sites on remote exit nodes alone
Remote exit nodes get their Traefik config from /hybrid/traefik-config
with local sites included, and dial those targets inside the customer's
own network, where localhost targets are normal. The previous commit
applied the local-site restrictions to them too.

- createSite only checks flags.disable_local_sites, not
  traefik.site_types (SaaS has ["newt"] centrally but serves local sites
  through remote exit nodes).
- Target validation for local sites runs only when Pangolin's own Traefik
  serves the site (no exit node or a non-remote exit node), in
  createTarget, updateTarget and blueprints.
- The private Traefik config skips bad local targets only when the config
  is not for a remote exit node.
- Migration notes updated, including a query that excludes remote-node
  sites.

PAN-1885
2026-11-25 21:17:58 -05:00
..
alerts add targets and refactor endpoints 2026-08-04 10:15:49 -04:00
billing Fix client settings tier 2026-11-19 12:17:54 -05:00
blueprints Leave local sites on remote exit nodes alone 2026-11-25 21:17:58 -05:00
dns Resolve oss build issue 2026-09-14 18:05:30 -04:00
exitNodes fix(exit-nodes): add a request timeout to calls made to Gerbil 2026-11-03 00:24:53 -05:00
idp support special google session revalidation 2026-10-30 14:43:55 -04:00
openapi Add concrete OpenAPI data schemas for selected routes 2026-05-17 21:25:53 +00:00
traefik Keep tenants from publishing Pangolin's internal services via local sites 2026-11-25 19:34:53 -05:00
acmeCertSync.ts Move the acme cert sync 2026-08-17 12:00:12 -04:00
aiBudgetEnforcement.childTest.ts fix(ai-gateway): compare budget windows in seconds so period budgets enforce 2026-11-09 16:23:48 -05:00
aiBudgetEnforcement.test.ts test: remove temp workdirs created by budget and org-cleanup tests 2026-11-13 11:07:15 +05:30
aiBudgetEnforcement.ts fix(ai-gateway): compare budget windows in seconds so period budgets enforce 2026-11-09 16:23:48 -05:00
aiCapabilities.ts Rename to v1_models and use with openai as well 2026-08-20 16:01:07 -04:00
aiGatewayAuthError.ts format custom error codes according to capability 2026-08-13 09:26:58 -04:00
aiGatewayTrust.ts optionally stamp ip header for downstream use 2026-08-13 09:14:37 -04:00
aiGatewayUpstreamFetch.ts Guard tenant-supplied outbound URLs against SSRF 2026-11-25 19:38:03 -05:00
aiInferenceResource.ts rename routes from inference to ai-gateway 2026-08-17 15:38:43 -04:00
aiMessageNormalization.ts Rename to v1_models and use with openai as well 2026-08-20 16:01:07 -04:00
aiModelCatalog.ts Support prices for custom models 2026-10-29 10:56:51 -04:00
aiModelDiscovery.ts Add more data to the models catalog list 2026-08-20 15:17:48 -04:00
aiModelKeyMatch.ts improve model provider selection algorithm 2026-08-11 16:10:46 -04:00
aiModelPricing.ts Support prices for custom models 2026-10-29 10:56:51 -04:00
aiProviderDefaults.ts add virtual api key validation in verifySession 2026-08-12 10:38:26 -04:00
aiProviderSelection.ts improve model provider selection algorithm 2026-08-11 16:10:46 -04:00
aiUsageExtraction.test.ts fix(ai-gateway): read Bedrock invoke-with-response-stream usage from base64 chunks 2026-11-09 16:23:48 -05:00
aiUsageExtraction.ts fix(ai-gateway): read Bedrock invoke-with-response-stream usage from base64 chunks 2026-11-09 16:23:48 -05:00
asn.ts
backupFileName.test.ts fix(sqlite): tag per-migration database backups with version and prevent collisions 2026-09-18 21:31:00 +05:30
backupFileName.ts Make rekey not private and in integration api 2026-10-19 16:55:10 -04:00
bannedEmails.ts Let bannedEmails ban whole domains and plus-addressed variants 2026-11-25 19:50:06 -05:00
bannedEmailsMatch.test.ts Let bannedEmails ban whole domains and plus-addressed variants 2026-11-25 19:50:06 -05:00
bannedEmailsMatch.ts Let bannedEmails ban whole domains and plus-addressed variants 2026-11-25 19:50:06 -05:00
browserGatewayTrust.test.ts Only trust p-host when Traefik stamps the trust token 2026-11-23 10:44:54 -05:00
browserGatewayTrust.ts Only trust p-host when Traefik stamps the trust token 2026-11-23 10:44:54 -05:00
cache.ts switch to lru in memory cache and dont cache failed sessions 2026-09-14 16:48:07 -04:00
calculateUserClientsForOrgs.ts Add exit node selection to the clients 2026-08-04 10:15:47 -04:00
callerIsOrgAdmin.ts Stop custom roles granting actions and admin roles they do not hold 2026-11-23 10:47:02 -05:00
canUserAccessResource.ts
certificates.ts Move certificates 2026-08-17 12:00:12 -04:00
checkOrgAccessPolicy.ts
cleanupLogs.test.ts
cleanupLogs.ts SSH log 2026-11-02 14:56:55 -05:00
clientIdentities.ts Push client identities to newt 2026-10-12 17:03:27 -04:00
clientSettings.ts Support config on machine clients 2026-11-17 16:54:51 -05:00
clientVersionChecks.ts Add olm agentVersion to separate the library from the agent 2026-10-22 14:59:33 -04:00
colorsSchema.ts
config.ts Only trust p-host when Traefik stamps the trust token 2026-11-23 10:44:54 -05:00
consts.ts add migration 2026-11-20 14:36:47 -05:00
corsWithLoginPage.ts
createLocalCache.ts replace node cache in dns server 2026-09-14 17:41:41 -04:00
crypto.ts
dbRetry.ts Quiet up error logs 2026-09-14 16:48:07 -04:00
deleteOrg.childTest.ts fix(org): build the deleteOrg child test under the pg config 2026-10-13 23:11:28 +05:30
deleteOrg.test.ts test: remove temp workdirs created by budget and org-cleanup tests 2026-11-13 11:07:15 +05:30
deleteOrg.ts Fix deleting orgs 2026-10-15 11:47:33 -04:00
deleteResource.ts add targets and refactor endpoints 2026-08-04 10:15:49 -04:00
deleteSiteAssociatedResources.ts Adding gateway resources 2026-09-24 09:49:08 -04:00
deleteSiteResource.ts support delete resources associated with site 2026-06-24 17:45:44 -04:00
domainUtils.ts Protect wildcard 2026-11-02 17:31:13 -05:00
geoip.ts
getEnvOrYaml.ts Support _FILE env vars 2026-09-15 10:56:39 -04:00
hostMeta.ts
ip.test.ts ci: run existing unit tests 2026-10-20 16:30:57 +06:00
ip.ts Improve latency on register messages for newt 2026-10-22 16:11:18 -04:00
isLicencedOrSubscribed.ts use pricing matrix in existing usePaidStatus funcitons 2026-02-11 10:06:55 -08:00
isSubscribed.ts use pricing matrix in existing usePaidStatus funcitons 2026-02-11 10:06:55 -08:00
latestVersions.ts Get latest versions from the Fossorial API instead of GitHub 2026-11-09 16:23:49 -05:00
localSiteTargetPolicy.ts Leave local sites on remote exit nodes alone 2026-11-25 21:17:58 -05:00
localSiteTargets.test.ts Keep tenants from publishing Pangolin's internal services via local sites 2026-11-25 19:34:53 -05:00
localSiteTargets.ts Keep tenants from publishing Pangolin's internal services via local sites 2026-11-25 19:34:53 -05:00
lock.ts Improve latency on register messages for olm 2026-10-22 16:04:38 -04:00
logAccessAudit.ts Fix target pulling still being private 2026-08-17 13:40:09 -04:00
mtls.ts Show protected when using mtls 2026-10-20 15:02:07 -04:00
mtlsCertificate.ts Add fist pass of mtls support 2026-09-24 16:56:57 -04:00
mtlsModes.ts MTLS for all public resources 2026-10-20 11:51:43 -04:00
normalizePostAuthPath.ts Update year 2026-04-15 14:41:13 -07:00
offlineThresholds.ts Fix pg migration import 2026-10-20 16:31:52 -04:00
orgRebuildCounter.ts Add org rebuild rate limit 2026-06-29 14:59:05 -04:00
outboundAddress.test.ts Guard tenant-supplied outbound URLs against SSRF 2026-11-25 19:38:03 -05:00
outboundAddress.ts Guard tenant-supplied outbound URLs against SSRF 2026-11-25 19:38:03 -05:00
outboundUrlGuard.ts Guard tenant-supplied outbound URLs against SSRF 2026-11-25 19:38:03 -05:00
pathMatch.ts Adjust path processing 2026-10-12 15:10:48 -04:00
rateLimitStore.ts
readConfigFile.ts Add traefik.disable_http_config to turn off GET /traefik-config 2026-11-25 21:08:15 -05:00
rebuildClientAssociations.ts Improve latency on register messages for olm 2026-10-22 16:04:38 -04:00
rebuildQueue.ts Improve latency on register messages for olm 2026-10-22 16:04:38 -04:00
requestAuthState.test.ts Only trust cached org membership that belongs to the caller 2026-11-25 18:38:16 -05:00
requestAuthState.ts Only trust cached org membership that belongs to the caller 2026-11-25 18:38:16 -05:00
requestParams.ts Merge pull request #3085 from marcschaeferger-org/security-updates 2026-05-28 11:54:23 -07:00
reservedHosts.test.ts Reserve the dashboard host and other orgs' hosts for redirects and blueprints 2026-11-25 19:29:46 -05:00
reservedHosts.ts Reserve the dashboard host and other orgs' hosts for redirects and blueprints 2026-11-25 19:29:46 -05:00
resourceSessionReauth.ts Resource session page 2026-11-02 15:00:09 -05:00
response.ts
retry.ts Wire up to start 2026-09-14 16:48:10 -04:00
runMode.ts Clean up config for dns servers 2026-10-28 15:51:08 -04:00
s3.ts
sanitize.ts Update year 2026-04-15 14:41:13 -07:00
schemas.ts Sanitize values before including in treafik config 2026-10-27 15:10:08 -04:00
sendVirtualApiKeyEmail.ts batch identity key emails 2026-08-18 16:00:07 -04:00
serverIpService.ts
sshCA.ts Make sshCA GA 2026-02-25 16:04:47 -08:00
statusHistory.test.ts fix(status-history): order same-second events by id 2026-10-26 13:56:19 +05:30
statusHistory.ts fix(status-history): order same-second events by id 2026-10-26 13:56:19 +05:30
stoi.ts
telemetry.ts Add AI provider and usage metrics to telemetry data collection 2026-08-27 16:54:04 -04:00
textCompression.ts Handle compression of ai session logs 2026-08-26 11:28:14 -04:00
tokenCache.ts Update year 2026-04-15 14:41:13 -07:00
totp.ts
userOrg.ts add persistent session and users to access tokens 2026-07-17 13:39:09 -04:00
userOrgRoles.ts Handle the roles better in the verify session 2026-03-28 21:24:13 -07:00
validators.test.ts Add HTTP method matching to resource rules 2026-09-19 20:00:01 +02:00
validators.ts Add HTTP method matching to resource rules 2026-09-19 20:00:01 +02:00
virtualApiKey.ts Allow remote header overrides and fix display issues with log 2026-08-12 15:54:22 -04:00