Commit Graph
80 Commits
Author SHA1 Message Date
crn4 56ebd004d9 build cache only once 2025-10-29 13:25:03 +01:00
crn4 bbb0910a2c minor changes 2025-10-28 17:32:11 +01:00
crn4 ec035e5709 minor changes after merge main 2025-10-28 17:30:23 +01:00
Bethuel Mmbaga 7f08983207 Include expired and routing peers in DNS record filtering (#4708) 2025-10-27 22:16:17 +03:00
crn4 2882638c7f workers for updateaccountpeers 2025-10-15 12:38:47 +02:00
Pascal Fischer 9c7c15ba8b fix expandPortsAndRanges 2025-10-09 22:22:01 +02:00
Pascal Fischer b0dcc9ff7b fix expandPortsAndRanges 2025-10-09 22:17:13 +02:00
Pascal Fischer 11e2573747 fix expandPortsAndRanges 2025-10-09 20:51:19 +02:00
crn4 53e24ae7f7 panic fix 2025-10-07 11:12:39 +01:00
crn4 ffed4b38ef minor fixes after tests 2025-10-07 10:07:14 +01:00
crn4 5d1c61369d added env for account ids enabling new network map builder 2025-10-06 12:34:36 +01:00
crn4 841bc7564a minor fixes 2025-10-02 11:58:55 +02:00
crn4 2ac0da6cac conflicts resolution 2025-10-02 11:39:43 +02:00
crn4 148b8b04b3 cache and peeracls to unexported 2025-10-02 11:33:18 +02:00
crn4 806be13dd5 fixed bug with duplicated firewall rules 2025-10-02 11:07:02 +02:00
Viktor Liu b5daec3b51 [client,signal,management] Add browser client support (#4415) 2025-10-01 20:10:11 +02:00
Vlad 25ed58328a [management] fix network map dns filter (#4547) 2025-09-25 16:29:14 +02:00
Bethuel Mmbaga dc30dcacce [management] Filter DNS records to include only peers to connect (#4517)
DNS record filtering to only include peers that a peer can connect to, reducing unnecessary DNS data in the peer's network map.

- Adds a new `filterZoneRecordsForPeers` function to filter DNS records based on peer connectivity
- Modifies `GetPeerNetworkMap` to use filtered DNS records instead of all records in the custom zone
- Includes comprehensive test coverage for the new filtering functionality
2025-09-18 18:57:07 +02:00
crn4 90557da237 on peer deleted cleanup 2025-09-17 01:34:38 +02:00
crn4 1d6209841e on peer added refactored 2025-09-17 00:54:34 +02:00
crn4 8f0e5708d5 onpeeradded optimization part 1 2025-09-16 17:21:35 +02:00
crn4 5a9aa55121 buildPeerRoutesView optimized 2025-09-16 14:03:23 +02:00
crn4 6082c7cdcb buildPeerACLView optimized 2025-09-16 01:18:24 +02:00
crn4 08fba9876b test fixes 2025-09-05 13:06:06 +02:00
crn4 ca85aa9b8f implement new map builder full rebuilder for other parts 2025-09-05 12:30:13 +02:00
crn4 0ae2241573 removed test files 2025-09-03 16:15:38 +02:00
crn4 050c05164a tests fix 2025-09-03 15:34:19 +02:00
crn4 333908d06e minor fix 2025-09-03 14:54:58 +02:00
crn4 bc6c5ece6e tests and linter fix 2025-09-03 14:22:08 +02:00
crn4 fd7b3ae21c conflicts resolution after main merge 2025-09-03 13:34:24 +02:00
crn4 abd7a84a46 implement nmap builder to the code 2025-09-03 13:31:12 +02:00
crn4 f4b2bed1b9 changes to other code - nmap in separate file 2025-09-03 13:31:12 +02:00
crn4 2fb971e88a nmap builder 2025-09-03 13:31:12 +02:00
Maycon Santos d39fcfd62a [management] Add user approval (#4411)
This PR adds user approval functionality to the management system, allowing administrators to manually approve new users joining via domain matching. When enabled, users are blocked with pending approval status until explicitly approved by an admin.

Adds UserApprovalRequired setting to control manual user approval requirement
Introduces user approval and rejection endpoints with corresponding business logic
Prevents pending approval users from adding peers or logging in
2025-09-01 18:00:45 +02:00
Vlad 99bd34c02a [signal] fix goroutines and memory leak on forward messages between peers (#3896) 2025-08-27 19:30:49 +03:00
Pascal Fischer 6a3846a8b7 [management] Remove save account calls (#4349) 2025-08-18 12:37:20 +02:00
Pascal Fischer b3056d0937 [management] Use DI containers for server bootstrapping (#4343) 2025-08-15 17:14:48 +02:00
Bethuel Mmbaga a4e8647aef [management] Enable flow groups (#4230)
Adds the ability to limit traffic events logging to specific peer groups
2025-08-13 00:00:40 +03:00
Viktor Liu abd152ee5a [misc] Separate shared code dependencies (#4288)
* Separate shared code dependencies

* Fix import

* Test respective shared code

* Update openapi ref

* Fix test

* Fix test path
2025-08-05 18:34:41 +02:00
Viktor Liu 1d5e871bdf [misc] Move shared components to shared directory (#4286)
Moved the following directories:

```
  - management/client → shared/management/client
  - management/domain → shared/management/domain
  - management/proto → shared/management/proto
  - signal/client → shared/signal/client
  - signal/proto → shared/signal/proto
  - relay/client → shared/relay/client
  - relay/auth → shared/relay/auth
```

and adjusted import paths
2025-08-05 15:22:58 +02:00
Viktor Liu beb66208a0 [management, client] Add API to change the network range (#4177) 2025-08-04 16:45:49 +02:00
Pascal Fischer 552dc60547 [management] migrate group peers into seperate table (#4096) 2025-08-01 12:22:07 +02:00
Pedro Maia Costa 0ea5d020a3 [management] extra settings integrated validator (#4136) 2025-07-24 16:12:29 +01:00
Maycon Santos 2c81cf2c1e [management] Add account onboarding (#4084)
This PR introduces a new onboarding feature to handle such flows in the dashboard by defining an AccountOnboarding model, persisting it in the store, exposing CRUD operations in the manager and HTTP handlers, and updating API schemas and tests accordingly.

Add AccountOnboarding struct and embed it in Account
Extend Store and DefaultAccountManager with onboarding methods and SQL migrations
Update HTTP handlers, API types, OpenAPI spec, and add end-to-end tests
2025-07-03 09:01:32 +02:00
Pascal Fischer 22678bce7f [management] add uniqueness constraint for peer ip and label and optimize generation (#4042) 2025-07-02 18:13:10 +02:00
Ali Amer d9402168ad [management] Add option to disable default all-to-all policy (#3970)
This PR introduces a new configuration option `DisableDefaultPolicy` that prevents the creation of the default all-to-all policy when new accounts are created. This is useful for automation scenarios where explicit policies are preferred.
### Key Changes:
- Added DisableDefaultPolicy flag to the management server config
- Modified account creation logic to respect this flag
- Updated all test cases to explicitly pass the flag (defaulting to false to maintain backward compatibility)
- Propagated the flag through the account manager initialization chain

### Testing:

- Verified default behavior remains unchanged when flag is false
- Confirmed no default policy is created when flag is true
- All existing tests pass with the new parameter
2025-07-02 02:41:59 +02:00
Bethuel Mmbaga e9016aecea [management] Add backward compatibility for older clients without firewall rules port range support (#4003)
Adds backward compatibility for clients with versions prior to v0.48.0 that do not support port range firewall rules.

- Skips generation of firewall rules with multi-port ranges for older clients
- Preserves support for single-port ranges by treating them as individual port rules, ensuring compatibility with older clients
2025-06-19 13:07:06 +03:00
Maycon Santos b1247a14ba [management] Use xID for setup key IDs to avoid id collisions (#3977)
This PR addresses potential ID collisions by switching the setup key ID generation from a hash-based approach to using xid-generated IDs.

Replace the hash function with xid.New().String()
Remove obsolete imports and the Hash() function
2025-06-14 12:24:16 +01:00
Bethuel Mmbaga b76d9e8e9e [management] Add support for port ranges in firewall rules (#3823) 2025-06-10 18:02:13 +03:00
Pedro Maia Costa 07b220d91b [management] REST client impersonation (#3879) 2025-06-02 22:11:28 +02:00