Commit Graph
153 Commits
Author SHA1 Message Date
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
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
Abin Simon c18613df23 Make create,update,delete in user use transactions 2022-03-21 12:10:18 +05:30
Abin Simon b088eaecef Make create,update,delete in group use transactions 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
nirav-rafay dbfc2b3928 Merge pull request #39 from RafaySystems/casbin-url-mappings
Add support for mapping permission names to urls when creating the roles
2022-03-21 12:09:13 +05:30
nirav-rafay cd554cd90a Merge pull request #72 from RafaySystems/consistent-errors
Consistent error handling in services (partner,project,cluster,org)
2022-03-21 11:38:10 +05:30
nirav-rafay 588095312f Merge pull request #71 from RafaySystems/soft-delete-fixes
Fix missing soft_delete handling
2022-03-21 11:33:41 +05:30
nirav-rafay 87c061b4af Merge pull request #69 from RafaySystems/init-dao
Convert initialization from using dao to using util funcs
2022-03-21 11:32:55 +05:30
Abin Simon a004ab25ae Consistent error handling in services (partner,project,cluster,org) 2022-03-18 12:34:37 +05:30
Abin Simon 7189ae0fbe Fix missing soft_delete handling 2022-03-18 12:06:50 +05:30
Abin Simon 8c0a61f0d8 Convert initialization from using dao to using util funcs 2022-03-17 14:51:26 +05:30
nirav-rafay 357f53ff29 Merge pull request #67 from RafaySystems/fix-66
Fix race condition between kratos-migrate and migrate-admindb
2022-03-17 12:42:06 +05:30
shrey-rafay 5aeab8fd1d Fix for mappings cache 2022-03-17 09:39:10 +05:30
Akshay Gaikwad 14ef1afd00 Fix race condition between kratos-migrate and migrate-admindb
migrate-admindb service in docker compose must require all kratos
migrations to be completed, otherwise it fails with some-kratos-table
not exists error.

Fix #66

Signed-off-by: Akshay Gaikwad <akshay.gaikwad@rafay.co>
2022-03-16 18:50:45 +05:30
abin-rafay bb3d785756 Merge pull request #62 from RafaySystems/transactions
Transactions - Part 1
2022-03-16 17:12:25 +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 226b753938 Switch to using soft delete for resources 2022-03-16 17:10:32 +05:30
abin-rafay 01ea6bb3f5 Merge pull request #61 from RafaySystems/soft-delete
Switch to using soft delete for resources
2022-03-16 17:09:59 +05:30