Wallet config file is saved with default permissions
メンテナーはふだん 3 日以内に返信
@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
- スター
- 143
- フォーク
- 98
- 平均マージ
- 6日 8時間
- マージ済み PR(30日)
- 6
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
bitcoindevkit/bdk-cli のほかの issue
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
bitcoindevkit/bdk-cli#332 · コメント 2 件 ·
メンテナーはふだん 3 日以内に返信
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 50/100
bitcoindevkit/bdk-cli#340 · コメント 1 件 ·
メンテナーはふだん 3 日以内に返信
-
Enforce Core-compatible OP_RETURN / datacarrier and standard tx-size limits in create_tx対応中かも @tvpeter が 8 日前に担当しました。 オープンenhancement
bitcoindevkit/bdk-cli#339 · 担当者 1 名 ·
メンテナーはふだん 3 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
bitcoindevkit/bdk-cli#338 ·
メンテナーはふだん 3 日以内に返信
-
enhancement
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
bitcoindevkit/bdk-cli#333 ·
メンテナーはふだん 3 日以内に返信
bitcoindevkit/bdk-cli の issue をすべて見る
似ている issue
-
contribution
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
tree-sitter/tree-sitter#6005 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
-
defect
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
-
agent:triaged bug bughunt pm:pipenv priority:p1
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
SocketDev/socket-patch#744 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信