Commit Graph

1836 Commits

Author SHA1 Message Date
20a51472c9 [management] fix deadlock in networks concept (#3083) 2024-12-19 18:01:03 +01:00
2714433c8e Merge pull request #3066 from netbirdio/refactor/new-concept-netmap-gen
[management] Refactor network map generation
2024-12-19 18:10:23 +03:00
eecf7633c1 Merge branch 'feature/new-networks-concept' into refactor/new-concept-netmap-gen 2024-12-19 17:40:12 +03:00
b71eb4c87f Update domains on startup (#3079) 2024-12-19 15:31:34 +01:00
858bb8b136 Pass an account map of resource policies (#3078) 2024-12-19 14:13:01 +01:00
e302ce97ac [management] increase network serial on change of networks (#3077) 2024-12-18 20:37:45 +01:00
d5e4d0ca24 [management] fix group resource events (#3075) 2024-12-18 19:18:19 +01:00
2b12560802 set -p 1 2024-12-18 18:36:55 +01:00
a1c0e54e83 using policy for network resource 2024-12-18 18:24:59 +01:00
9faf6720c6 Add tests
Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
2024-12-18 19:17:52 +03:00
a9360dce9b Removed unused code and filter network resources HA routes
Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
2024-12-18 19:17:37 +03:00
7ba6634e31 fix tests
Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
2024-12-18 18:39:32 +03:00
400a138c76 wip: add missing routers 2024-12-18 16:31:01 +01:00
57eac8824f wip: generate routes for resource with no policy
Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
2024-12-18 17:37:38 +03:00
dfa453abe7 convert resource to route if resource has policy
Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
2024-12-18 14:54:25 +03:00
be341db10a Merge branch 'feature/new-networks-concept' into refactor/new-concept-netmap-gen 2024-12-18 14:48:20 +03:00
49c32e240d Fix dns forwarder update (#3068)
* Apply new domains correctly

* Update dns forwarder before routes

* Don't drag RegisterHandler call into lock

* Ignore empty domains
2024-12-18 12:10:25 +01:00
3467670f44 [management] Include related policies into networks (#3070) 2024-12-18 11:54:46 +01:00
e40eb91e54 [management] add activity events for networks (#3069) 2024-12-18 11:39:17 +01:00
b53935065b [management] properly add and remove resources from groups (#3067) 2024-12-18 10:44:08 +01:00
e8f7b7f23d Refactor router peer validation
Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
2024-12-17 18:11:24 +03:00
bcf32f215c [management] Generate network map for new network concept (#3044) 2024-12-17 14:07:20 +01:00
cbd333a3e0 [management] Revert to using address field in api (#3064) 2024-12-17 13:35:50 +01:00
21ba6ad266 Improve dns forwarder errors and improve domain anonymization (#3052)
* Improve dns forwarder errors and improve domain anonymization


* Use original domain for dns states

* Don't match subdomains for non-wildcard dns routes

* Fix iOS

* Add string representation for local resolver

* Return correct handler for dynamic

* Add dns server dns route + upstream handler test
2024-12-17 12:57:07 +01:00
228672aed2 [management] Parse resource addr before db write (#3061) 2024-12-17 12:21:28 +01:00
712341e73d [management] add update account peers hook (#3060) 2024-12-17 12:10:33 +01:00
12ae7ff54e [management] Remove resource from groups when resource deleted (#3059) 2024-12-17 11:32:53 +01:00
ffe0a11d34 [management] Add tests for networks managers (#3049) 2024-12-17 10:43:51 +01:00
4aa13c61dc Merge branch 'main' into feature/new-networks-concept 2024-12-16 21:27:11 +01:00
37ad370344 [client] Avoid using iota on mixed const block (#3057)
Used the values as resolved when the first iota value was the second const in the block.
2024-12-16 18:09:31 +01:00
703647da1e fix client unsupported h2 protocol when only 443 activated (#3009)
When I remove 80 http port in Caddyfile, netbird client cannot connect server:443. Logs show error below:
{"level":"debug","ts":1733809631.4012625,"logger":"http.stdlib","msg":"http: TLS handshake error from redacted:41580: tls: client requested unsupported application protocols ([h2])"}
I wonder here h2 protocol is absent.
2024-12-16 14:17:46 +01:00
9eff58ae62 Upgrade x/crypto package (#3055)
Mitigates the CVE-2024-45337
2024-12-16 10:30:41 +01:00
3844516aa7 [client] fix: reformat IPv6 ICE addresses when punching (#3050)
Should fix #2327 and #2606 by checking for IPv6 addresses from ICE
2024-12-16 09:58:54 +01:00
f591e47404 Handle DNF5 install script (#3026) 2024-12-16 09:41:36 +01:00
958650cd3d Merge branch 'main' into feature/new-networks-concept 2024-12-14 23:25:39 +01:00
287ae81195 [misc] split tests with management and rest (#3051)
optimize go cache for tests
2024-12-14 21:18:46 +01:00
a4a30744ad Fix race condition with systray ready (#2993) 2024-12-14 12:17:53 -08:00
2fa1433063 Use DNS route feature flag (#3048)
Co-authored-by: Viktor Liu <viktor@netbird.io>
2024-12-14 16:46:49 +01:00
c91d7808bf Add dns interceptor based domain route functionality (#3032) 2024-12-13 14:17:10 +01:00
a145f0b811 [management] Add settings for routing peer dns resolution (#3040) 2024-12-13 14:08:19 +01:00
e436c39a86 [management] Add routing peer counter (#3036) 2024-12-13 11:57:07 +01:00
86352f00fc Rename GUI menu options and route selection with new network concept (#3035)
* rename route with network for new concept

* rename file
2024-12-12 13:51:32 +01:00
6bd9352da8 [management] Allow resources in groups (#3030) 2024-12-12 13:22:50 +01:00
4db4494d0d Rename CLI commands and status output with the new network concept. (#3029)
Rename CLI commands and status output with the new network concept.

Updated the daemon gRPC API and renamed files.
2024-12-12 12:53:52 +01:00
d1d6875953 [management] Add managers to link networks API with store (#3022) 2024-12-12 11:51:44 +01:00
7944b8e843 Merge pull request #3025 from netbirdio/feature/add-policy-network-resources
[management] Extends policy with source and destination resources
2024-12-11 17:26:36 +01:00
dcba6a6b7e fix: client/Dockerfile to reduce vulnerabilities (#3019)
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-ALPINE320-OPENSSL-8235201
- https://snyk.io/vuln/SNYK-ALPINE320-OPENSSL-8235201

Co-authored-by: snyk-bot <snyk-bot@snyk.io>
2024-12-11 16:46:51 +01:00
9322a92ee9 Refactor the resource and add api helper functions
Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
2024-12-11 16:16:23 +01:00
e5a6f9e965 Fix tests
Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
2024-12-11 16:15:42 +01:00
bde334ecfc Refactor
Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
2024-12-11 14:37:36 +01:00