rclone/fs/config
Sébastien Gross 395f259978
cmd: when running --password-command allow use of stdin
Bind rclone standard input to password command's standard input. This
allows to provide password from a pipe and collect it using cat.

The typical use case is when rclone is on a remote server with an
encrypted configuration. This solved the environment variable
issue (#3368) and the password storage on remote host.

Now the following chain is allowed:

    echo 'secret' | ssh host.example.com \
       sudo -u rclone \
       rclone --config /path/to/rclone.conf \
       --password-command 'cat' ls remote:

Signed-off-by: Sébastien Gross <seb•ɑƬ•chezwam•ɖɵʈ•org>

Co-authored-by: Sébastien Gross <seb•ɑƬ•chezwam•ɖɵʈ•org>
2020-05-07 11:02:52 +01:00
..
configflags fs: add --header flag to add options to every HTTP transaction #59 2020-04-23 15:24:21 +01:00
configmap all: fix go-critic linter suggestions 2018-08-06 21:14:03 +01:00
configstruct build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
flags cmd: fix environment variables not setting command line flags 2019-10-14 17:02:09 +01:00
obscure Add tests for reveal functions 2018-08-07 20:51:50 +01:00
testdata Break the fs package up into smaller parts. 2018-01-15 17:51:14 +00:00
config_other.go Break the fs package up into smaller parts. 2018-01-15 17:51:14 +00:00
config_read_password_unsupported.go Break the fs package up into smaller parts. 2018-01-15 17:51:14 +00:00
config_read_password.go config: fix error reading password from piped input - fixes #1308 2018-06-28 11:54:15 +01:00
config_test.go config: use SpaceSepList for argument to --password-command 2020-01-23 15:39:15 +00:00
config_unix.go build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
config.go cmd: when running --password-command allow use of stdin 2020-05-07 11:02:52 +01:00
rc_test.go backend: adjust backends to have encoding parameter 2020-01-16 14:40:36 +00:00
rc.go rc: fix formatting of docs 2019-10-27 10:43:40 +00:00