Allow silencing the keyring-unavailable warning on headless machines
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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).
- 主要语言
- Go
- 星标
- 414
- 派生
- 53
- 平均合并
- 1 天 5 小时
- 30 天内合并 PR
- 78
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
basecamp/hey-cli 的其他 Issue
-
TUI Calendar: Enter does nothing on a highlighted event (Day/Week), though the help bar shows "enter: open"可能已有人在做 @albertreig 于 43 天前认领。 未关闭CLI Only
难度 2/5 1-3 小时 新手友好度 90/100
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 50/100
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 65/100
维护者通常 1 天内回复
-
Timed events show on their UTC day, not their local day, west of UTC可能已有人在做 @armada877 于 9 天前认领。 未关闭
难度 1/5 1 小时以内 新手友好度 10/100
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 48/100
维护者通常 1 天内回复
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
Mend: dependency security vulnerability
难度 2/5 1-3 小时 新手友好度 72/100
kube-tarian/sigrun#202 ·
-
good first issue help wanted
难度 2/5 1-3 小时 新手友好度 82/100
eugenioenko/ttt#1085 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
fullsend-ai/fullsend#8688 · 1 条评论 ·
维护者通常 1 天内回复
-
question raised-by:verifier
难度 2/5 1-3 小时 新手友好度 72/100
medici-finance/assay#4013 ·
维护者通常 1 天内回复