we have keycloak to manage authentication for multiple clients for our application, now we want to add blue green deployment for application deployment
To implement Blue/Green in the new environment, we need to define a way to manage KeyCloak
Main problem and description:
– Description
— To implement Blue/Green deployments we need 2 URLs to be always available in the prod environment :
Blue - prod-test
Green - real-prod
When deploying in PROD (real - where clients are actively using the application) we need to switch DNS addresses.
In KeyCloak each Realm and each client has its own endpoints which have a clear dependency to the environment and when switching DNS (this is a necessity in blue/green deployment) we need to change all URLs in KeyCLoak to new ones.
Issue:
Need to determine how to change URL records in KeyCloak as conveniently and quickly as possible, if possible without large time delays.
We can change some URLs in the database directly, but we need to identify all dependencies that may be problematic.
can anyone help me here to sort this problem?