Dmitri Dolguikh
ac3b713dda
Merge remote-tracking branch 'origin/revert/component-types' into revert/component-types
...
Signed-off-by: Dmitri Dolguikh <dmitri.external@netbird.io >
2026-08-07 09:56:15 +02:00
Dmitri Dolguikh
4d4de15f48
added 'integration' build tag to nmap db tests
...
Signed-off-by: Dmitri Dolguikh <dmitri.external@netbird.io >
2026-08-06 16:14:51 +02:00
pascal
28074405e1
change wording from failer -> failing to pass codespell
2026-08-06 16:02:02 +02:00
pascal
fd23461b03
add network map compute test
2026-08-06 15:57:43 +02:00
Dmitri Dolguikh
b19cf7405d
Merge remote-tracking branch 'origin/revert/component-types' into revert/component-types
...
Signed-off-by: Dmitri Dolguikh <dmitri.external@netbird.io >
2026-08-06 15:18:13 +02:00
Dmitri Dolguikh
90e0c5bd0c
added GetPolicies test
...
Signed-off-by: Dmitri Dolguikh <dmitri.external@netbird.io >
2026-08-06 15:17:39 +02:00
pascal
6ccb2bb239
handle nil values in policy, nameserver and resources
2026-08-06 15:12:12 +02:00
Dmitri Dolguikh
b160cb43b1
Merge remote-tracking branch 'origin/revert/component-types' into revert/component-types
...
Signed-off-by: Dmitri Dolguikh <dmitri.external@netbird.io >
2026-08-06 13:03:28 +02:00
Dmitri Dolguikh
1902777509
added a test for GetPeers
...
Signed-off-by: Dmitri Dolguikh <dmitri.external@netbird.io >
2026-08-06 13:03:00 +02:00
pascal
cff46eee67
introduce peerGroupsIdx to avoid looping through the groups to figure out peer membership
2026-08-06 12:49:36 +02:00
pascal
0513109c35
improve looping on connected peers filtering
2026-08-06 12:31:26 +02:00
Dmitri Dolguikh
6b8393c6b0
add GetAppliedZoneCandidatesViaPgxConnection test
...
Signed-off-by: Dmitri Dolguikh <dmitri.external@netbird.io >
2026-08-05 18:43:20 +02:00
Dmitri Dolguikh
316e82337f
cleanup query execution in tests
...
Signed-off-by: Dmitri Dolguikh <dmitri.external@netbird.io >
2026-08-05 18:09:28 +02:00
Dmitri Dolguikh
bacacb8f77
deleted group_test
...
Signed-off-by: Dmitri Dolguikh <dmitri.external@netbird.io >
2026-08-05 16:45:25 +02:00
Dmitri Dolguikh
994e84a686
Merge remote-tracking branch 'origin/revert/component-types' into revert/component-types
2026-08-05 16:35:08 +02:00
Dmitri Dolguikh
07809fe923
added test for GetAllowedUsersViaPgxConnection
...
Signed-off-by: Dmitri Dolguikh <dmitri.external@netbird.io >
2026-08-05 16:34:44 +02:00
pascal
ec3e37456e
use Exec instead of Query for inserts and assert every insert error
2026-08-05 16:33:48 +02:00
pascal
c81103dfa6
fix linter comments
2026-08-05 16:21:01 +02:00
Dmitri Dolguikh
ba574dc739
added tests for GetPrivateServicesViaPgxConnection and GetPrivateServicesViaPgxConnection
...
Signed-off-by: Dmitri Dolguikh <dmitri.external@netbird.io >
2026-08-05 16:06:43 +02:00
Dmitri Dolguikh
067982f772
Merge remote-tracking branch 'origin/revert/component-types' into revert/component-types
...
Signed-off-by: Dmitri Dolguikh <dmitri.external@netbird.io >
2026-08-05 15:26:38 +02:00
Dmitri Dolguikh
ce4f0a7821
added GetAccountSettingsViaPgxConnection test
...
Signed-off-by: Dmitri Dolguikh <dmitri.external@netbird.io >
2026-08-05 15:26:06 +02:00
pascal
3218e2f744
fix client tests
2026-08-05 15:18:19 +02:00
pascal
7e24c27ef1
Merge remote-tracking branch 'origin/revert/component-types' into revert/component-types
2026-08-05 15:09:41 +02:00
pascal
06817271bf
fix embedded client test
2026-08-05 15:09:29 +02:00
Dmitri Dolguikh
1530739b54
Merge remote-tracking branch 'origin/revert/component-types' into revert/component-types
...
Signed-off-by: Dmitri Dolguikh <dmitri.external@netbird.io >
2026-08-05 14:58:36 +02:00
Dmitri Dolguikh
e745aedc92
added GetRoutesViaPgxConnection test
...
Signed-off-by: Dmitri Dolguikh <dmitri.external@netbird.io >
2026-08-05 14:58:09 +02:00
pascal
4cf3903c83
fix management <-> shared dependencies
2026-08-05 14:48:27 +02:00
pascal
1e14b554a6
fix management <-> shared dependencies
2026-08-05 14:48:18 +02:00
Dmitri Dolguikh
11a3627899
Merge remote-tracking branch 'origin/revert/component-types' into revert/component-types
...
Signed-off-by: Dmitri Dolguikh <dmitri.external@netbird.io >
2026-08-05 14:29:43 +02:00
Dmitri Dolguikh
2442bd6198
tests for GetNameServerGroupsViaPgxConnection and GetPostureChecksViaPgxConnection
...
Signed-off-by: Dmitri Dolguikh <dmitri.external@netbird.io >
2026-08-05 14:29:07 +02:00
pascal
006cee000f
Merge remote-tracking branch 'origin/revert/component-types' into revert/component-types
2026-08-05 13:56:46 +02:00
pascal
c93aa03c0e
merge main
2026-08-05 13:56:35 +02:00
Dmitri Dolguikh
efe2eaeb09
added GetDomains test
...
Signed-off-by: Dmitri Dolguikh <dmitri.external@netbird.io >
2026-08-05 12:37:58 +02:00
Dmitri Dolguikh
1926e983fb
added GetDnsSettings test
...
Signed-off-by: Dmitri Dolguikh <dmitri.external@netbird.io >
2026-08-05 12:03:36 +02:00
Dmitri Dolguikh
e9b8175915
added GetNetworks test
...
Signed-off-by: Dmitri Dolguikh <dmitri.external@netbird.io >
2026-08-05 11:53:40 +02:00
Dmitri Dolguikh
88f1930450
added account network test
...
Signed-off-by: Dmitri Dolguikh <dmitri.external@netbird.io >
2026-08-05 11:40:23 +02:00
Dmitri Dolguikh
1774a3d9dd
add network resource query test
...
Signed-off-by: Dmitri Dolguikh <dmitri.external@netbird.io >
2026-08-05 10:52:39 +02:00
Dmitri Dolguikh
795e06ce83
Merge remote-tracking branch 'origin/revert/component-types' into revert/component-types
2026-08-05 10:16:54 +02:00
Dmitri Dolguikh
748f6b3fbb
fixes + tests
...
Signed-off-by: Dmitri Dolguikh <dmitri.external@netbird.io >
2026-08-05 10:16:21 +02:00
pascal
d5adfc799f
handle policy with no rules to avoid index panic
2026-08-04 20:57:57 +02:00
pascal
60fe56e442
fix assert equal ordering
2026-08-04 20:56:16 +02:00
pascal
327fa4c0d6
fix group clone
2026-08-04 20:52:16 +02:00
pascal
ed015a7972
skip resource from proto failure
2026-08-04 20:46:10 +02:00
pascal
b43708e31b
silently skip resource to proto failure
2026-08-04 20:42:43 +02:00
pascal
ce55b8406b
handle not found peer on posture vali
2026-08-04 20:34:30 +02:00
pascal
0456b64ea1
silent skip on non existing groups references
2026-08-04 20:28:06 +02:00
Maycon Santos
6526fc2bec
[management] Prevent deleting groups referenced by reverse proxy services ( #7062 )
...
## Describe your changes
A group could be deleted while a reverse proxy service still referenced
it, silently breaking the service's access control: private services
list groups in `access_groups` as the peer allowlist, and SSO bearer
auth distributes tokens to `distribution_groups`.
Group deletion now runs through the same linkage validation as routes,
policies, and agent network policies: deleting a group that backs a
private service allowlist or an enabled bearer-auth distribution list
fails with a `GroupLinkError` naming the service domain. Disabled bearer
configs and stale `access_groups` on non-private services are inert and
do not block deletion.
Tests cover both linked cases in single and bulk deletion, and pin the
non-blocking cases. The test account seeds decoy services ahead of the
linked ones so the check is proven to scan the full service list.
2026-08-05 03:24:20 +09:00
pascal
942ee81ec0
add benchmark
2026-08-04 20:19:17 +02:00
Dmitri Dolguikh
33a0e1bc2b
adding integration tests
...
Signed-off-by: Dmitri Dolguikh <dmitri.external@netbird.io >
2026-08-04 18:58:29 +02:00
Misha Bragin
2afa69b622
[management] prevent dangling group refs in agent-network ACLs. ( #7060 )
...
Block deleting a group referenced as a source group by an agent network
policy, and drop unresolvable groups from synthesised private-service
ACLs. A deleted group survived in agent_network_policies.source_groups
and was carried into the injected in-memory policy, where network-map
assembly resolved it to a nil group and panicked on every proxy peer
sync.
2026-08-04 18:04:22 +02:00