mirror of
https://github.com/fosrl/pangolin.git
synced 2026-11-29 02:52:57 +00:00
Traefik dials a local site's targets from inside Pangolin's own network, so an org admin could create a local site with a target such as pangolin:3001 and publish the internal API (including the unauthenticated /traefik-config, which lists every org's header values and gateway trust tokens) on their own hostname. disable_local_sites was only read by the dashboard; the server-side check in createSite was commented out. - createSite refuses local sites when flags.disable_local_sites is set or "local" is not in traefik.site_types, and basic WireGuard sites when flags.disable_basic_wireguard_sites is set. - New localSiteTargetError rejects loopback, unspecified, link-local (incl. 169.254.169.254), broadcast, localhost, the internal hostname, gerbil, traefik and badger. createTarget, updateTarget and blueprint targets refuse them on local sites, and both Traefik config generators skip existing ones. - Optional traefik.config_token: when set, GET /traefik-config requires "Authorization: Bearer <token>" (constant-time compare). Unset keeps the old behaviour and logs a warning once. The installer now generates the token and writes it to config.yml and Traefik's HTTP provider headers. - Migration notes for 1.28.0 cover the config change and a query for existing targets that will stop routing. PAN-1885 / GHSA-jrw8, rx89 part of PAN-1799 |
||
|---|---|---|
| .. | ||
| aiGatewayMiddlewares.ts | ||
| browserGateway.ts | ||
| certResolver.ts | ||
| getTraefikConfig.ts | ||
| headersMiddleware.ts | ||
| index.ts | ||
| loadBalancer.test.ts | ||
| loadBalancer.ts | ||
| middleware.test.ts | ||
| middleware.ts | ||
| mtls.ts | ||
| pathEncoding.test.ts | ||
| redirect.ts | ||
| rule.test.ts | ||
| rule.ts | ||
| siteResourceAlias.ts | ||
| traefikConfig.test.ts | ||
| TraefikConfigManager.ts | ||
| types.ts | ||
| utils.ts | ||