Commit Graph

2376 Commits

Author SHA1 Message Date
Owen 90afe5a7ac Log errors 2026-03-11 15:42:40 -07:00
Owen b24de85157 Handle gerbil rejecting 0
Closes #2605
2026-03-11 15:06:26 -07:00
Owen eda43dffe1 Fix not pulling wildcard cert updates 2026-03-11 15:06:26 -07:00
Owen a3d4553d14 Merge branch 'main' into dev 2026-03-11 14:53:55 -07:00
Owen 1cc5f59f66 Implement email and ip banning 2026-03-11 11:42:31 -07:00
Owen 4e2d88efdd Add some logging to debug 2026-03-11 11:42:28 -07:00
Owen 4975cabb2c Use native drizzle count 2026-03-11 11:42:28 -07:00
Owen 225591094f Clean up 2026-03-11 11:42:28 -07:00
Owen 82f88f2cd3 Reorder delete 2026-03-11 11:42:28 -07:00
Owen cc841d5640 Add some logging to debug 2026-03-10 14:24:57 -07:00
Owen dec358c4cd Use native drizzle count 2026-03-10 10:03:49 -07:00
Shreyas Papinwar 5455d1c118 fix: add locale to myDevice user query to fix type error 2026-03-10 12:33:05 +05:30
Shreyas Papinwar ae39084a75 fix: persist user locale preference to database (#1547) 2026-03-10 12:21:06 +05:30
Owen e98f873f81 Clean up 2026-03-09 21:16:37 -07:00
Owen e9a2a7e752 Reorder delete 2026-03-09 20:46:27 -07:00
Owen 06015d5191 Handle gerbil rejecting 0
Closes #2605
2026-03-09 17:35:25 -07:00
Owen 7d0b3ec6b5 Fix not pulling wildcard cert updates 2026-03-09 17:34:48 -07:00
Owen cf5fb8dc33 Working on jit 2026-03-09 16:36:13 -07:00
Owen Schwartz 9a0a255445 Merge pull request #2524 from shreyaspapi/fix/2294-path-based-routing
fix: path-based routing broken due to key collisions in sanitize()
2026-03-07 21:18:59 -08:00
Laurence be609b5000 Fix missing hcStatus field in health check config on reconnect
The buildTargetConfigurationForNewtClient function was not including the
  hcStatus field when building health check targets for the newt/wg/connect
  message. This caused custom expected response codes (e.g., 409) to revert
  to the default 2xx range check after Pangolin server restart.

  Added hcStatus to both the database select query and the returned health
  check target object, matching the behavior in targets.ts addTargets.
2026-03-07 06:28:10 +00:00
Owen 0503c6e66e Handle JIT for ssh 2026-03-06 15:49:17 -08:00
Owen 9405b0b70a Force jit above site limit 2026-03-06 14:09:57 -08:00
Fizza-Mukhtar 4cfcc64481 fix: use config instead of process.env for dashboard URL check 2026-03-05 01:07:30 -08:00
Fizza-Mukhtar 1a2069a6d9 fix: prevent resource creation with dashboard domain to avoid redirect loop 2026-03-05 00:39:03 -08:00
Owen 2a5c9465e9 Add chainId field passthrough 2026-03-04 22:17:58 -08:00
Owen f36b66e397 Merge branch 'dev' into jit 2026-03-04 17:58:50 -08:00
Owen 1bfff630bf Jit working for sites 2026-03-04 17:46:58 -08:00
miloschwartz ebcef28b05 remove resend from config 2026-03-04 17:45:48 -08:00
miloschwartz e87e12898c remove resend 2026-03-04 17:45:22 -08:00
miloschwartz 0ab6ff9148 add consent boolean to schema 2026-03-04 15:50:42 -08:00
Owen c73a39f797 Allow JIT based on site or resource 2026-03-04 15:44:27 -08:00
Owen 1362b72cd3 Restrict what can be a header 2026-03-03 21:10:52 -08:00
Owen db042e520e Adjust language 2026-03-03 20:34:56 -08:00
Owen b01fcc70fe Fix ts and add note about ipv4 2026-03-03 14:45:18 -08:00
miloschwartz ed95f10fcc openapi and swagger ui improvements and cleanup 2026-03-02 21:59:41 -08:00
Owen 35fed74e49 Merge branch 'dev' into msg-opt 2026-03-02 18:52:35 -08:00
Owen 64bae5b142 Merge branch 'main' into dev 2026-03-02 18:52:20 -08:00
Owen 6cf1b9b010 Support improved targets msg v2 2026-03-02 18:51:48 -08:00
Owen dae169540b Fix defaults for orgs 2026-03-02 16:49:17 -08:00
Owen 19f9dda490 Add comment about not needing exit node 2026-03-02 16:28:01 -08:00
Owen Schwartz 768eebe2cd Merge pull request #2432 from ChanningHe/feat-integration-api-domain-crud
feat(integration): add domain CRUD endpoints to integration API
2026-03-01 11:12:05 -08:00
Fizza-Mukhtar e63a6e9b77 fix: treat local and wireguard sites as online for failover 2026-03-01 07:56:47 -08:00
Shreyas Papinwar 75a909784a fix: simplify path encoding per review — inline utils, use single key scheme
Address PR review comments:
- Remove pathUtils.ts and move sanitize/encodePath directly into utils.ts
- Simplify dual-key approach to single key using encodePath for map keys
- Remove backward-compat logic (not needed per reviewer)
- Update tests to match simplified approach
2026-03-01 15:48:26 +05:30
Shreyas 244f497a9c test: add comprehensive backward compatibility tests for path routing fix 2026-03-01 15:48:26 +05:30
Shreyas e58f0c9f07 fix: preserve backward-compatible router names while fixing path collisions
Use encodePath only for internal map key grouping (collision-free) and
sanitize for Traefik-facing router/service names (unchanged for existing
users). Extract pure functions into pathUtils.ts so tests can run without
DB dependencies.
2026-03-01 15:48:26 +05:30
Shreyas 5f18c06e03 fix: use collision-free path encoding for Traefik router key generation 2026-03-01 15:48:26 +05:30
Fizza-Mukhtar f36cf06e26 fix: fallback to local targets when newt targets are unhealthy 2026-03-01 01:43:15 -08:00
Owen 66c377a5c9 Merge branch 'main' into dev 2026-02-28 12:14:41 -08:00
Laurence b0a34fa21b fix(openapi): Add openapi call after catch
fix: #2561
without making an explicit call to openapi a runtime error happens because it cannot infer the type, the call to openapi is the same across the codebase
2026-02-28 11:27:19 +00:00
Jacky Fong 5c4de03588 add reset bandwidth api for site
Change endpoint

update to reset all site in the organization

move the logic to organization

move the permission to organization
2026-02-28 15:47:03 +08:00