HomePhabricator

rpc: Implement random-cookie based authentication
71cbeaad9a92Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

rpc: Implement random-cookie based authentication

When no -rpcpassword is specified, use a special 'cookie' file for
authentication. This file is generated with random content when the
daemon starts, and deleted when it exits. Read access to this file
controls who can access through RPC. By default this file is stored in
the data directory but it be overriden with -rpccookiefile.

This is similar to Tor CookieAuthentication: see
https://www.torproject.org/docs/tor-manual.html.en

Alternative to #6258. Like that pull, this allows running bitcoind
without any manual configuration. However, daemons should ideally never write to
their configuration files, so I prefer this solution.

Details

Provenance
Wladimir J. van der Laan <laanwj@gmail.com>Authored on Jul 7 2015, 12:53
deadalnixPushed on May 14 2017, 22:04
Parents
rABC3d9362d5ac1e: Merge pull request #6398
Branches
Unknown
Tags
Unknown

Event Timeline

Wladimir J. van der Laan <laanwj@gmail.com> committed rABC71cbeaad9a92: rpc: Implement random-cookie based authentication (authored by Wladimir J. van der Laan <laanwj@gmail.com>).Jul 13 2015, 11:11