fix(cli): improve error message when edge-auth flow times out on non-Cloudflare deployments
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 1/5
- Tempo stimato
- Meno di un'ora
- Idoneità per principianti
- 78/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Tranquilla
- Stack tecnologico
- rust
- Ambito
- authentication, cli
Direzione di ricerca
Leggi crates/openshell-cli/src/auth.rs:158-168, dove viene restituito il messaggio di timeout, e esamina la chiamata a browser_auth_flow() in crates/openshell-cli/src/run.rs:1162-1195 per il contesto. Sostituisci le indicazioni generiche per riprovare con alternative che usano Cloudflare Access, OIDC e --local. Il lavoro è completato quando l'output del timeout fornisce comandi utilizzabili per effettuare nuovamente la registrazione nei deployment non basati su Cloudflare.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Agent Diagnostic
- Explored
crates/openshell-cli/src/auth.rs:158-168— the timeout handler returns a generic message: "authentication timed out after 120 seconds. Try again with: openshell gateway login". - Explored
crates/openshell-cli/src/run.rs:1162-1195—browser_auth_flow()is called for any HTTPS gateway without--oidc-issueror--local. There is no detection of whether the flow failed because Cloudflare is missing vs. a transient error. - Verified by deploying on OpenShift without Cloudflare: the timeout message gives no indication that OIDC or
--localwould work. Re-runninggateway loginproduces the same timeout.
Description
When the Cloudflare Access edge-auth flow times out (no CF_Authorization cookie arrives after 120 seconds), the CLI displays:
⚠ Authentication skipped: authentication timed out after 120 seconds.
Try again with: openshell gateway login
This message is unhelpful because re-running gateway login produces the same result. The user has no indication that the flow requires Cloudflare Access, or that --oidc-issuer is the correct alternative for non-Cloudflare deployments.
Reproduction Steps
- Deploy the gateway on any Kubernetes cluster without Cloudflare Access
- Run
openshell gateway add https://<endpoint> --gateway-insecure - Press Enter to open the browser
- Wait 120 seconds
Expected: The timeout message suggests alternatives (OIDC, --local).
Actual:
⚠ Authentication skipped: authentication timed out after 120 seconds.
Try again with: openshell gateway login
Environment
- OS: macOS 15.x (Apple Silicon)
- OpenShift: ROSA HCP 4.21 (Kubernetes 1.34.2)
- OpenShell: CLI v0.0.45
Proposed Fix
Replace the timeout message at crates/openshell-cli/src/auth.rs:163-166 with actionable guidance:
⚠ Authentication timed out. The browser-based login requires a Cloudflare Access
proxy in front of the gateway.
If your gateway uses OIDC authentication, re-register with:
openshell gateway add <endpoint> --oidc-issuer <issuer-url>
If your gateway allows unauthenticated access, re-register with:
openshell gateway add <endpoint> --local
Related
- #2057 — root issue documenting the Cloudflare edge-auth default behavior
- #2098 — auto-detect OIDC from gateway metadata (longer-term fix)
- I pointed my agent at the repo and had it investigate this issue
- I loaded relevant skills (e.g.,
debug-openshell-cluster,debug-inference,openshell-cli) - My agent could not resolve this — the diagnostic above explains why
- Lingua principale
- Rust
- Stelle
- 8.7k
- Fork
- 1.3k
- Merge medio
- 2g 7h
- PR unite (30g)
- 243
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di NVIDIA/OpenShell
-
area:docs
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
-
state:triage-needed
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
-
area:cli state:validated
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
state:triage-needed
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
-
area:build spike state:review-ready state:stale
Difficoltà 2/5 Mezza giornata Idoneità per principianti 68/100
Tutte le issue di NVIDIA/OpenShell
Issue simili
-
risk:low runtime status:in-progress type:test
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
zeroclaw-labs/zeroclaw#11023 ·
-
good first issue refactor
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
EricSpencer00/Resilient#4835 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
bisq-network/bisq-musig#204 ·
-
agent:ready documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
cesarferreira/stax#890 ·