netbird/management/server
Maycon Santos f9723c9266
[client] Account different policiy rules for routes firewall rules (#2939)
* Account different policies rules for routes firewall rules

This change ensures that route firewall rules will consider source group peers in the rules generation for access control policies.

This fixes the behavior where multiple policies with different levels of access was being applied to all peers in a distribution group

* split function

* avoid unnecessary allocation

Co-authored-by: Viktor Liu <17948409+lixmal@users.noreply.github.com>

---------

Co-authored-by: Viktor Liu <17948409+lixmal@users.noreply.github.com>
2024-11-29 17:50:35 +01:00
..
account Feature/peer validator (#1553) 2024-03-27 18:48:48 +01:00
activity [management] Add activity events to group propagation flow (#2916) 2024-11-21 15:10:34 +01: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 [management] Refactor group to use store methods (#2867) 2024-11-15 20:09:32 +03:00
http [management] Refactor policy to use store methods (#2878) 2024-11-26 10:46:05 +01:00
idp [management] improve zitadel idp error response detail by decoding errors (#2634) 2024-09-27 22:21:34 +03:00
integrated_validator [management] Fix network map update on peer validation (#2849) 2024-11-07 09:50:13 +01:00
integration_reference Feature/peer validator (#1553) 2024-03-27 18:48:48 +01:00
jwtclaims Add guide when signing key is not found (#2942) 2024-11-29 10:06:40 +01:00
metrics [management] Setup key improvements (#2775) 2024-10-28 17:52:23 +01:00
migration [management] Setup key improvements (#2775) 2024-10-28 17:52:23 +01:00
mock_server [management] Refactor policy to use store methods (#2878) 2024-11-26 10:46:05 +01:00
peer [management] remove network map diff calculations (#2820) 2024-10-31 19:24:15 +01:00
posture [management] Refactor posture check to use store methods (#2874) 2024-11-25 16:26:24 +01:00
status [management] Refactor nameserver groups to use store methods (#2888) 2024-11-26 17:39:04 +01:00
telemetry [management] Add metric for peer meta update (#2913) 2024-11-19 18:13:26 +01:00
testdata [management] Refactor nameserver groups to use store methods (#2888) 2024-11-26 17:39:04 +01: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 [tests] Enable benchmark tests on github actions (#2961) 2024-11-28 19:22:01 +01:00
account.go [management] Refactor policy to use store methods (#2878) 2024-11-26 10:46:05 +01:00
config.go [relay] Feature/relay integration (#2244) 2024-09-08 12:06:14 +02:00
dns_test.go [management] remove network map diff calculations (#2820) 2024-10-31 19:24:15 +01:00
dns.go [management] Refactor DNS settings to use store methods (#2883) 2024-11-26 13:43:05 +01: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.go [client] Improve state write timeout and abort work early on timeout (#2882) 2024-11-13 13:46:00 +01:00
group_test.go [management] Refactor policy to use store methods (#2878) 2024-11-26 10:46:05 +01:00
group.go [management] Refactor posture check to use store methods (#2874) 2024-11-25 16:26:24 +01:00
grpcserver.go [management] Add more logs to the peer update processes (#2881) 2024-11-12 14:19:22 +01:00
integrated_validator.go [management] Refactor group to use store methods (#2867) 2024-11-15 20:09:32 +03:00
management_proto_test.go [management] Move testdata to sql files (#2693) 2024-10-10 12:35: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 [management] Fix network map update on peer validation (#2849) 2024-11-07 09:50:13 +01:00
nameserver_test.go [management] remove network map diff calculations (#2820) 2024-10-31 19:24:15 +01:00
nameserver.go [management] Refactor nameserver groups to use store methods (#2888) 2024-11-26 17:39:04 +01: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 [management] remove network map diff calculations (#2820) 2024-10-31 19:24:15 +01:00
peer_test.go [tests] Enable benchmark tests on github actions (#2961) 2024-11-28 19:22:01 +01:00
peer.go [management] refactor to use account object instead of separate db calls for peer update (#2957) 2024-11-28 11:13:01 +01: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 [management] Refactor policy to use store methods (#2878) 2024-11-26 10:46:05 +01:00
policy.go [management] Refactor policy to use store methods (#2878) 2024-11-26 10:46:05 +01:00
posture_checks_test.go [management] Refactor policy to use store methods (#2878) 2024-11-26 10:46:05 +01:00
posture_checks.go [management] refactor to use account object instead of separate db calls for peer update (#2957) 2024-11-28 11:13:01 +01:00
route_test.go [client] Account different policiy rules for routes firewall rules (#2939) 2024-11-29 17:50:35 +01:00
route.go [client] Account different policiy rules for routes firewall rules (#2939) 2024-11-29 17:50:35 +01: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] Refactor policy to use store methods (#2878) 2024-11-26 10:46:05 +01:00
setupkey.go [management] Fix getSetupKey call (#2927) 2024-11-22 10:15:51 +01:00
sql_store_test.go [management] Refactor nameserver groups to use store methods (#2888) 2024-11-26 17:39:04 +01:00
sql_store.go [management] Refactor nameserver groups to use store methods (#2888) 2024-11-26 17:39:04 +01:00
store_test.go [management] Remove file store (#2689) 2024-10-03 15:50:35 +02:00
store.go [management] Refactor nameserver groups to use store methods (#2888) 2024-11-26 17:39:04 +01: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 [management] remove network map diff calculations (#2820) 2024-10-31 19:24:15 +01:00
updatechannel.go [management] Add more logs to the peer update processes (#2881) 2024-11-12 14:19:22 +01:00
user_test.go [management] Refactor policy to use store methods (#2878) 2024-11-26 10:46:05 +01:00
user.go [management] Add activity events to group propagation flow (#2916) 2024-11-21 15:10:34 +01:00