Repository navigation
Closed as not planned
Closed as not planned
Copy link
Labels
Description
Fix the Kiro allow-list before touching anything else — it's the confirmed cause
audit-diff between a failed and a passing Kiro run proves the firewall is denying two domains kiro-cli calls on every run; the auth harness also has no fallback for the AWF entrypoint's secret-renaming behavior. Both are one-sentence, low-risk config fixes.
Affected workflows / runs
- Smoke Kiro
Execute Kiro CLI: 30975982770, 30974811087 (failed) vs 30977137021 (passed, but with the same domains denied) - Smoke Cursor
Execute Cursor Agent CLI: 30974539538, 30969707220 (failed) vs 30975573886 (passed)
Probable root cause
- Stale network allow-list.
shared/kiro.md'snetwork.defaultslistscodewhisperer.us-east-1.amazonaws.com,cognito-identity.us-east-1.amazonaws.com,prod.us-east-1.telemetry.kiro.aws.dev,prod.assets.shortbread.aws.dev, and wildcard*.kiro.dev. It's missingq.us-east-1.amazonaws.comandclient-telemetry.us-east-1.amazonaws.com.audit-diff(base=30974811087, compare=30977137021) shows:Even the passing run had 42+36 denied calls to these two domains — kiro-cli tolerates some of this, but it's plausible the auth-relevant call among them is what fails intermittently.{"domain":"q.us-east-1.amazonaws.com:443","status":"new","is_anomaly":true,"run2_blocked":42,"run2_status":"denied"} {"domain":"client-telemetry.us-east-1.amazonaws.com:443","status":"volume_changed","run1_blocked":2,"run2_blocked":36,"volume_change":"+1700%"} - No secret-rename fallback. The AWF firewall entrypoint logs
Unsetting sensitive tokens from parent shell environment...and renamesKIRO_API_KEY→SECRET_KIRO_API_KEY,CURSOR_API_KEY→SECRET_CURSOR_API_KEYbefore the harness-script runs. Neithershared/kiro.mdnorshared/cursor.md's harness-script reads theSECRET_-prefixed fallback name — both useprocess.env.KIRO_API_KEY/process.env.CURSOR_API_KEYdirectly (shared/kiro.mdline ~138,shared/cursor.mdequivalent). When the primary auth path fails (e.g. due to rejig docs #1), kiro-cli falls back to interactive device-flow login and fails witherror: Failed to open URL; cursor-agent fails withError: Authentication required... or set CURSOR_API_KEY environment variable.
Proposed remediation
- Add
q.us-east-1.amazonaws.comandclient-telemetry.us-east-1.amazonaws.comtonetwork.defaultsinshared/kiro.md. - In
shared/kiro.md's harness-script, change the model/auth read to fall back:process.env.KIRO_API_KEY || process.env.SECRET_KIRO_API_KEY. Apply the equivalent fallback forCURSOR_API_KEY/SECRET_CURSOR_API_KEYinshared/cursor.md. - Re-run
gh aw compileto regeneratesmoke-kiro.lock.yml/smoke-cursor.lock.yml.
Success criteria / verification
- 10 consecutive Smoke Kiro and Smoke Cursor runs with zero
Execute {Kiro,Cursor} CLIfailures. audit-diffagainst a fresh run shows zerodeniedentries forq.us-east-1.amazonaws.comandclient-telemetry.us-east-1.amazonaws.com.
Related to [aw-failures] [aw] Failure Investigator Report — 2026-08-05 (6h) #50518
Generated by 🔍 [aw] Failure Investigator (6h) · agent · 259.3 AIC · ⌖ 40.8 AIC · ⊞ 5.2K · ◷
- expires on Aug 11, 2026, 11:58 PM UTC-08:00
Activity
github-actions commentedon Aug 5, 2026
🍪 Issue Monster selected this for Copilot
I identified this issue as a good candidate for automated resolution and requested assignment to the Copilot coding agent.
If assignment succeeds, the Copilot coding agent will analyze the issue and create a pull request with the fix.
Om nom nom! 🍪