"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
rc: document that rc API access is equivalent to shell access
Nick Craig-Wooda37d54b11aae
diff --git a/docs/content/rc.md b/docs/content/rc.mdindex 6caf64065..85b4f9a04 100644--- a/docs/content/rc.md+++ b/docs/content/rc.md@@ -15,6 +15,43 @@ or [use HTTP directly](#api-http).If you just want to run a remote control then see the [rcd](/commands/rclone_rcd/)command.+## Security {#security}++**Access to the rc API is equivalent to shell access as the user running+rclone.** Treat the rc port as you would an interactive login on the host.++Any caller who can reach the API (and pass authentication, if it is enabled)+can, among other things:++- **Run OS commands** as the rclone user. `core/command` re-executes the rclone+ binary with arbitrary arguments, and several backend options shell out to+ programs, so even creating a remote with `config/create` can lead to command+ execution.+- **Read and write any file** reachable by the rclone process, by pointing+ `operations/*` or `sync/*` at a `local` remote (or via `--rc-files` /+ `--rc-serve`). Writing arbitrary files as the rclone user is itself a route to+ code execution.+- **Read back stored credentials.** rclone configs routinely hold cloud-provider+ secrets. `config/dump` and friends expose them, so a compromise of the rc+ reaches every configured backend.+- **Change rclone's runtime behaviour** with `options/set`, **manage remotes**+ with `config/*`, and **stop the process** with `core/quit`.++There is currently no per-endpoint capability or scope system: authentication is+all-or-nothing. Granting any access grants all of the above.++Consequently:++- **Do not bind the rc to a network address you do not control.** The default+ bind is loopback (`localhost:5572`); keep it there unless you have a specific+ reason to change it.+- **Do not use `--rc-no-auth` on a non-loopback bind.** It disables+ authentication on the endpoints that access remotes — see+ [`--rc-no-auth`](#--rc-no-auth).+- **Use authentication and TLS** (`--rc-user`/`--rc-pass` or `--rc-htpasswd`,+ plus `--rc-cert`/`--rc-key`) whenever the port is reachable by anyone you do+ not fully trust, and raise `--rc-min-tls-version`.+## Supported parameters### --rc