Commit Graph

185 Commits

Author SHA1 Message Date
niravparikh05
aac445114d excluding bootstrap registration from authn 2022-04-06 15:27:51 +05:30
nirav-rafay
dc2044943b Merge pull request #84 from RafayLabs/fixes-for-ui
rebasing with fixes for ui
2022-04-05 17:27:42 +05:30
nirav-rafay
e51d50d83f updated default schema url 2022-04-05 12:39:46 +05:30
nirav-rafay
c81ca9eb95 fixed test cases and format 2022-04-04 13:37:36 +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
nirav-rafay
7d38707a9e Merge pull request #86 from RafayLabs/query-options
Some stuff that has to do with permissions
2022-04-01 11:30:25 +05:30
Abin Simon
94bb70cb6d Merge sentry view table models 2022-03-31 13:37:11 +05:30
nirav-rafay
837e5200ea Merge pull request #85 from RafayLabs/update-auth
Update Auth constructor function and middleware
2022-03-30 17:14:54 +05:30
Abin Simon
1ed5a3e876 Rework session handling to prevent cyclic import
imports github.com/RafayLabs/rcloud-base/internal/fixtures
imports github.com/RafayLabs/rcloud-base/pkg/service
imports github.com/RafayLabs/rcloud-base/pkg/auth/v3
imports github.com/RafayLabs/rcloud-base/pkg/service
2022-03-30 14:00:05 +05:30
Akshay Gaikwad
5de4ba9765 Add two constructors for authContext
This includes:
- SetupAuthContext:  Setups authContext with new authContext fields.
- NewAuthContext: Create AuthContext with using authContext fields
from caller function.
2022-03-30 13:00:35 +05:30
Akshay Gaikwad
c972e26d93 Update Auth constructor function and middleware
Auth constructor should handle creation of Kratos, database,
ApiKeyService itself for benefit to other dependent modules/repos. The
Prompt module does not need db instance hence it should not pass db
parameter when initializing Auth context and middleware.

Signed-off-by: Akshay Gaikwad <akshay.gaikwad@rafay.co>
2022-03-30 12:16:42 +05:30
Abin Simon
19273730e9 Limit project visibility to only users with project.read 2022-03-29 17:12:01 +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
60199e3f4e Update sentry_account_permissions view 2022-03-29 15:09:19 +05:30
Abin Simon
229cf7c033 Pass down username from interceptor for entitlements 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-rafay
6d21e29d81 Merge pull request #78 from RafayLabs/casbin-updates
Authorization updates
2022-03-25 18:22:06 +05:30
Abin Simon
c89741aefb Don't use reflect to get resource Metadata 2022-03-25 18:18:55 +05:30
Abin Simon
abb56481a3 Auth middleware for use in prompt 2022-03-25 18:18:55 +05:30
Abin Simon
51a246c2f5 Update master.rest to send auth token 2022-03-25 18:18:54 +05:30
Abin Simon
f7ac37ab6f Initial support for authorization 2022-03-25 18:17:43 +05:30
Abin Simon
1dce43d607 Update role definition for casbin 2022-03-25 18:17:43 +05:30
abin-rafay
54fc074d7d Merge pull request #82 from RafayLabs/db-fixes
DB access fixes
2022-03-25 15:42:36 +05:30
nirav-rafay
f33a7e7a69 fix table reference 2022-03-25 15:33:38 +05:30
nirav-rafay
2e159502ad fixed test file 2022-03-24 23:32:45 +05:30
nirav-rafay
ba1d51b169 rebasing with fixes for ui 2022-03-24 23:28:13 +05:30
Abin Simon
9eed4e9d08 Add partner/org/project rest examples 2022-03-24 17:23:00 +05:30
Abin Simon
9627c5c87b Update db used by gorm in initialize 2022-03-24 17:22:48 +05:30
Abin Simon
a2a07c2dc2 FIx transaction issues 2022-03-24 17:06:12 +05:30
nirav-rafay
40cceb7896 Merge pull request #81 from RafayLabs/restructure-fs
Code restructuring
2022-03-24 16:23:08 +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
abin-rafay
e712a1d9e0 Merge pull request #76 from RafaySystems/casbin-url-mappings-fixed
Cleanup after latest merges and some features needed for auth
2022-03-21 18:26:14 +05:30
Abin Simon
a830acd237 Apply go fmt 2022-03-21 18:23:06 +05:30
Abin Simon
e6c37f4972 Fix authz issues from implementing transactions 2022-03-21 17:49:37 +05:30
Abin Simon
0ef5a92eaf Drop unnecessary logging in audit endpoint 2022-03-21 17:49:21 +05:30
Abin Simon
7fa6a10d72 Add org project and namespace to auth proto 2022-03-21 17:49:21 +05:30
Abin Simon
be03c565b2 Revert back cluster_controller changes 2022-03-21 17:49:21 +05:30
shrey-rafay
99f9ccaafb Add support for mapping permission names to urls when creating the roles 2022-03-21 17:49:13 +05:30
nirav-rafay
b98d04645c Merge pull request #45 from RafaySystems/build-mgmt
Create container image and push it to registry using GitHub Actions
2022-03-21 13:12:58 +05:30
Akshay Gaikwad
04e936bd32 CI: Run tests on service package instead of all
The failing tests need to be fixed, being tracked at
https://github.com/RafaySystems/rcloud-base/issues/46. Enable tests on
all packages once all tests are fixed.
2022-03-21 12:40:13 +05:30
Akshay Gaikwad
d792e57105 Format all packages using go fmt 2022-03-21 12:28:27 +05:30
Akshay Gaikwad
b96a4646e4 go mod tidy 2022-03-21 12:25:58 +05:30
Akshay Gaikwad
5e79cf350b Enabled Format check in CI 2022-03-21 12:25:58 +05:30