The problem with tokens getting out of sync between rclone (docker plugins) instances can be solved by synching rclone.conf across nodes.
possible ways:
- systemd .path units + rsync
- inotify cli + rsync
- syncthing
- etc
future idea:
rclone rest api has got an endpoint to update rclone.conf section values. why not use it?
we can run every involved rclone instance with --rcd flag and note its ip and port. we just need a new command-line flag --config-to http://ip1:port1,http://apiuser:apipass@ip2:port2,...
.
Every time rclone config system detects a config value change, it will spawn a concurrent goroutine to send rclone api requests spreading the change (obeying --timeout and --contimeout).
@ncw do you like the idea?