Example implementation of automatic workspace configuration promotion between 2 tenants using:
https://cloudentity.com/developers/api/authorization_apis/hub-api/#tag/configuration
Learn more:
- Automated Cloudentity Configuration Management
- Exporting, Importing and Patching Cloudentity Tenant/Workspace Configuration
- Cloudentity Configuration Promotion
- Sign-up for an account on
https://cloudentity.com/
- Create 2 tenants, one for higher environment (production) and one for lower environment (development)
- Create a workspace in production tenant
- Create 2 clients in system workspace that will be used for migration, one for each tenant. Clients should have configured
manage_configuration
scope.
- Clone this repository.
- Set Github variables for your Github repository, i.e:
CLOUDENTITY_PROD_MIGRATIONDEV_SYSTEM_CID=client_id
CLOUDENTITY_PROD_MIGRATIONDEV_SYSTEM_CS=client_secret
CLOUDENTITY_PROD_MIGRATIONDEV_URL=devtenant.us.authz.cloudentity.io
CLOUDENTITY_PROD_MIGRATIONDEV_TENANT=devtenant
CLOUDENTITY_PROD_MIGRATIONDEV_WORKSPACE=devworkspace
CLOUDENTITY_PROD_MIGRATIONPROD_SYSTEM_CID=client_id
CLOUDENTITY_PROD_MIGRATIONPROD_SYSTEM_CS=client_secret
CLOUDENTITY_PROD_MIGRATIONPROD_URL=prodtenant.us.authz.cloudentity.io
CLOUDENTITY_PROD_MIGRATIONPROD_TENANT=prodtenant
CLOUDENTITY_PROD_MIGRATIONPROD_WORKSPACE=prodworkspace
- Run
create PR - patch prod compare dev to dev
Github action to create PR with patch of configuration from 2 recent dumps of dev workspace. - Review and merge PR.
- Run
push config - patch prod compare dev to dev
to apply changes to prod workspace.