pangolin/install
Owen 8419370e5b
Keep tenants from publishing Pangolin's internal services via local sites
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
2026-11-25 19:34:53 -05:00
..
config Keep tenants from publishing Pangolin's internal services via local sites 2026-11-25 19:34:53 -05:00
config.go refactor(install): improve resource cleanup and remove unused funcs 2026-03-09 11:17:36 +03:00
containers.go fix(install): add error handling and minor code cleanups 2026-02-17 10:45:06 +03:00
crowdsec.go Pass installdir as a parameter 2026-04-20 21:36:42 +05:30
flags.go Support a non-interactive installer mode 2026-10-29 12:24:26 -04:00
get-installer.sh Dont ping remote nodes; handle certs better 2025-10-15 10:39:45 -07:00
go.mod Bump golang.org/x/term 2026-11-18 01:33:20 +00:00
go.sum Bump golang.org/x/term 2026-11-18 01:33:20 +00:00
input.go Support a non-interactive installer mode 2026-10-29 12:24:26 -04:00
input.txt make IPv6 optional during install 2025-08-04 15:45:33 +00:00
main.go Keep tenants from publishing Pangolin's internal services via local sites 2026-11-25 19:34:53 -05:00
Makefile ehance(installer): use ldflags to inject versions 2026-02-18 09:43:41 +00:00
theme.go enhance(installer): use huh package to handle input 2026-02-18 11:05:48 +00:00