netbird/management/server
Bethuel Mmbaga 35c892aea3
[management] Restrict accessible peers to user-owned peers for non-admins (#2618)
* Restrict accessible peers to user-owned peers for non-admin users

Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>

* add tests

Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>

* add service user test

Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>

* reuse account from token

Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>

* return error when peer not found

Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>

---------

Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
2024-09-20 12:36:58 +03:00
..
account Feature/peer validator (#1553) 2024-03-27 18:48:48 +01:00
activity [management] fix legacy decrypting of empty values (#2595) 2024-09-15 16:22:46 +02:00
context Add context to throughout the project and update logging (#2209) 2024-07-03 11:33:02 +02:00
geolocation [management] Auto update geolite (#2297) 2024-09-09 18:27:42 +02:00
group Feature/peer validator (#1553) 2024-03-27 18:48:48 +01:00
http [management] Restrict accessible peers to user-owned peers for non-admins (#2618) 2024-09-20 12:36:58 +03:00
idp Fix lint (#2427) 2024-08-14 13:30:10 +03:00
integrated_validator Add context to throughout the project and update logging (#2209) 2024-07-03 11:33:02 +02:00
integration_reference Feature/peer validator (#1553) 2024-03-27 18:48:48 +01:00
jwtclaims [management] Add support to ECDSA public Keys (#2461) 2024-08-27 16:37:55 +02:00
metrics Fix issue with canceled context before pushing metrics and decreasing pushing interval (#2235) 2024-07-04 19:15:59 +02:00
migration Add context to throughout the project and update logging (#2209) 2024-07-03 11:33:02 +02:00
mock_server Add batch delete for groups and users (#2370) 2024-08-08 18:01:38 +03:00
peer [management] Improve mgmt sync performance (#2363) 2024-08-07 10:52:31 +02:00
posture Add context to throughout the project and update logging (#2209) 2024-07-03 11:33:02 +02:00
status [management] Add transaction to addPeer (#2469) 2024-09-16 15:47:03 +02:00
telemetry [management] Refactor HTTP metrics (#2476) 2024-08-23 19:42:55 +03:00
testdata [management] Add transaction to addPeer (#2469) 2024-09-16 15:47:03 +02:00
testutil Add context to throughout the project and update logging (#2209) 2024-07-03 11:33:02 +02:00
account_request_buffer.go rename request buffer and update default interval (#2459) 2024-08-21 11:44:52 +02:00
account_test.go [management] Improve mgmt sync performance (#2363) 2024-08-07 10:52:31 +02:00
account.go [management] Add transaction to addPeer (#2469) 2024-09-16 15:47:03 +02:00
config.go [relay] Feature/relay integration (#2244) 2024-09-08 12:06:14 +02:00
dns_test.go [management] Improve mgmt sync performance (#2363) 2024-08-07 10:52:31 +02:00
dns.go [management] Improve mgmt sync performance (#2363) 2024-08-07 10:52:31 +02:00
ephemeral_test.go [management] Add transaction to addPeer (#2469) 2024-09-16 15:47:03 +02:00
ephemeral.go Add context to throughout the project and update logging (#2209) 2024-07-03 11:33:02 +02:00
event_test.go Add context to throughout the project and update logging (#2209) 2024-07-03 11:33:02 +02:00
event.go Add write lock for peer when saving its connection status (#2359) 2024-07-31 14:53:32 +02:00
file_store_test.go Add context to throughout the project and update logging (#2209) 2024-07-03 11:33:02 +02:00
file_store.go [management] Add transaction to addPeer (#2469) 2024-09-16 15:47:03 +02:00
group_test.go Add batch delete for groups and users (#2370) 2024-08-08 18:01:38 +03:00
group.go Add batch delete for groups and users (#2370) 2024-08-08 18:01:38 +03:00
grpcserver.go [relay] Feature/relay integration (#2244) 2024-09-08 12:06:14 +02:00
integrated_validator.go Add write lock for peer when saving its connection status (#2359) 2024-07-31 14:53:32 +02:00
management_proto_test.go [management] Add transaction to addPeer (#2469) 2024-09-16 15:47:03 +02:00
management_suite_test.go Move management server to a separate directory (#67) 2021-07-24 16:14:29 +02:00
management_test.go [relay] Feature/relay integration (#2244) 2024-09-08 12:06:14 +02:00
nameserver_test.go [management] Improve mgmt sync performance (#2363) 2024-08-07 10:52:31 +02:00
nameserver.go Add write lock for peer when saving its connection status (#2359) 2024-07-31 14:53:32 +02:00
network_test.go Exclude second last IP from allocation to use it in the Fake DNS (#912) 2023-05-30 18:26:44 +04:00
network.go Migrate serializer:gob fields to serializer:json (#1855) 2024-04-18 18:14:21 +02:00
peer_test.go [management] Add transaction to addPeer (#2469) 2024-09-16 15:47:03 +02:00
peer.go [management] Add transaction to addPeer (#2469) 2024-09-16 15:47:03 +02:00
personal_access_token_test.go move into separate package 2023-05-16 12:57:56 +02:00
personal_access_token.go Implement SQLite Store using gorm and relational approach (#1065) 2023-10-12 15:42:36 +02:00
policy_test.go Add context to throughout the project and update logging (#2209) 2024-07-03 11:33:02 +02:00
policy.go [management] Improve mgmt sync performance (#2363) 2024-08-07 10:52:31 +02:00
posture_checks_test.go Add context to throughout the project and update logging (#2209) 2024-07-03 11:33:02 +02:00
posture_checks.go Fix lint (#2427) 2024-08-14 13:30:10 +03:00
route_test.go Reduce test logs (#2550) 2024-09-06 16:28:19 +02:00
route.go Add write lock for peer when saving its connection status (#2359) 2024-07-31 14:53:32 +02:00
scheduler_test.go Reduce test logs (#2550) 2024-09-06 16:28:19 +02:00
scheduler.go Add context to throughout the project and update logging (#2209) 2024-07-03 11:33:02 +02:00
setupkey_test.go [management] Prevent removal of All group from peers during user groups propagation (#2410) 2024-08-12 13:48:05 +03:00
setupkey.go [management] Prevent removal of All group from peers during user groups propagation (#2410) 2024-08-12 13:48:05 +03:00
sql_store_test.go [management] Add transaction to addPeer (#2469) 2024-09-16 15:47:03 +02:00
sql_store.go [management] Add transaction to addPeer (#2469) 2024-09-16 15:47:03 +02:00
store_test.go Add context to throughout the project and update logging (#2209) 2024-07-03 11:33:02 +02:00
store.go [management] Add transaction to addPeer (#2469) 2024-09-16 15:47:03 +02:00
token_mgr_test.go [relay] Improve relay messages (#2574) 2024-09-11 16:20:30 +02:00
token_mgr.go [relay] Improve relay messages (#2574) 2024-09-11 16:20:30 +02:00
updatechannel_test.go Add context to throughout the project and update logging (#2209) 2024-07-03 11:33:02 +02:00
updatechannel.go Reduce test logs (#2550) 2024-09-06 16:28:19 +02:00
user_test.go Add batch delete for groups and users (#2370) 2024-08-08 18:01:38 +03:00
user.go [management] Add transaction to addPeer (#2469) 2024-09-16 15:47:03 +02:00