Wallet config file is saved with default permissions
Maintainer thường phản hồi trong vòng 3 ngày
@tvpeter đang làm issue này rồi.
Từ ngày 21/9/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
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:
- Ngôn ngữ chính
- Rust
- Star
- 143
- Fork
- 98
- Merge trung bình
- 5 ngày 21 giờ
- Pull request đã merge (30 ngày)
- 4
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của bitcoindevkit/bdk-cli
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
bitcoindevkit/bdk-cli#332 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
bitcoindevkit/bdk-cli#330 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Crate chacha20 0.10.1 is yankedĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
bitcoindevkit/bdk-cli#318 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 50/100
bitcoindevkit/bdk-cli#340 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Enforce Core-compatible OP_RETURN / datacarrier and standard tx-size limits in create_txCó thể đã có người làm @tvpeter đã nhận 6 ngày trước. Đang mởenhancement
bitcoindevkit/bdk-cli#339 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 3 ngày
Tất cả issue của bitcoindevkit/bdk-cli
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
canonical/opentelemetry-collector-operator#409 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
codegen: memref.collapse_shape in an mlir! block leaves an affine.apply that is never loweredĐang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug CLI exec tool-calls
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày