Commit Graph

2854 Commits

Author SHA1 Message Date
pascal
6ebcc7e135 simplify policy inject logic 2026-02-13 13:08:31 +01:00
Viktor Liu
04b9de0775 Refactor proxy server to reduce complexity in ListenAndServe and handleMappingStream 2026-02-13 13:06:56 +01:00
Viktor Liu
3971d2f4fd Consolidate duplicate timeout cases in classifyProxyError 2026-02-13 13:02:40 +01:00
Viktor Liu
a718d6ede2 Extract printHealthClients from debug printHealth to reduce complexity 2026-02-13 12:58:46 +01:00
Viktor Liu
f296956c6f Refactor roundtrip AddPeer to reduce cognitive complexity and line count 2026-02-13 12:58:46 +01:00
Viktor Liu
cc5800f46d Add comments to empty function bodies in acme locker 2026-02-13 12:58:46 +01:00
Viktor Liu
7e062d6c68 Fix duplicate handler allocation in health.NewServer and add tests 2026-02-13 12:58:46 +01:00
Viktor Liu
95ba4dcee4 Refactor proxy/auth Protect method to reduce cognitive complexity 2026-02-13 12:58:46 +01:00
pascal
0331d68a36 remove unused network map code 2026-02-13 12:55:51 +01:00
pascal
fef41f0fe4 refactor AddPeer 2026-02-13 12:50:48 +01:00
Viktor Liu
d690e981b6 Add combined license + license checks + excldue from client tests 2026-02-13 12:34:52 +01:00
Bethuel Mmbaga
63ad313ff6 [management] Enforce access control on accessible peers (#5301) 2026-02-13 12:10:50 +01:00
pascal
0a884d839e refactor service manager code and add tests 2026-02-13 12:08:01 +01:00
pascal
c4bfbbaa52 refactor access log filter 2026-02-13 11:43:44 +01:00
Viktor Liu
e4e9998e40 Ignore print errs 2026-02-13 11:28:00 +01:00
Viktor Liu
4efea823bf Add token cmd to combined and consolidate logic 2026-02-13 11:23:57 +01:00
mlsmaycon
3508144575 Added s.GRPCServer() call before the afterInit 2026-02-13 03:54:33 +01:00
mlsmaycon
0254a380e7 fix load mgmt config 2026-02-13 03:45:05 +01:00
Diego Noguês
f103fc45cb chore: switch dashboard tag to the temp one 2026-02-13 02:24:18 +01:00
Diego Noguês
26d3dd7605 feat: adding combined dockerfile for testing phase 2026-02-13 01:39:58 +01:00
Diego Noguês
c009055693 feat: adds netbird's proxy component to getting-started 2026-02-13 00:42:59 +01:00
Diego Noguês
14181c909c fix: remove duplicate import 2026-02-13 00:02:50 +01:00
mlsmaycon
a05dc3823d Merge branch 'main' into prototype/reverse-proxy
# Conflicts:
#	infrastructure_files/getting-started.sh
2026-02-12 19:27:12 +01:00
Misha Bragin
64b849c801 [self-hosted] add netbird server (#5232)
* Unified NetBird combined server (Management, Signal, Relay, STUN) as a single executable with richer YAML configuration, validation, and defaults.
  * Official Dockerfile/image for single-container deployment.
  * Optional in-process profiling endpoint for diagnostics.
  * Multiplexing to route HTTP/gRPC/WebSocket traffic via one port; runtime hooks to inject custom handlers.
* **Chores**
  * Updated deployment scripts, compose files, and reverse-proxy templates to target the combined server; added example configs and getting-started updates.
2026-02-12 19:24:43 +01:00
Diego Noguês
7d19bdf085 feat: adding traefik + nb's reverse proxy (#5303)
* feat: adding traefik and proxy component to getting-started

* feat: adding traefik and proxy component to getting-started

* feat: adding IPAM settings to docker compose and setting static ip to traefik

* fix: remove change to peers group all

* feat: switch to labels for traefik instead of static conf files

* feat: adding traefik and proxy component to getting-started

* feat: adding IPAM settings to docker compose and setting static ip to traefik

* fix: remove change to peers group all

* feat: switch to labels for traefik instead of static conf files

* chore: remove unnecessary comment

* chore: build

* chore: switching env var for NB_PROXY_DOMAIN
2026-02-12 19:12:20 +01:00
Diego Noguês
a1b048f2ad feat: adding traefik + nb reverse proxy 2026-02-12 18:43:35 +01:00
mlsmaycon
0bd227196e fix integration tests 2026-02-12 18:22:41 +01:00
Viktor Liu
eea7687ddf Fix lint and failing tests 2026-02-12 18:19:13 +01:00
mlsmaycon
57d3ee5aac optimize the DeriveClusterFromDomain function
1. validate domain only for proxy urls
2. use registered target cluster for custom domain extraction
2026-02-12 17:10:32 +01:00
pascal
cfdfdecc14 return error if unable to derive cluster on service creation 2026-02-12 16:57:16 +01:00
mlsmaycon
ac995bae6d rename url flag to domain and update validation 2026-02-12 16:28:29 +01:00
Alisdair MacLeod
41a5509ce0 fix nil pointer error in roundtripper 2026-02-12 15:19:19 +00:00
pascal
db5e26db94 rename domain type 2026-02-12 16:15:02 +01:00
Viktor Liu
fe975fb834 Fix missing lang attribute 2026-02-12 23:03:50 +08:00
Viktor Liu
e368d2995b Fix test 2026-02-12 22:57:28 +08:00
Viktor Liu
a3241d8376 Fix swallowed response codes 2026-02-12 22:54:17 +08:00
Alisdair MacLeod
6dfc5772ba fix nil pointer error in roundtripper 2026-02-12 14:44:07 +00:00
Viktor Liu
f70925178c Handle TCP port reuse for TIME-WAIT connections 2026-02-12 22:06:29 +08:00
Viktor Liu
9554934b92 Validate trusted proxies in OAuth callback getClientIP 2026-02-12 22:06:29 +08:00
Viktor Liu
7fdb824a37 Remove write permissions from /var/lib/netbird in proxy Dockerfile 2026-02-12 22:06:29 +08:00
Viktor Liu
412407adc0 Add .dockerignore to exclude sensitive files from build context 2026-02-12 22:06:29 +08:00
Viktor Liu
e0874d7de7 Add noopener to window.open in ErrorPage 2026-02-12 22:06:29 +08:00
pascal
8df1536cbb Merge branch 'main' into prototype/reverse-proxy 2026-02-12 15:05:14 +01:00
pascal
fcbacc62ec clear userID from access logs if not oidc 2026-02-12 14:50:35 +01:00
pascal
ee2ae45653 add permissions validation to domain manager 2026-02-12 14:31:23 +01:00
pascal
6f2f0f9ae4 exclude proxy peers on peers api 2026-02-12 13:49:05 +01:00
Alisdair MacLeod
c37ebc6fb3 add more metrics, improve metrics, reduce metrics impact on other packages 2026-02-12 12:36:54 +00:00
Viktor Liu
23abb5743c Treated tombstoned conns as new 2026-02-12 20:11:12 +08:00
Viktor Liu
b87aa0bc15 Address linter issues 2026-02-12 18:41:20 +08:00
Maycon Santos
69d4b5d821 [misc] Update sign pipeline version (#5296) 2026-02-12 11:31:49 +01:00