lyft / lyft/python-blessclient
Dont add to ssh-agent unless specified
还没有人认领这个 Issue。
- 主要语言
- Python
- 星标
- 117
- 派生
- 31
- PR 合并指标
- 30 天内没有已合并 PR
描述
I would suggest implementing a parameter that allows stopping bless from adding the Identity file to `ssh-agent`.
Namely this lines: https://github.com/lyft/python-blessclient/blob/master/blessclient/client.py#L594-L597
Given a config like:
```
Match exec "env | grep -q BLESS_COMPLETE || /Users/stype/blessclient/blessclient.run --gui --host '%h'"
IdentityFile ~/.ssh/blessid
```
this is not required and could interfere with other credentials.
I think this is required when doing a wrapper around the `ssh` command but in that case its easy to toggle on in the script.
If this is accepted I can create a PR to cleanup/implement this.
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 blessclient/client.py 的第 594-597 行开始,跟踪客户端选项如何传递给 SSH-agent 处理逻辑。添加一个用于禁用添加 Identity 文件的参数,同时默认保留现有行为;当 wrapper 用例可以选择不添加该文件且不影响其他凭据时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- authentication, security
- Issue 类型
- 功能
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100