How to mask Rclone remote mode credentials

Hello experts,

I am running Rclone in rcd mode, with below command in k8 pod -
rclone rcd --rc-web-gui --rc-web-gui-no-open-browser --rc-addr :5572 --rc-user testuser --rc-pass testpassword --rc-job-expire-duration 60m

When I run ps command in pod it shows this command and so password also.
Is there anyway to pass the password in encrypted way or from environment variable?

Rclone Version : 1.69.0V

Thanks,
Mahendra

what about using a htpasswd file?
You can either use an htpasswd file which can take lots of users, or set a single username and password with the --rc-user and --rc-pass flags.

@asdffdsa - Thanks for the reply.
I could not find any specific env variable name for this purpose in doc.

Hi @hegdemahendra

What about the obscure option?

rclone obscure mypassword

This will render a very long and completely unrecognizable password That rclone will recognize as your password.

Not sure if this is exactly what it was intended for so I can't be sure that it will work but I would give it a try.

export RCLONE_RC_PASS=password
rclone rcd  -vv
DEBUG : Setting --rc-pass "password" from environment variable RCLONE_RC_PASS="password"
DEBUG : rclone: Version "v1.70.2" starting with parameters ["rclone" "rcd" "-vv"]
NOTICE: Serving remote control on http://127.0.0.1:5572/
ps aux | grep rclone
user01   1430194  0.0  1.3 1293952 51872 pts/7   Sl+  09:20   0:00 rclone rcd -vv
1 Like

@asdffdsa - Thank you so much !|
This env variable worked.