Allow silencing the keyring-unavailable warning on headless machines
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ó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
Hướng nghiên cứu
Start by locating the code that emits the “system keyring unavailable” warning, then trace how credential-store selection and the --json and --quiet paths handle warnings. Before changing behavior, resolve which requested option is intended; done should cover deliberate file-store selection, appropriate warning behavior for interactive and structured-output runs, and regression coverage.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Context
On a headless Linux server with no Secret Service or keyring, every hey invocation prints:
warning: system keyring unavailable, credentials stored in plaintext at ~/.config/hey-cli/credentials.json
It prints on every call, including --json and --quiet runs. Scripts that capture stdout and stderr together, or that treat any stderr output as a problem, have to filter it out each time, and the line gets into logs and error messages. In our case the real error in a failure report was hidden behind this warning.
The plaintext file fallback is fine for this kind of machine, which runs as a dedicated user with 0600 permissions. The problem is only that the warning can't be turned off.
No account-specific details below.
Ask
- A way to choose the file store deliberately and silence the warning:
hey config set credential_store file, or an env var such asHEY_CREDENTIAL_STORE=file. - With
--json, put the warning in the JSON (for example awarningsarray) instead of writing it to stderr, or print it at most once per machine. - Keep showing it by default for interactive first-time setups, where it's useful.
Related (closed): #352, #453 (keyring behaviour on Linux).
- Ngôn ngữ chính
- Go
- Star
- 412
- Fork
- 52
- Merge trung bình
- 20 giờ 18 phút
- Pull request đã merge (30 ngày)
- 74
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
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 basecamp/hey-cli
-
TUI Calendar: Enter does nothing on a highlighted event (Day/Week), though the help bar shows "enter: open"Có thể đã có người làm @albertreig đã nhận 39 ngày trước. Đang mởCLI Only
Độ khó 2/5 1-3 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
-
CLI Only
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
basecamp/hey-cli#408 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Installer canary failureĐang mởinstaller-canary
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 54/100
basecamp/hey-cli#562 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của basecamp/hey-cli
Issue tương tự
-
triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
wakatime/wakatime-cli#1649 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
PathBuffer.Pop corrupts later error locations when a key contains "." or "["Có thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
danielgtaylor/huma#1135 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
stacklok/toolhive-catalog#1734 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Docs: how to get more careful answers (Effort, reasoning models, Reasoning level, Deliberate)Đang mởdocumentation priority:p1
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
yeixio/toskar-core#697 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
keyxmakerx/Chronicle#1532 ·
Maintainer thường phản hồi trong vòng 1 ngày