Feature: Ability to login as one user and run all tasks as another
还没有人认领这个 Issue。
评估
调研方向
首先查看链接的 sshkit-backends-netssh_global backend,并将其实现方式与现有的 SSHKit 测试套件进行比较;issue 说明应遵循该测试套件的风格和方法。完成标准是:核心 SSHKit 能够以一个用户的身份登录,同时以另一个用户的身份运行命令,支持所描述的全局选项,并且无需重新实现现有的 Capistrano tasks。
由索引模型根据 Issue 内容生成。
描述
We've created a backend that allows Capistrano 3 to work with setups that require users to login in as user A, but run all commands as user B.
The backend essentially sets a global owner and all tasks (unless explicitly overridden) will run as this user. There are a few other options that can also be globally configured (this helps get around certain use cases) such as directory and the ability to forward an SSH agent to the owner for certain commands. This means the existing Capistrano tasks do not need to be reimplemented (instead the backend is switched).
While this kind of server setup is not recommended or ideal, when coming across one it's still useful to be able to use Capistrano to deploy.
The code is pretty ugly at the moment, subclassing and overriding a lot of private methods. However, if core sshkit are interested this could easily be cleaned up. The test suite style and methodology has been retained to try and make it as easy as possible to merge into core sshkit.
Does this look like a feature that you would be interested in merging into core? If so I can raise a PR.
- 主要语言
- Ruby
- 星标
- 1.2k
- 派生
- 257
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
capistrano/sshkit 的其他 Issue
-
难度 5/5 一周以上 新手友好度 35/100
capistrano/sshkit#563 · 6 个 reaction ·
-
难度 2/5 1-3 小时 新手友好度 45/100
capistrano/sshkit#562 ·
-
难度 3/5 1-2 天 新手友好度 48/100
capistrano/sshkit#554 · 3 条评论 ·
-
难度 3/5 1-2 天 新手友好度 35/100
capistrano/sshkit#543 · 2 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 45/100
capistrano/sshkit#518 · 1 条评论 ·
查看 capistrano/sshkit 的全部 Issue
相似的 Issue
-
security
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
solana-foundation/pay-kit#341 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
julienXX/terminal-notifier#333 ·
-
难度 1/5 1 小时以内 新手友好度 82/100
serhii-londar/open-source-mac-os-apps#1419 ·
维护者通常 5 天内回复