dsh-ops-kit 0.4.1 → 0.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -8,7 +8,7 @@
8
8
  **English** | [简体中文](README.zh-CN.md)
9
9
 
10
10
  Server operations from a DeepSeek Harness chat: **34 tools plus a sidebar panel**,
11
- no SDK, and no credentials stored by the plugin.
11
+ no SDK, and no credentials stored by default (key auth).
12
12
 
13
13
  ## Install
14
14
 
@@ -25,7 +25,7 @@ on the servers you manage — the plugin works over SSH.
25
25
  Upgrading: `dsh plugin --profile <profile> add dsh-ops-kit@latest`, or use the
26
26
  plugin market's update button.
27
27
 
28
- no SDK, and no credentials stored by the plugin.
28
+ no SDK, and no credentials stored by default (key auth).
29
29
 
30
30
  🔒 marks an action that needs `confirm: true` — the tool fails closed instead of
31
31
  asking in a second turn.
@@ -98,8 +98,11 @@ asking in a second turn.
98
98
 
99
99
  - **No SDK, no credential storage by default.** Key authentication goes through
100
100
  the system `ssh` client in `BatchMode`, so the plugin never reads your keys.
101
- Password authentication uses the plugin's own `ssh2` client and is the only
102
- case where a secret is stored (see below).
101
+ Password authentication uses the plugin's own `ssh2` client: the password goes
102
+ to the **system keychain** (macOS `security`, Linux `secret-tool`). Only when
103
+ neither exists does it fall back to a 0600 file whose content is base64 —
104
+ obfuscation, not encryption. Passwords also stay off command lines (MySQL
105
+ dumps/restores read them over stdin).
103
106
  - **Password or key.** A host can be added with only IP + user + password; that
104
107
  path needs `ssh2` present in the profile. A host without a stored password
105
108
  uses the system `ssh` client and your keys or agent.
package/README.zh-CN.md CHANGED
@@ -95,7 +95,9 @@ dsh plugin --profile <你的 profile> add dsh-ops-kit
95
95
  ## 设计取向
96
96
 
97
97
  - **无 SDK,默认不存凭据。** 密钥认证走系统 `ssh` 客户端(`BatchMode`),插件完全
98
- 不读你的密钥文件。密码认证走插件自带的 `ssh2` 客户端,也是唯一会落盘密钥的场景。
98
+ 不读你的密钥文件。若用密码认证,密码优先存进**系统钥匙串**(macOS `security`、
99
+ Linux `secret-tool`);两者都没有时才退回 0600 文件,且文件里是 base64 编码,
100
+ 只是混淆不是加密。数据库备份/恢复的密码经 stdin 传入,不出现在命令行。
99
101
  - **密码或密钥皆可。** 只填 IP + 用户名 + 密码就能添加主机;这条路径要求该 profile
100
102
  里已有 `ssh2`。没有存密码的主机则走系统 `ssh` 和你的密钥 / agent。
101
103
  - **清单放在 profile 之外。** 主机信息存在 `$DSH_HOME/ops-kit/hosts.json`