feat(keycloak): redirect to keycloak instance depending on hostname #2625
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
We're taking Kenneth's good work, making it work for more domains, and trying to get it into
masterso it doesn't have to get deployed separately.Changes
redirects to the correct keycloak instance for a given hostname (see the logic diagrams on the enterprise wiki for Keycloak Redirect Logic as of October 8th 2025)
changes

checkLoginIframeto false due to CORS issues now related to trying to access an iframe from another domain...... and probably future problems with it as cookies get more locked down based on some of my digging through keycloak docs and issues. Take a look at issue 23872 on the keycloak repo (avoiding a direct link to the issue so we're not linked into it) for more info on browser incompatibilities.
There are some downsides to not having it, particularly if someone logs off in another tab then it might not auto-detect the log out. Having said that, Kenneth's PR that implements it has been on hmda beta side for almost a year without complaints. I still made an issue to follow up and investigate re-enabling it or ameliorating any issues, if we feel like we need to down the line.
Testing
Local
Dev
Dev Beta
Prod Beta
Prod
(will wait till release)
Alto environments
(will need to wait to see on those)
Notes
update prod-beta-config.jsonlike Kenneth did, because those changes were already merged into master earlier.