netbird/management/server
pascal-fischer da75a76d41
Adding dashboard login activity (#1092)
For better auditing this PR adds a dashboard login event to the management service.

For that the user object was extended with a field for last login that is not actively saved to the database but kept in memory until next write. The information about the last login can be extracted from the JWT claims nb_last_login. This timestamp will be stored and compared on each API request. If the value changes we generate an event to inform about a login.
2023-08-18 19:23:11 +02:00
..
activity Adding dashboard login activity (#1092) 2023-08-18 19:23:11 +02:00
http Adding dashboard login activity (#1092) 2023-08-18 19:23:11 +02:00
idp Specify invited by email when inviting a user (#1087) 2023-08-16 23:05:22 +02:00
jwtclaims Adding dashboard login activity (#1092) 2023-08-18 19:23:11 +02:00
metrics Record idp manager type (#1027) 2023-07-22 19:30:59 +02:00
mock_server Add PKCE authorization flow (#1012) 2023-07-27 11:31:07 +02:00
status Move Login business logic from gRPC API to Accountmanager (#713) 2023-03-03 18:35:38 +01:00
telemetry Count only successful HTTP request durations (#886) 2023-05-22 16:26:36 +02:00
testdata switch PATs to map and add deletion 2023-03-20 16:14:55 +01:00
account_test.go Send network update when propagate user auto-groups (#1084) 2023-08-18 15:36:05 +02:00
account.go Adding dashboard login activity (#1092) 2023-08-18 19:23:11 +02:00
config.go Add PKCE authorization flow (#1012) 2023-07-27 11:31:07 +02:00
dns_test.go Prevent sending nameserver configuration when peer is set as NS (#962) 2023-06-28 17:29:02 +02:00
dns.go Prevent sending nameserver configuration when peer is set as NS (#962) 2023-06-28 17:29:02 +02:00
event_test.go use UTC everywhere in server 2023-04-03 15:09:35 +02:00
event.go use UTC everywhere in server 2023-04-03 15:09:35 +02:00
file_store_test.go JWT Groups support (#966) 2023-06-27 18:51:05 +04:00
file_store.go Adding dashboard login activity (#1092) 2023-08-18 19:23:11 +02:00
group_test.go Check links of groups before delete it (#1010) 2023-07-14 20:45:40 +02:00
group.go Check links of groups before delete it (#1010) 2023-07-14 20:45:40 +02:00
grpcserver.go Add PKCE authorization flow (#1012) 2023-07-27 11:31:07 +02:00
management_proto_test.go Add telemetry to measure app durations (#878) 2023-05-19 11:42:25 +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 Add telemetry to measure app durations (#878) 2023-05-19 11:42:25 +02:00
nameserver_test.go Add domain validation for nameserver groups (#1077) 2023-08-16 11:25:38 +02:00
nameserver.go Add domain validation for nameserver groups (#1077) 2023-08-16 11:25:38 +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 Exclude second last IP from allocation to use it in the Fake DNS (#912) 2023-05-30 18:26:44 +04:00
peer_test.go Don't create setup keys on new account (#972) 2023-06-27 17:17:24 +02:00
peer.go Add peer login and expiration activity events (#1090) 2023-08-17 14:04:04 +02:00
personal_access_token_test.go move into separate package 2023-05-16 12:57:56 +02:00
personal_access_token.go move into separate package 2023-05-16 12:57:56 +02:00
policy_test.go Optimize ACL performance (#994) 2023-07-18 13:12:50 +04:00
policy.go Optimize ACL performance (#994) 2023-07-18 13:12:50 +04:00
route_test.go Feat linux firewall support (#805) 2023-05-29 16:00:18 +02:00
route.go Use Peer.ID instead of Peer.Key as peer identifier (#664) 2023-02-03 10:33:28 +01:00
rule.go Feat linux firewall support (#805) 2023-05-29 16:00:18 +02: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 use UTC everywhere in server 2023-04-03 15:09:35 +02:00
setupkey.go remove UTC from some not store related operations 2023-04-10 10:54:23 +02:00
store.go Adding dashboard login activity (#1092) 2023-08-18 19:23:11 +02:00
turncredentials_test.go Rename module to netbirdio/netbird (#288) 2022-03-26 12:08:54 +01:00
turncredentials.go remove UTC from some not store related operations 2023-04-10 10:54:23 +02:00
updatechannel_test.go Use select for turn credentials and peers update (#443) 2022-08-27 12:57:03 +02:00
updatechannel.go Adding dashboard login activity (#1092) 2023-08-18 19:23:11 +02:00
user_test.go Adding dashboard login activity (#1092) 2023-08-18 19:23:11 +02:00
user.go Adding dashboard login activity (#1092) 2023-08-18 19:23:11 +02:00