#9957·rclone

gui: don't print the RC password in the "GUI available at" log line when it was supplied

Author: rubennatiCreated Sep 21, 2026Updated Sep 21, 2026
Labelsenhancement

Before you start

  • I have searched the forum and the existing issues and this hasn't already been requested.
  • I have checked the latest beta and this feature doesn't already exist.

Associated forum post URL

No response

rclone version

rclone v1.75.1

  • os/version: alpine 3.24.1 (64 bit)
  • os/kernel: 6.8.0-117-generic (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.27.1
  • go/linking: static
  • go/tags: none

What problem are you trying to solve?

I run rclone gui --no-open-browser in a container on a server, behind a reverse proxy. On every start it logs the login URL at NOTICE level, and the URL carries the RC password:

bash
$ docker run --rm -e RCLONE_RC_USER=admin -e RCLONE_RC_PASS=example-password \
    rclone/rclone:1.75.1 gui --no-open-browser --addr 0.0.0.0:5522 --api-addr 0.0.0.0:5533
NOTICE: Serving remote control on http://[::]:5533/
NOTICE: Serving GUI version 1.1.11 on http://[::]:5522/
NOTICE: GUI available at http://[::]:5522/login?pass=example-password&url=http%3A%2F%2F%5B%3A%3A%5D%3A5533%2F&user=admin

When the password was supplied — with --pass or RCLONE_RC_PASS — the operator already knows it, and the log line only copies it into container logs, the journal and whatever collects them. The RC API behind that password reads every configured remote, credentials included.

With --rc-htpasswd the password never reaches rclone at all, but gui still generates a user gui and a random password and prints them in the same line. The RC server rejects those — it checks the htpasswd file — so the printed link does not work either:

$ rclone gui --no-open-browser --addr 0.0.0.0:5522 --api-addr 0.0.0.0:5533 --rc-htpasswd /run/secrets/htpasswd
NOTICE: GUI available at http://[::]:5522/login?pass=<random>&url=...&user=gui
# the RC API answers 401 to gui:<random>, 200 to the htpasswd user

That second part is the situation #4839 described for rcd --rc-web-gui in 2020, closed in 2022 with efd3c64; the new gui command has the same pattern again.

In the code (v1.75.1, unchanged on master):

  • cmd/gui/gui.go L163–L174 fill in the default user and a random password whenever none was given, without checking --rc-htpasswd
  • L209–L211 build the login URL with pass and log it with fs.Logf

How do you think rclone should be changed to solve that?

  1. When the password was supplied (--pass, RCLONE_RC_PASS), log the login URL without pass — keep url and user, which is what the GUI needs to find the RC server (#9605). The user types the password they chose.
  2. When --rc-htpasswd is set, don't generate default credentials, and log the URL with url only — the same outcome as #4839 for rcd --rc-web-gui.
  3. Keep today's behaviour when rclone generated the password itself: there the printed link is the only way to learn it.

--log-level ERROR avoids the line today, but it also removes every other NOTICE, which is a lot to give up for one field.

Getting involved

  • I'm willing to help implement, test or fund this feature.