Repository navigation
Conversation
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Problem / Motivation
Goal: Let company SSO users in London (
eu-west-2) complete Kiro sign-in when their Kiro profile is served from Frankfurt.Browser approval succeeds, but profile lookup falls back to the US endpoint and sign-in ends with "IdC login has no available Kiro profiles".
Why it matters
Affected users cannot complete Crew-owned sign-in even though the same account works in Kiro CLI.
Not a goal
General profile discovery across arbitrary SSO and Kiro profile regions remains outside this patch.
What changed (motivation → approach → change)
Map
eu-west-2to the Frankfurt control plane, alongside the existingeu-west-1alias. Keep SSO-OIDC requests and the saved Identity Center region in London. Add regression coverage for this split and document the routing.Backwards compatibility
Compatible: existing regional mappings and the fallback for other regions stay unchanged.
Removes nothing: no APIs, settings or sign-in methods are removed.
Tests
Proof: PROVEN test/test_kas_login_service.py::test_poll_idc_resolves_profile_arn[eu-west-2-eu-central-1], test/test_kas_login_service.py::test_control_plane_url_is_the_regional_cps_host (head 25150d7)
Manual verification
An equivalent local app patch was installed and Crew was restarted. Successful browser sign-in after the patch has not yet been confirmed.
Screenshots / video
N/A: no frontend or rendered UI changes.
Related Issues
Part of #28904
Sibling sweep
Swept:
git grep -nE 'CPS_ENDPOINTS|def control_plane_url' -- src/Siblings: none -- the regional endpoint map and resolver have one implementation. The broader cross-region discovery case remains tracked in #28904.
Pattern harvest
Not generalizable: a lint rule cannot infer which Kiro control-plane region serves each Identity Center region.
Checklist
Contribution License Agreement
Contribution under the project's Apache-2.0 license.