-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge #229: Improve bitcoind RPC user config
9b6a3ec generate-secrets: extract fn 'makeHMAC' (Erik Arvstedt) ca18ffb generate-secrets: fetch rpcauth.py from github (Erik Arvstedt) 4d6127b bitcoind: clarify RPC whitelist test (Erik Arvstedt) 9d61099 bitcoind: remove custom rpc user names (Erik Arvstedt) 1408403 bitcoind: clarify how bitcoin-cli RPC access is enabled (Erik Arvstedt) 4790c60 bitcoind: move rpc user config to bitcoind (Erik Arvstedt) 876cfad bitcoind: add rpc user option 'passwordHMACFromFile' (Erik Arvstedt) 59434e7 bitcoind: simplify default rpc user name config (Erik Arvstedt) 205829b bitcoind: remove whitespace (Erik Arvstedt) Pull request description: ACKs for top commit: nixbitcoin: ACK 9b6a3ec jonasnick: concept ACK 9b6a3ec Tree-SHA512: ccb9a8d2dc1f360cc1f0bd77535fa8edfd9afec0a519719103fd059d5912a1ed4960c22ef14df616a731f6a88861fecb8d1653fb71c2288b851e4a02f9f49cb2
- Loading branch information
Showing
7 changed files
with
120 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# RPC calls that are safe for public use | ||
[ | ||
"echo" | ||
"getinfo" | ||
# Blockchain | ||
"getbestblockhash" | ||
"getblock" | ||
"getblockchaininfo" | ||
"getblockcount" | ||
"getblockfilter" | ||
"getblockhash" | ||
"getblockheader" | ||
"getblockstats" | ||
"getchaintips" | ||
"getchaintxstats" | ||
"getdifficulty" | ||
"getmempoolancestors" | ||
"getmempooldescendants" | ||
"getmempoolentry" | ||
"getmempoolinfo" | ||
"getrawmempool" | ||
"gettxout" | ||
"gettxoutproof" | ||
"gettxoutsetinfo" | ||
"scantxoutset" | ||
"verifytxoutproof" | ||
# Mining | ||
"getblocktemplate" | ||
"getmininginfo" | ||
"getnetworkhashps" | ||
# Network | ||
"getnetworkinfo" | ||
# Rawtransactions | ||
"analyzepsbt" | ||
"combinepsbt" | ||
"combinerawtransaction" | ||
"converttopsbt" | ||
"createpsbt" | ||
"createrawtransaction" | ||
"decodepsbt" | ||
"decoderawtransaction" | ||
"decodescript" | ||
"finalizepsbt" | ||
"fundrawtransaction" | ||
"getrawtransaction" | ||
"joinpsbts" | ||
"sendrawtransaction" | ||
"signrawtransactionwithkey" | ||
"testmempoolaccept" | ||
"utxoupdatepsbt" | ||
# Util | ||
"createmultisig" | ||
"deriveaddresses" | ||
"estimatesmartfee" | ||
"getdescriptorinfo" | ||
"signmessagewithprivkey" | ||
"validateaddress" | ||
"verifymessage" | ||
# Zmq | ||
"getzmqnotifications" | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,15 @@ | ||
{ pkgs }: with pkgs; | ||
|
||
let | ||
rpcauth = pkgs.writeScriptBin "rpcauth" (builtins.readFile ./rpcauth/rpcauth.py); | ||
rpcauthSrc = builtins.fetchurl { | ||
url = "https://raw.githubusercontent.com/bitcoin/bitcoin/d6cde007db9d3e6ee93bd98a9bbfdce9bfa9b15b/share/rpcauth/rpcauth.py"; | ||
sha256 = "189mpplam6yzizssrgiyv70c9899ggh8cac76j4n7v0xqzfip07n"; | ||
}; | ||
rpcauth = pkgs.writeScriptBin "rpcauth" '' | ||
exec ${pkgs.python35}/bin/python ${rpcauthSrc} "$@" | ||
''; | ||
in | ||
writeScript "generate-secrets" '' | ||
export PATH=${lib.makeBinPath [ coreutils apg openssl gnugrep rpcauth python35 ]} | ||
export PATH=${lib.makeBinPath [ coreutils apg openssl gnugrep rpcauth ]} | ||
. ${./generate-secrets.sh} ${./openssl.cnf} | ||
'' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters