Commit Graph
2210 Commits
Author SHA1 Message Date
Pascal Fischer 64e618f1ad disable migration cleanup 2025-07-04 13:14:47 +02:00
Pascal Fischer 5802dcaf80 Merge branch 'feature/net-266-groups-migration' into feature/net-297-network-migration
# Conflicts:
#	management/server/migration/migration.go
#	management/server/peer_test.go
2025-07-04 13:09:01 +02:00
Pascal Fischer b329397d06 Revert "use FullSaveAssociations for single group save"
This reverts commit 76b180a741.
2025-07-04 10:16:41 +02:00
Pascal Fischer 76b180a741 use FullSaveAssociations for single group save 2025-07-04 00:00:40 +02:00
Pascal Fischer 8db9065ed9 run account update buffer in goroutine 2025-07-03 20:36:35 +02:00
Pascal Fischer 1f79fc0728 ignore associations on create 2025-07-03 19:58:11 +02:00
Pascal Fischer bdd0b1cf02 update get group by name 2025-07-03 19:24:12 +02:00
Pascal Fischer e6ac248aee load peers on retrival by name 2025-07-03 19:11:18 +02:00
Pascal Fischer 376394f7f9 fix large batch 2025-07-03 19:00:15 +02:00
Pascal Fischer 542dbdb41c fix group save with removal of all peers 2025-07-03 18:50:17 +02:00
Pascal Fischer 982b9604ee cleanup 2025-07-03 18:41:49 +02:00
Pascal Fischer f2990e2fbc cleanup 2025-07-03 18:10:00 +02:00
Pascal Fischer dfb47d5545 fix tests 2025-07-03 17:20:21 +02:00
Pascal Fischer 8e0b8f20a2 fix tests 2025-07-03 16:56:47 +02:00
Pascal Fischer 8a42528664 change getGroupsByPeers 2025-07-03 16:24:00 +02:00
Pascal Fischer a8cba921e1 fix tests and group copy 2025-07-03 16:04:33 +02:00
Pascal Fischer fee36b0663 fix peer add if group not existing 2025-07-03 15:40:28 +02:00
Pascal Fischer dfad334780 fix peer add if group not existing 2025-07-03 15:30:35 +02:00
Pascal Fischer d25da87957 don't fail on conflict 2025-07-03 15:15:48 +02:00
Pascal Fischer 13213d954d fix save account 2025-07-03 14:49:12 +02:00
Pascal Fischer 6fb61c7cf5 remove group peers from extended store 2025-07-03 13:45:59 +02:00
Pascal Fischer 459db2ba4f fix log in test 2025-07-03 13:41:36 +02:00
Pascal Fischer e78b7dd058 fis association replace 2025-07-03 13:35:18 +02:00
Pascal Fischer 7132642e4c cleanup tests 2025-07-03 13:23:14 +02:00
Pascal Fischer 22a944b157 cleanup tests 2025-07-03 13:15:56 +02:00
Pascal FischerandCopilot 005937ae77 Update management/server/migration/migration.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-07-03 12:56:39 +02:00
Pascal Fischer 5fab2d019a set lock level on update 2025-07-03 12:55:11 +02:00
Pascal Fischer 36155f8de1 disable delete on migration 2025-07-03 12:51:55 +02:00
Pascal Fischer d06831dd2f add network migration 2025-07-03 11:20:16 +02:00
Pascal Fischer e23282b92c add groups migration 2025-07-02 19:09:42 +02:00
Maycon Santos 57961afe95 [doc] Add forum link (#4093)
* Add forum link

* Add forum link
2025-07-02 18:40:07 +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
Maycon Santos 6c633497bc [management] fix network update test for delete policy (#4086)
when adding a peer we calculate the network map an account using backpressure functions and some updates might arrive around the time we are deleting a policy.

This change ensures we wait enough time for the updates from add peer to be sent and read before continuing with the test logic
2025-07-02 12:25:31 +02:00
Carlos Hernandez 6922826919 [client] Support fullstatus without probes (#4052) 2025-07-02 10:42:47 +02:00
Maycon Santos 56a1a75e3f [client] Support random wireguard port on client (#4085)
Adds support for using a random available WireGuard port when the user specifies port `0`.

- Updates `freePort` logic to bind to the requested port (including `0`) without falling back to the default.
- Removes default port assignment in the configuration path, allowing `0` to propagate.
- Adjusts tests to handle dynamically assigned ports when using `0`.
2025-07-02 09:01:02 +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
Krzysztof Nazarewski (kdn) dbdef04b9e [misc] getting-started-with-zitadel.sh: drop unnecessary port 8080 (#4075) 2025-07-02 02:35:13 +02:00
Maycon Santos 29cbfe8467 [misc] update sign pipeline version to v0.0.20 (#4082) 2025-07-01 16:23:31 +02:00
Maycon Santos 6ce8643368 [client] Run login popup on goroutine (#4080) 2025-07-01 13:45:55 +02:00
Krzysztof Nazarewski (kdn) 07d1ad35fc [misc] start the service after installation on arch linux (#4071) 2025-06-30 12:02:03 +02:00
Krzysztof Nazarewski (kdn) ef6cd36f1a [misc] fix arch install.sh error with empty temporary dependencies
handle empty var before calling removal command
2025-06-30 11:59:35 +02:00
Krzysztof Nazarewski (kdn) c1c71b6d39 [client] improve adding route log message (#4034)
from:
  Adding route to 1.2.3.4/32 via invalid IP @ 10 (wt0)
to:
  Adding route to 1.2.3.4/32 via no-ip @ 10 (wt0)
2025-06-30 11:57:42 +02:00
Pascal Fischer 0480507a10 [management] report networkmap duration in ms (#4064) 2025-06-28 11:38:15 +02:00
Krzysztof Nazarewski (kdn)andMaycon Santos 34ac4e4b5a [misc] fix: self-hosting: the wrong default for NETBIRD_AUTH_PKCE_LOGIN_FLAG (#4055)
* fix: self-hosting: the wrong default for NETBIRD_AUTH_PKCE_LOGIN_FLAG

fixes https://github.com/netbirdio/netbird/issues/4054

* un-quote the number

Co-authored-by: Maycon Santos <mlsmaycon@gmail.com>

---------

Co-authored-by: Maycon Santos <mlsmaycon@gmail.com>
2025-06-26 10:45:00 +02:00
Pascal Fischer 52ff9d9602 [management] remove unused transaction (#4053) 2025-06-26 01:34:22 +02:00
Pascal Fischer 1b73fae46e [management] add breakdown of network map calculation metrics (#4020) 2025-06-25 11:46:35 +02:00
Viktor Liu d897365abc [client] Don't open cmd.exe during MSI actions (#4041) v0.49.0 2025-06-24 21:32:37 +02:00
Viktor Liu f37aa2cc9d [misc] Specify netbird binary location in Dockerfiles (#4024) 2025-06-23 10:09:02 +02:00
Maycon Santos 5343bee7b2 [management] check and log on new management version (#4029)
This PR enhances the version checker to send a custom User-Agent header when polling for updates, and configures both the management CLI and client UI to use distinct agents. 

- NewUpdate now takes an `httpAgent` string to set the User-Agent header.
- `fetchVersion` builds a custom HTTP request (instead of `http.Get`) and sets the User-Agent.
- Management CLI and client UI now pass `"nb/management"` and `"nb/client-ui"` respectively to NewUpdate.
- Tests updated to supply an `httpAgent` constant.
- Logs if there is a new version available for management
2025-06-22 16:44:33 +02:00
Maycon Santos 870e29db63 [misc] add additional metrics (#4028)
* add additional metrics

we are collecting active rosenpass, ssh from the client side
we are also collecting active user peers and active users

* remove duplicated
2025-06-22 13:44:25 +02:00