Skip to content

cmd/config: option to read password from external command #2346

Closed as not planned

Description

@devurandom

What is the problem you are having with rclone?

When setting up a new WebDAV remote, I am being asked:

Password.
y) Yes type in my own password
g) Generate random password
n) No leave this optional password blank

I would like an option to "read password from external command". That would allow me to specify pass my-web-server as the external command and have rclone retrieve the password from pass.

What is your rclone version (eg output from rclone -V)

rclone v1.41
- os/arch: linux/amd64
- go version: go1.10.1

Which OS you are using and how many bits (eg Windows 7, 64 bit)

Linux 4.16 x86_64

Which cloud storage system are you using? (eg Google Drive)

WebDAV / NextCloud

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone config

A log from the command with the -vv flag (eg output from rclone -vv copy /tmp remote:tmp)

For an excerpt see above.

Activity

  1. changed the title [-]WebDAV: Support for reading password from external command[/-] [+]Support for reading password from external command[/+] on Jun 10, 2018
  2. ncw commented on Jun 10, 2018

    @ncw
    Member

    Interesting idea...

    What you could do is set an environment variable for the password. Let's say your webdav remote is called `mywebdav".

    You can set the password in the environment something like this...

    export RCLONE_CONFIG_MYWEBDAV_PASS=$(rclone obscure $(pass my-web-server))

  3. added this to the Help Wanted milestone on Jun 10, 2018
  4. changed the title [-]Support for reading password from external command[/-] [+]cmd/config: option to read password from external command[/+] on Mar 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions