Skip to content

Commit 2e5662d

Browse files
author
Simon Goldberg
committed
clarify credential rotation
1 parent a9c2482 commit 2e5662d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/bitcoin-core/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ This will update the value of your credentials in Secrets Manager.
269269

270270
**Replacing the Credentials and Restarting the Node to Apply Updates**
271271

272-
- Replace the old `rpcauth` value from the `bitcoin.conf` file with the new one. Make sure that you change the placeholder value for `[new rpcauth string with escape char]`:
272+
- Replace the old `rpcauth` value from the `bitcoin.conf` file with the new one. Make sure that you change the placeholder value for `[new rpcauth string with escape char]` (this is printed to the terminal after running the `generateRPCAuth` script):
273273

274274
```
275275
sudo docker exec -it bitcoind sh -c "sed -i 's/^rpcauth=.*/rpcauth=[new rpcauth string with escape char]/' /root/.bitcoin/bitcoin.conf"

lib/bitcoin-core/generateRPCAuth.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ async function storeCredentialsInAWS(username, password) {
7373
async function genRpcAuthStr(username, password, salt) {
7474
const rpcauth = genRpcAuth(username, password, salt);
7575
const str = `rpcauth=${rpcauth.username}:${rpcauth.salt}$${rpcauth.hash}`;
76-
const strEscapeCharacter = `rpcauth=${rpcauth.username}:${rpcauth.salt}\\$${rpcauth.hash}`;
76+
const strEscapeCharacter = `${rpcauth.username}:${rpcauth.salt}\\$${rpcauth.hash}`;
7777
console.log(`Username: ${rpcauth.username}`);
7878
console.log("Password generated securely and stored in Secrets Manager");
7979
console.log(`rpcauth string with escape character: ${strEscapeCharacter}`); // Print the rpcauth string

0 commit comments

Comments
 (0)