Wallet config file is saved with default permissions
@tvpeter 已经在做这个了。
开始于 2026年9月21日。
评估
这个 Issue 还没有评估数据。
描述
Describe the bug
The app wallet config command saves wallet configuration into config.toml using default directory permissions. As a result, the plaintext keys are readable, allowing any other local user or process on the host to be able to read the content of the file. A user reading it would reasonably expect the file to be user-only similar to bitcoind's cookie and LND macaroons.
To Reproduce
On a system with the common default :
- Generate a key and build a secret descriptor via the documented flow (key generate to xprv/tprv, then descriptor).
- Save a wallet config containing that secret descriptor:
- bdk-cli wallet -w test config -e "wpkh(…/84'/1'/0'/0/)" -i "wpkh(…/84'/1'/0'/1/)"
- Inspect the resulting permissions
Expected behavior
The application should enforce strict, user-only permissions for sensitive key-bearing files, matching standard security practices.
Build environment
- BDK-CLI tag/commit: v4.0.0 5b3cb00
- OS+version: macOS 26.6.2
- Rust/Cargo version: 1.98.1
- Rust/Cargo target:
- 主要语言
- Rust
- 星标
- 142
- 派生
- 99
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
bitcoindevkit/bdk-cli 的其他 Issue
-
enhancement
难度 2/5 1-3 小时 新手友好度 72/100
bitcoindevkit/bdk-cli#332 · 2 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 65/100
bitcoindevkit/bdk-cli#330 ·
-
难度 2/5 1-3 小时 新手友好度 76/100
bitcoindevkit/bdk-cli#318 ·
-
enhancement
难度 3/5 1-2 天 新手友好度 68/100
bitcoindevkit/bdk-cli#333 ·
-
bug
bitcoindevkit/bdk-cli#328 · 已指派 1 人 ·
查看 bitcoindevkit/bdk-cli 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 85/100
-
难度 2/5 1-3 小时 新手友好度 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
难度 2/5 1-3 小时 新手友好度 88/100
-
bug team:backend track:services-maintenance
难度 2/5 1-3 小时 新手友好度 78/100
cowprotocol/services#4950 ·
-
bug
难度 2/5 1-3 小时 新手友好度 68/100
gitbutlerapp/gitbutler#15998 · 1 条评论 ·