Commit Graph
40 Commits
Author SHA1 Message Date
Akshay GaikwadandGitHub 1f64d80729 Auto-generate password and force reset (#124)
* Upgrade kratos service to v0.10.1

Signed-off-by: Akshay Gaikwad <akgaikwad001@gmail.com>

* Upgrade kratos-client-go to v0.10.1

Signed-off-by: Akshay Gaikwad <akgaikwad001@gmail.com>

* generate password feature for kratos admin creation

Signed-off-by: Akshay Gaikwad <akgaikwad001@gmail.com>

* Add forceReset property in user spec

Signed-off-by: Akshay Gaikwad <akgaikwad001@gmail.com>

* added forcereset in the init script

Signed-off-by: mabhi <abhijit.mukherjee@infracloud.io>

* Resolve conflicts

Signed-off-by: Akshay Gaikwad <akgaikwad001@gmail.com>

* Stdout default admin password in initialize script

Signed-off-by: Akshay Gaikwad <akgaikwad001@gmail.com>

* setting password for new user and sending default password in create user response

Signed-off-by: mabhi <abhijit.mukherjee@infracloud.io>

* added new endpoint to service force reset flag update after resetting complete outside authz

Signed-off-by: mabhi <abhijit.mukherjee@infracloud.io>

* removed unnecessary overhead in the forcereset endpoint and updated user type proto to remove unused fields

Signed-off-by: mabhi <abhijit.mukherjee@infracloud.io>
2023-01-27 18:32:11 +05:30
Abhijit MukherjeeandGitHub cd55d2d1da record user.login event by kratos hooks (#111)
* record user.login event by kratos hooks

Signed-off-by: mabhi <abhijit.mukherjee@infracloud.io>

* added test case for create login auditlog

Signed-off-by: mabhi <abhijit.mukherjee@infracloud.io>

* updated change log

Signed-off-by: mabhi <abhijit.mukherjee@infracloud.io>
2022-12-26 11:55:19 +05:30
Abhijit MukherjeeandGitHub d7d57cb2d0 Fix modify userinfo service to include scope in response (#108)
Fix modify userinfo service to include scope in response
2022-12-05 15:33:16 +05:30
Akshay Gaikwad bde018a3c7 Use max select query for user last access time 2022-11-03 18:16:22 +05:30
Akshay Gaikwad 1d850cb409 Fix failing tests 2022-11-01 17:52:28 +05:30
vivekhiwarkar 10396c7d13 fix for failing test cases 2022-08-26 10:25:06 +05:30
Abin Simon ae7db385ea Add tests for RetrieveCliConfig 2022-06-16 14:56:04 +05:30
Abin Simon 761d157bcf Add tests for forgot password 2022-06-16 14:56:04 +05:30
Abin Simon d6768a3f12 Add tests for projects in user listing 2022-06-16 14:56:04 +05:30
Abin Simon 98bb6d554c Add testing for idp groups 2022-06-16 14:56:04 +05:30
Akshay Gaikwad 0ee494cc97 Rename rcloud, Rafay references 2022-06-08 18:41:32 +05:30
Akshay Gaikwad b67fcacf87 Rename go module name and its usage 2022-06-08 17:21:22 +05:30
niravparikh05 79a88d4766 fix tests 2022-06-02 18:12:24 +05:30
Nirav ParikhandGitHub c3320a8234 Merge pull request #145 from RafayLabs/ns-dev
Namespace related development changes
2022-05-27 12:30:42 +05:30
niravparikh05 0210f0f2d3 renamed column namespace_id to namespace 2022-05-27 12:23:22 +05:30
Abin Simon aa4bea1654 Fix tests for user delete 2022-05-24 12:37:50 +05:30
niravparikh05 3d8c834189 fixing test cases for namespaces 2022-05-23 14:56:04 +05:30
niravparikh05 8ab85e57c9 changes to support namespaces 2022-05-23 12:42:51 +05:30
Abin Simon 4d9d8dc4cf Fix user test with compound filtering 2022-05-20 10:53:21 +05:30
Abin Simon dd3a1fd4b1 Fix tests for user list fetch 2022-05-19 14:58:49 +05:30
Abin Simon 5c68a33537 Prevent combining idp and managed groups 2022-05-13 16:24:58 +05:30
Abin Simon f3de101f94 Update User spec to include IDPGroups 2022-05-13 13:37:07 +05:30
niravparikh05 e45547a453 changes to support dev mode testing 2022-04-12 12:37:34 +05:30
Abin Simon 89379fe07f Fix tests after audit log changes 2022-04-08 17:42:26 +05:30
Abin Simon d9d0bc3585 Fix and cleanup tests 2022-04-08 17:42:26 +05:30
Abin Simon df72864d09 Add option to filter by user auth mode
Pass in type=password or type=oidc to pick the mode
2022-04-06 15:03:01 +05:30
Abin Simon 66c7cc7f10 Filter from all users list if we have don't have filters 2022-04-06 14:01:32 +05:30
nirav-rafay c81ca9eb95 fixed test cases and format 2022-04-04 13:37:36 +05:30
Abin Simon 94bb70cb6d Merge sentry view table models 2022-03-31 13:37:11 +05:30
Abin Simon ff4f5d160e Switch from permission to permissions for userinfo 2022-03-29 16:02:29 +05:30
Abin Simon 49ce1ca5a1 Add test for userinfo and fix broken tests 2022-03-29 15:58:27 +05:30
Abin Simon f849cc59c3 Initial version of GetUserInfo for fetching full info about current users 2022-03-29 15:09:19 +05:30
Abin Simon cf0b830924 Basic QueryOptions filtering for groups and users 2022-03-29 15:09:19 +05:30
Abin Simon 1dce43d607 Update role definition for casbin 2022-03-25 18:17:43 +05:30
Abin Simon fb4fa3781c Rename RafaySystems to RafayLabs 2022-03-24 12:42:59 +05:30
Abin Simon c18613df23 Make create,update,delete in user use transactions 2022-03-21 12:10:18 +05:30
Abin Simon df810ab45a Convert from dao interface to funcs
This was done inorder to support transactions which will be done in
the next PR. This is the first step towards that.
2022-03-16 17:10:32 +05:30
Abin Simon 6a72c96fba Update tests for soft delete 2022-03-16 17:09:12 +05:30
nirav-rafayandGitHub d469315bad changes for cli config download, apikey services and cli auth verify (#55) 2022-03-11 20:06:55 +05:30
nirav-rafayandGitHub c66bdc25cd restructure rcloud-base as a single base controller (#37)
* restructure rcloud-base as a single base controller
* updated master.rest
* moved sentry from internal to pkg as it is used by relay
* removing unused rpc and it's dependencies
* Fix usermgmt tests
* Don't redefine variables in rest file
Co-authored-by: Abin Simon <abin.simon@rafay.co>
2022-03-03 17:59:06 +05:30