netbird/management/server
Misha Bragin fe22eb3b98
Check peer expiration after ACL check (#714)
Bug 1: When calculating the network map, peers added by a setup key
were falling under expiration logic while they shouldn't.

Bug 2: Peers HTTP API didn't return expired peers for non-admin users
because of the expired peer check in the ACL logic.

The fix applies peer expiration checks outside of the ACL logic.
2023-03-02 12:45:10 +01:00
..
activity Fix login expiration enum in OpenAPI (#694) 2023-02-16 15:36:36 +01:00
http change methods to not link 2023-02-28 18:17:55 +01:00
idp Add IdP metrics (#521) 2022-10-22 13:29:39 +02:00
jwtclaims Feature: add custom id claim (#667) 2023-02-03 21:47:20 +01:00
metrics Use Peer.ID instead of Peer.Key as peer identifier (#664) 2023-02-03 10:33:28 +01:00
mock_server changed the naming convention for all handling objects and methods to have unified way 2023-02-28 15:01:24 +01:00
status Replace gRPC errors in business logic with internal ones (#558) 2022-11-11 20:36:45 +01:00
telemetry Add gRPC metrics (#522) 2022-10-22 15:06:54 +02:00
testdata Replace IP allocation logic (#342) 2022-05-29 22:43:39 +02:00
account_test.go Check peer expiration after ACL check (#714) 2023-03-02 12:45:10 +01:00
account.go Proactively expire peers' login per account (#698) 2023-02-27 16:44:26 +01:00
config.go Feature: add custom id claim (#667) 2023-02-03 21:47:20 +01:00
dns_test.go Use Peer.ID instead of Peer.Key as peer identifier (#664) 2023-02-03 10:33:28 +01:00
dns.go Simplify event storing with one generic method (#662) 2023-01-24 10:17:24 +01:00
event_test.go Add system activity tracking and event store (#636) 2023-01-02 15:11:32 +01:00
event.go Simplify event storing with one generic method (#662) 2023-01-24 10:17:24 +01:00
file_store_test.go Remove stale peer indices when getting peer by key after removing (#711) 2023-03-01 12:11:32 +01:00
file_store.go Remove stale peer indices when getting peer by key after removing (#711) 2023-03-01 12:11:32 +01:00
group.go Use Peer.ID instead of Peer.Key as peer identifier (#664) 2023-02-03 10:33:28 +01:00
grpcserver.go Fix peer status update when expiring peers (#708) 2023-02-28 20:02:30 +01:00
management_proto_test.go Adding --external-ip-map and --dns-resolver-address and shorthand flags (#652) 2023-01-17 19:16:50 +01:00
management_suite_test.go Move management server to a separate directory (#67) 2021-07-24 16:14:29 +02:00
management_test.go Add system activity tracking and event store (#636) 2023-01-02 15:11:32 +01:00
nameserver_test.go Add more activity events (#663) 2023-01-25 16:29:59 +01:00
nameserver.go Add more activity events (#663) 2023-01-25 16:29:59 +01:00
network_test.go Replace IP allocation logic (#342) 2022-05-29 22:43:39 +02:00
network.go Replace gRPC errors in business logic with internal ones (#558) 2022-11-11 20:36:45 +01:00
peer_test.go Check peer expiration after ACL check (#714) 2023-03-02 12:45:10 +01:00
peer.go Check peer expiration after ACL check (#714) 2023-03-02 12:45:10 +01:00
route_test.go Use Peer.ID instead of Peer.Key as peer identifier (#664) 2023-02-03 10:33:28 +01:00
route.go Use Peer.ID instead of Peer.Key as peer identifier (#664) 2023-02-03 10:33:28 +01:00
rule.go Simplify event storing with one generic method (#662) 2023-01-24 10:17:24 +01:00
scheduler_test.go Proactively expire peers' login per account (#698) 2023-02-27 16:44:26 +01:00
scheduler.go Proactively expire peers' login per account (#698) 2023-02-27 16:44:26 +01:00
setupkey_test.go Simplify event storing with one generic method (#662) 2023-01-24 10:17:24 +01:00
setupkey.go Simplify event storing with one generic method (#662) 2023-01-24 10:17:24 +01:00
store.go Use Peer.ID instead of Peer.Key as peer identifier (#664) 2023-02-03 10:33:28 +01:00
turncredentials_test.go Rename module to netbirdio/netbird (#288) 2022-03-26 12:08:54 +01:00
turncredentials.go Fix peer status update when expiring peers (#708) 2023-02-28 20:02:30 +01:00
updatechannel_test.go Use select for turn credentials and peers update (#443) 2022-08-27 12:57:03 +02:00
updatechannel.go Proactively expire peers' login per account (#698) 2023-02-27 16:44:26 +01:00
user.go Simplify event storing with one generic method (#662) 2023-01-24 10:17:24 +01:00