Commit Graph

56 Commits

Author SHA1 Message Date
Akshay Gaikwad
a31af67fe7 Generate Go code of agent templates 2022-06-09 16:29:21 +05:30
Akshay Gaikwad
664beb4383 Replace rafay with paralus 2022-06-09 13:42:27 +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
f8be2a671c fixes for sso users listing, sso users kubectl issue, removed commented code 2022-06-02 11:31:18 +05:30
niravparikh05
0210f0f2d3 renamed column namespace_id to namespace 2022-05-27 12:23:22 +05:30
niravparikh05
8ab85e57c9 changes to support namespaces 2022-05-23 12:42:51 +05:30
Abin Simon
bdc1052662 Cleanup some TODO items 2022-05-20 11:27:29 +05:30
Abin Simon
aabf2e600e Fix group filter for users
The following could be used as an optimisation when we are filtering
just by user, but decided to omit as of now.

```
usrs, err = dao.ListFilteredUsersWithGroup(ctx, s.db,
    []uuid.UUID{}, groupId, queryOptions.Q, queryOptions.Type,
    queryOptions.OrderBy, queryOptions.Order,
    int(queryOptions.Limit), int(queryOptions.Offset))
```
2022-05-20 10:29:35 +05:30
Abin Simon
a6a3e20738 Fix user listing 2022-05-18 15:13:54 +05:30
Nirav Parikh
0d828f1272 Merge pull request #134 from RafayLabs/idp-groups-and-updating-same
Add IdP groups in Identities table
2022-05-17 19:09:43 +05:30
Abin Simon
5c68a33537 Prevent combining idp and managed groups 2022-05-13 16:24:58 +05:30
Akshay Gaikwad
f604768865 [OIdC Provider] Return client secret on GET requests
- Returns client secret on GET request, so that when UI made
modification to OIdC provider, it should be able to send back the
client secret to PUT request.
- Fix issuer url validation when udpate.
2022-05-12 19:15:10 +05:30
Akshay Gaikwad
eb0b7d3ef2 Provision to create new oidc provider with same name that of deleted
When we soft delete oidc provider entry which we are doing for delete
provider API endpoint, we cannot create new oidc provider entry with a
same name due to unique constraint violation on name. Applying unique
constraint to name,trash will allow to create new oidc provider entry
with a same name, but fail on deleting that entry because it violates
unique constraint. Hence this commit adds unique constraint
to (id,name) combined.
2022-05-06 11:31:48 +05:30
niravparikh05
e9b9b2b7f4 fixes for oidc config and groups list 2022-04-27 21:39:24 +05:30
niravparikh05
33f3d9337b test case to be fixed 2022-04-26 21:31:13 +05:30
niravparikh05
101c005312 fixes for permissions and user group assoc 2022-04-26 19:56:36 +05:30
Abin Simon
3a87a77dca Add trash column to BootstrapAgentTemplate 2022-04-26 15:29:05 +05:30
Abin Simon
a68277e295 Fix fetching user in sentry
Previously we were getting the user with quotes around it which caused issues.
2022-04-26 13:28:36 +05:30
niravparikh05
db7be6e26e changes to support prompt 2022-04-25 17:24:08 +05:30
niravparikh05
8883703328 changes to expose system and user grpc clients for prompt 2022-04-15 15:05:17 +05:30
niravparikh05
c99c1c5a7e reverting changes for isGlobal in role resource 2022-04-14 18:36:55 +05:30
Nirav Parikh
a9e72810a5 Merge pull request #104 from RafayLabs/issue_fixes
issue fixes for cluster delete and adding bootstrap addr to agent config
2022-04-14 17:08:22 +05:30
Abin Simon
5d5b097770 Remove is_global column from resourcerole table 2022-04-14 16:55:48 +05:30
Abin Simon
d89136de65 Don't allow users to update builtin roles 2022-04-14 15:26:18 +05:30
niravparikh05
e7d436a232 issue fixes for cluster delete and adding bootstrap addr to agent config 2022-04-14 13:10:38 +05:30
Abin Simon
729009d7fb Add basic audit logging setup 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
639ff1da30 addressed review comments, changes for custom roles and sso users 2022-04-04 11:41:58 +05:30
nirav-rafay
af966bbadb Merge branch 'fixes-for-ui' of github.com:RafaySystems/rcloud-base into fixes-for-ui 2022-04-01 12:13:25 +05:30
nirav-rafay
ce9063e990 rebasing with fixes for ui 2022-04-01 12:03:42 +05:30
Abin Simon
94bb70cb6d Merge sentry view table models 2022-03-31 13:37:11 +05:30
Abin Simon
19273730e9 Limit project visibility to only users with project.read 2022-03-29 17:12:01 +05:30
Abin Simon
60199e3f4e Update sentry_account_permissions view 2022-03-29 15:09:19 +05:30
Abin Simon
ae1cae9782 Basic entitlements working 2022-03-29 15:09:19 +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
e8cc7d2f1c Implement filtering of users and groups via sentry
Drop the previous implementationusing custom code
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
abb56481a3 Auth middleware for use in prompt 2022-03-25 18:18:55 +05:30
nirav-rafay
f33a7e7a69 fix table reference 2022-03-25 15:33:38 +05:30
nirav-rafay
ba1d51b169 rebasing with fixes for ui 2022-03-24 23:28:13 +05:30
Abin Simon
fb4fa3781c Rename RafaySystems to RafayLabs 2022-03-24 12:42:59 +05:30
Abin Simon
78a0b0c625 Rearrage some files to cleanup file structure 2022-03-24 12:40:45 +05:30
Akshay Gaikwad
d792e57105 Format all packages using go fmt 2022-03-21 12:28:27 +05:30
Abin Simon
459a4c0d19 Update more resources to use transactions 2022-03-21 12:13:32 +05:30
Abin Simon
952f5ccf49 Fix soft delete issue in user fetch 2022-03-21 12:10:18 +05:30
Abin Simon
b7eede13c9 Switch to using soft delete for resources 2022-03-21 12:10:18 +05:30
Abin Simon
7189ae0fbe Fix missing soft_delete handling 2022-03-18 12:06:50 +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