fix(cli): improve error message when edge-auth flow times out on non-Cloudflare deployments
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 1/5
- Thời gian dự kiến
- Dưới một giờ
- Mức phù hợp với người mới
- 78/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- rust
- Lĩnh vực
- authentication, cli
Hướng nghiên cứu
Đọc crates/openshell-cli/src/auth.rs:158-168, nơi thông báo timeout được trả về, và xem xét lệnh gọi browser_auth_flow() trong crates/openshell-cli/src/run.rs:1162-1195 để hiểu ngữ cảnh. Thay thế hướng dẫn thử lại chung chung bằng các lựa chọn Cloudflare Access, OIDC và --local. Hoàn thành khi đầu ra timeout cung cấp các lệnh có thể thực thi để đăng ký lại cho các deployment không sử dụng Cloudflare.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- Rust
- Star
- 8.7k
- Fork
- 1.3k
- Merge trung bình
- 1 ngày 21 giờ
- Pull request đã merge (30 ngày)
- 305
Chuẩn bị môi trường
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của NVIDIA/OpenShell
-
area:docs
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
state:triage-needed
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
NVIDIA/OpenShell#3400 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:cli state:validated
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
NVIDIA/OpenShell#2888 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
state:triage-needed
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area:build spike state:review-ready state:stale
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 68/100
NVIDIA/OpenShell#2401 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của NVIDIA/OpenShell
Issue tương tự
-
`sysknife history --help` says --since takes ISO-8601, and the parser refuses offsets and bare datesĐang mởbug easy good first issue help wanted
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 94/100
lacs-project/sysknife#519 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
-
area:breg bug criticality:p3 triage:needs-implementation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
registrystack/registry-stack#1699 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 84/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
lbjlaq/Antigravity-Manager#3539 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày