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
Abin Simon
6a72c96fba
Update tests for soft delete
2022-03-16 17:09:12 +05:30
Abin Simon
022dedfbdf
Switch to using soft delete for resources
2022-03-16 17:09:10 +05:30
nirav-rafay
9bb6285453
Merge pull request #57 from RafaySystems/deployment-udpate
...
Clean up env variables
2022-03-16 16:57:39 +05:30
nirav-rafay
8d2049ba53
Merge pull request #56 from RafaySystems/initialization
...
Initialization script
2022-03-16 16:54:24 +05:30
Abin Simon
701ab5c536
Switch to fetching all needed values via named cli args
2022-03-15 13:34:47 +05:30
Akshay Gaikwad
9f260950af
Drop KRATOS_SCHEME env var
2022-03-15 10:22:09 +05:30
Abin Simon
98ac0c4bbc
Restructure initialization code
2022-03-14 18:12:20 +05:30
abin-rafay
4993509798
Add db local setup instructions and some cleanup in README ( #51 )
2022-03-14 17:51:09 +05:30
Akshay Gaikwad
b0d2df72f4
Clean up env variables
...
- Removed unnecessary env vars.
- Add all env vars to env.example file.
2022-03-14 15:13:28 +05:30
Abin Simon
bc19970395
Allow creation of initial org admin user
2022-03-14 12:34:20 +05:30
Abin Simon
3aedac3201
Fix scope for roles
...
This might not really be necessary but a good check
2022-03-14 12:34:18 +05:30
Abin Simon
8184c23a8f
Initialize script to create org, partner and roles
...
We should probably have the role creation moved into adminsrv, but
since we are only creating new orgs like this as of now let us
continue with this.
2022-03-14 12:33:19 +05:30
Abin Simon
b049ebaf28
Delete a duplicate entry from json data for role
2022-03-14 12:33:19 +05:30
nirav-rafay
d469315bad
changes for cli config download, apikey services and cli auth verify ( #55 )
2022-03-11 20:06:55 +05:30
abin-rafay
bef3d9ed53
When adding users to group drop duplicate users ( #50 )
2022-03-11 17:36:56 +05:30
akshay196-rafay
5429bf4493
Add Docker compose file ( #49 )
...
* Add DB_ADDR to env vars list
* Add Dockerfile and docker-compose
* Remove go.mod from _kratos dir and clean go.mod of root dir
* Run Kratos docker-compose quickstart from root dir
* Add gomigrate to docker-compose
* Bump docker-composen version to 3.7
* 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.
* Add elasticsearch in docker-compose
* Allow es to not be available in when in dev mode
* Change default ES endpoint
Co-authored-by: Abin Simon <abin.simon@rafay.co >
2022-03-11 17:28:16 +05:30
akshay196-rafay
d36f14e407
Add LICENSE ( #48 )
2022-03-11 17:24:50 +05:30
abin-rafay
0e9be5e589
Audit engine query endpoints ( #43 )
2022-03-08 16:44:41 +05:30
akshay196-rafay
7938f30668
Update IdP and OIDC Provider ( #40 )
...
* Update creating oidc provider
* Validate partner and organization by checking in db tables.
* Validate empty scopes
* Fix oidc provider update
* Fix application Host url in ACS URL of Idp
2022-03-07 19:06:57 +05:30