Commit Graph
170 Commits
Author SHA1 Message Date
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
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
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
Akshay Gaikwad 7fb98b969d Resolve conflicts and go mod tidy 2022-03-21 12:25:58 +05:30
Akshay Gaikwad 32f72fb48c Add formatter and linter in Go CI checks
Commented the format and lint steps because there are many old source
code files that need to be fix. It is not a priority at this time.
2022-03-21 12:25:58 +05:30
Akshay Gaikwad 386206efbc Update Development setup steps 2022-03-21 12:25:56 +05:30
Akshay Gaikwad b5f83ac538 Last sanity check before publishing image in release workflow 2022-03-21 12:25:08 +05:30
Akshay Gaikwad 6a4a981777 Limit go workflow to push and PR to main branch 2022-03-21 12:25:08 +05:30
Akshay Gaikwad 11d6ca1232 Remove on-branches from release workflow 2022-03-21 12:25:08 +05:30
Akshay Gaikwad 950004b422 Add Kratos services in the single docker compose file
Removed Kratos quickstart files and merge all setup required for
rcloud-base in the kratos-compose.yml file located in the root of the
repo.
2022-03-21 12:25:08 +05:30
Akshay Gaikwad fea1f8cd5b Remove go.mod from _kratos dir and clean go.mod of root dir 2022-03-21 12:25:08 +05:30
Akshay Gaikwad 9402268a25 Add GitHub Actions workflows
- Go workflow: Go related check like running go test.
- Release workflow: Build docker image and push it to registry.
2022-03-21 12:25:08 +05:30
nirav-rafay ac6ebdb377 Merge pull request #65 from RafaySystems/transactions-use
Transactions - Part 2
2022-03-21 12:21:04 +05:30
Abin Simon b1e6981dcf Rollback and log when commit fails 2022-03-21 12:17:22 +05:30
Abin Simon b305edc57e Update how delete is done for project,org,partner
Since delete is now soft delete by default, we can use that instead of
update to delete stuff.
2022-03-21 12:13:34 +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 b4abc1ea61 Make create,update,delete in role use transactions 2022-03-21 12:10:18 +05:30