Commit Graph

8 Commits

Author SHA1 Message Date
Akshay Gaikwad
ff7bbec976 Add authentication middleware 2022-02-24 13:56:46 +05:30
akshay196-rafay
a2f03c60da Authentication interceptor (#14)
Changes in this PR include
- Authenticate gRPC requests
- Initial file structure for authentication and authorization service
- Use Auth middleware and interceptor service in usermgmt component
- Authenticate HTTP request based on Kratos API token
- Add Auth middleware to adminsrv component
- Name the Grpc metadata fields
- Maintain session data after authentication
- Removed http middleware as it is not necessary
- Exclude rpc methods from authentication
- Handle error in auth interceptor
- Revert to with cancel context
- Log authentication failed requests and New function in authv3
- Initiate authContext struct in authv3 package using new public
- function NewAuthContext.
2022-02-23 11:18:49 +05:30
nirav-rafay
f4bd2a802d initial commit for sentry related changes (#16) 2022-02-22 11:41:48 +05:30
abin-rafay
464a1014db User management (#8)
multiple fixes and refactored to support from id to name, added resource roles, permissions script and improved test coverage
2022-02-03 11:04:01 +05:30
nirav-rafay
0bfe13670e removed support by id and updated list cluster service 2022-01-19 18:33:47 +05:30
nirav-rafay
eefb66d885 initial commit for cluster management 2022-01-19 12:42:02 +05:30
Akshay Gaikwad
25a3cd007f Move entity_dao.go to common
This includes:
 - Move entity_dao.go to common since it is generic database operation
 interface for all the components.
 - Added `GetX` method to EntityDAO interface. It get entity that matches
 provided field and value both. It is useful in case where service
 lookup for database entities not based on id, name.

Signed-off-by: Akshay Gaikwad <akshay.gaikwad@rafay.co>
2022-01-10 11:49:18 +05:30
nirav-rafay
fcc6f0be90 initial commit for adminsrv 2021-12-28 14:23:52 +05:30