mirror of
https://github.com/jwadow/kiro-gateway.git
synced 2026-04-25 01:15:57 +03:00
[PR #68] feat(auth): add KIRO_CLI_API_REGION env var for kiro-cli API region override #69
Labels
No labels
bug
bug
enhancement
enhancement
fixed
fixed
invalid
needs-info
needs-testing
pull-request
question
upstream
wontfix
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/kiro-gateway-jwadow#69
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jwadow/kiro-gateway/pull/68
Author: @Publicker
Created: 2/6/2026
Status: 🔄 Open
Base:
main← Head:feat/kiro-cli-api-region📝 Commits (1)
776cfb3feat(auth): add KIRO_CLI_API_REGION env var for kiro-cli API region override📊 Changes
3 files changed (+25 additions, -0 deletions)
View changed files
📝
.env.example(+5 -0)📝
kiro/auth.py(+14 -0)📝
kiro/config.py(+6 -0)📄 Description
Summary
Adds support for configuring a separate API region for kiro-cli (AWS SSO OIDC) authentication via the
KIRO_CLI_API_REGIONenvironment variable.Problem
When using kiro-cli credentials (SQLite database), the SSO region (e.g.,
us-east-1) may differ from the API region where the Q service is hosted (e.g.,eu-central-1). This can result in 403 "User is not authorized" errors.Solution
KIRO_CLI_API_REGIONenvironment variable toconfig.pyKIRO_REGIONfor both SSO and API (no behavior change)Usage
Changes
kiro/config.py: AddedKIRO_CLI_API_REGIONconfigkiro/auth.py: Updated_detect_auth_type()to apply region override when set.env.example: Documented the new option🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.