1
0
mirror of https://github.com/rclone/rclone.git synced 2025-01-13 20:38:12 +02:00
rclone/fs
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
..
accounting accounting: fix race condition in tests 2020-04-24 12:32:09 +01:00
asyncreader asyncreader: make ErrorStreamAbandoned public 2020-04-19 15:18:49 +01:00
cache fs/cache: Add Pin and Unpin and canonicalised lookup 2020-05-01 17:11:45 +01:00
chunkedreader chunkedreader: disable hash calculation for first segment 2019-11-11 16:20:27 +00:00
config cmd: when running --password-command allow use of stdin 2020-05-07 11:02:52 +01:00
dirtree build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
driveletter
filter filter: Added --files-from-raw flag 2020-04-03 10:36:24 +01:00
fserrors fserrors: Make a new NoLowLevelRetry error and don't retry them #3777 2019-12-06 10:54:03 +00:00
fshttp fs: add --header flag to add options to every HTTP transaction #59 2020-04-23 15:24:21 +01:00
fspath config: check config names more carefully and report errors - fixes #3506 2019-09-06 12:07:09 +01:00
hash hash: fix hash names for DropboxHash and CRC-32 2019-10-30 12:20:10 +00:00
list build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
log fs/log: add support for syslog LOCAL facilities - fixes #4061 2020-03-13 21:44:52 +00:00
march sync: add --no-check-dest flag - fixes #3616 2019-12-29 16:47:57 +00:00
object Remove backend dependency from fs/hash 2019-10-01 16:29:58 +01:00
operations lsjson: Add --hash-type parameter and use it in lsf to speed up hashing 2020-04-29 16:09:45 +01:00
rc rcd: disable duplicate log 2020-05-05 13:47:25 +00:00
sync sync: make --track-renames tests only check rename count if expecting renames 2020-03-31 10:58:49 +01:00
version build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
walk Fix error counter - fixes #3650 2019-11-18 14:13:02 +00:00
bwtimetable_test.go
bwtimetable.go
config_list_test.go
config_list.go
config.go fs: add --header flag to add options to every HTTP transaction #59 2020-04-23 15:24:21 +01:00
cutoffmode_test.go fs: Use --cutoff-mode hard,soft,catious instead of 3 --max-transfer-mode flags 2020-03-01 09:49:55 +00:00
cutoffmode.go fs: Use --cutoff-mode hard,soft,catious instead of 3 --max-transfer-mode flags 2020-03-01 09:49:55 +00:00
deletemode.go
dir.go
direntries_test.go build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
direntries.go
dump_test.go
dump.go
fs_test.go fs: Make prefix free backend config read prefix free env var also 2019-09-14 18:26:07 +01:00
fs.go fs: add ConfigString function to return a canonical config string 2020-05-01 17:11:45 +01:00
log_test.go
log.go fs: generalise machinery for putting extra values when using --use-json-log 2020-04-11 18:16:21 +01:00
mimetype.go
options_test.go fs: fix FixRangeOption so it doesn't add HTTPOptions in place of bad Ranges 2020-04-24 12:32:09 +01:00
options.go fs: fix FixRangeOption so it doesn't add HTTPOptions in place of bad Ranges 2020-04-24 12:32:09 +01:00
parseduration_test.go fs: Higher units for ETA - fixes #3221 2019-07-01 12:09:19 +01:00
parseduration.go fs: Higher units for ETA - fixes #3221 2019-07-01 12:09:19 +01:00
sizesuffix_test.go
sizesuffix.go
version.go Start v1.51.0-DEV development 2020-02-01 12:32:21 +00:00
versioncheck.go build: update to use go1.14 for the build 2020-02-26 21:26:47 +00:00