feat(stage): auth host -> auth.stage.berget.ai (issuer migration) - #38
Merged
Merged
Conversation
Stage flip of the plugin's authorize + token-exchange host. Must ship together with the api stage-overlay flip (KEYCLOAK_URL=auth.stage): dynamic hostname pairs mint-host with refresh-host, so client and api must agree — otherwise refreshes 401 in a loop. Prod flip (keycloak.berget.ai -> auth.berget.ai) ships separately with user communication (one /connect per user on update).
Same follow-up to incident 2026-09-10-0 as the stage flip in the preceding commit: the Keycloak cutover moved token issuance to auth.berget.ai, so PKCE login must discover the new issuer (openid-client strict-iss validation) . Token refresh already goes through api /v1/auth/refresh which has issuer-routing (api #453).
Contributor
Author
|
Lagt till prod-flippet (getKeycloakUrl → |
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.
Summary
Stage-flip av pluginens auth-host:
getKeycloakUrl()→https://auth.stage.berget.ai(authorize + PKCE token-exchange).Varför nödvändig: med Keycloak 26.6:s dynamiska hostname gäller "mint-host == refresh-host" per token. api (stage-overlay) flippar till auth.stage i samma veva — om pluginen fortfarande exemplar via keycloak.stage mintas tokens med fel iss och varje refresh 401:ar i loop. Befintliga sessioner 401:ar en gång →
/connect→ ny session med auth-iss → allt fungerar.Prod-flip (
keycloak.berget.ai→auth.berget.ai) levereras separat med användarkommunikation (en/connectper användare vid uppdateringen).Test plan
/connect→ login på auth.stage → tokens mintas med auth-iss/connectåterställer