You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Wallet config file is saved with default permissions #331
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.
Activity
Merge bitcoindevkit#334: fix(datadir): enforce strict permissions on …