netbird/management/server
Bethuel Mmbaga cba3c549e9
Add JWT group-based access control for adding new peers (#1383)
* Added function to check user access by JWT groups in the account management mock server and account manager

* Refactor auth middleware for group-based JWT access control

* Add group-based JWT access control on adding new peer with JWT

* Remove mapping error as the token validation error is already present in grpc error codes

* use GetAccountFromToken to prevent single mode issues

* handle foreground login message

---------

Co-authored-by: Maycon Santos <mlsmaycon@gmail.com>
2023-12-13 13:18:35 +03:00
..
account extract account into separate package 2023-11-28 14:34:57 +01:00
activity Merge branch 'main' into feature/peer-approval 2023-12-01 18:12:59 +01:00
http Add JWT group-based access control for adding new peers (#1383) 2023-12-13 13:18:35 +03:00
idp add owner role support (#1340) 2023-12-01 17:24:57 +01:00
jwtclaims Fix jwks validation and flag/config overriding (#1380) 2023-12-12 14:56:27 +01:00
metrics Merge branch 'main' into feature/peer-approval 2023-12-04 17:34:53 +01:00
mock_server Add JWT group-based access control for adding new peers (#1383) 2023-12-13 13:18:35 +03:00
peer extract peer into seperate package 2023-11-28 13:45:26 +01:00
status
telemetry Implement lightweight method to check is peer has update channel (#1351) 2023-12-05 14:17:56 +01:00
testdata Implement SQLite Store using gorm and relational approach (#1065) 2023-10-12 15:42:36 +02:00
account_test.go Merge branch 'main' into feature/peer-approval 2023-12-01 18:12:59 +01:00
account.go Add JWT group-based access control for adding new peers (#1383) 2023-12-13 13:18:35 +03:00
config.go Move StoreKind under own StoreConfig configuration and rename to Engine (#1219) 2023-10-16 11:19:39 +02:00
dns_test.go extract peer into seperate package 2023-11-28 13:45:26 +01:00
dns.go Merge branch 'main' into feature/peer-approval 2023-12-01 18:12:59 +01:00
ephemeral_test.go extract peer into seperate package 2023-11-28 13:45:26 +01:00
ephemeral.go extract peer into seperate package 2023-11-28 13:45:26 +01:00
event_test.go Extend linter rules (#1300) 2023-11-10 16:33:13 +01:00
event.go Export account manager events store (#1295) 2023-11-08 13:35:37 +03:00
file_store_test.go Merge branch 'main' into feature/peer-approval 2023-11-29 16:27:01 +01:00
file_store.go Merge branch 'main' into feature/peer-approval 2023-11-29 16:27:01 +01:00
group_test.go add owner role support (#1340) 2023-12-01 17:24:57 +01:00
group.go add owner role support (#1340) 2023-12-01 17:24:57 +01:00
grpcserver.go Add JWT group-based access control for adding new peers (#1383) 2023-12-13 13:18:35 +03:00
management_proto_test.go Add metrics for PeersUpdateManager (#1310) 2023-11-16 18:21:52 +01:00
management_suite_test.go
management_test.go Add metrics for PeersUpdateManager (#1310) 2023-11-16 18:21:52 +01:00
nameserver_test.go extract peer into seperate package 2023-11-28 13:45:26 +01:00
nameserver.go Prepare regexps on compile time (#1327) 2023-11-27 13:01:00 +01:00
network_test.go
network.go Merge branch 'main' into feature/peer-approval 2023-11-29 16:27:01 +01:00
peer_test.go extract peer into seperate package 2023-11-28 13:45:26 +01:00
peer.go Merge branch 'main' into feature/peer-approval 2023-12-04 17:34:53 +01:00
personal_access_token_test.go
personal_access_token.go Implement SQLite Store using gorm and relational approach (#1065) 2023-10-12 15:42:36 +02:00
policy_test.go update tests 2023-12-06 15:02:10 +01:00
policy.go Fix nil pointer handling in get peers from group (#1381) 2023-12-12 18:17:00 +01:00
route_test.go update tests 2023-12-06 15:02:10 +01:00
route.go add owner role support (#1340) 2023-12-01 17:24:57 +01:00
rule.go Implement SQLite Store using gorm and relational approach (#1065) 2023-10-12 15:42:36 +02:00
scheduler_test.go
scheduler.go
setupkey_test.go Extend linter rules (#1300) 2023-11-10 16:33:13 +01:00
setupkey.go add owner role support (#1340) 2023-12-01 17:24:57 +01:00
sqlite_store_test.go fix imports in sqlite store test 2023-11-30 11:08:51 +01:00
sqlite_store.go fix sql store 2023-11-30 11:51:35 +01:00
store_test.go Extend linter rules (#1300) 2023-11-10 16:33:13 +01:00
store.go Merge branch 'main' into feature/peer-approval 2023-11-29 16:27:01 +01:00
turncredentials_test.go Add metrics for PeersUpdateManager (#1310) 2023-11-16 18:21:52 +01:00
turncredentials.go
updatechannel_test.go Add metrics for PeersUpdateManager (#1310) 2023-11-16 18:21:52 +01:00
updatechannel.go Implement lightweight method to check is peer has update channel (#1351) 2023-12-05 14:17:56 +01:00
user_test.go add owner role support (#1340) 2023-12-01 17:24:57 +01:00
user.go Merge branch 'main' into feature/peer-approval 2023-12-01 18:12:59 +01:00