Encrypt remote as it is being read

What is the problem you are having with rclone?

I have a self hosted app that I don't have access to change. It produces an HTTP file server. Currently, rclone can easily mount/copy/etc using this http server as a backend with the HTTP remote.

However, I want to use rclone as a shim to encrypt the http remote and "re-serve" the encrypted version with rclone serve. (I need to do this because the http endpoint is accessed over the internet through a CDN and I want the files encrypted in transit). On the other end, I'd like to have rclone decrypt the remote and then be able to do it's normal operations, such as mounting the server.

Run the command 'rclone version' and share the full output of the command.

rclone v1.66.0
- os/version: debian 11.8 (64 bit)
- os/kernel: 6.8.4-3-pve (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.22.1
- go/linking: static
- go/tags: none

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


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

I haven't run any yet, as im not sure if it can be done. Crypt remotes encrypt decrypt as written and read (so the underlying storage gets an encrypted file). My underlying system is decrypted, and I want to encrypt it coming out.

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

type = http
url = http://localhost:1234/http

A log from the command that you were trying to run with the -vv flag

NA. HTTP remote works great, but I have not run anything else yet.

I'm not sure if the "as it is being read" part is possible... but what you could certainly do is sync http to a crypted local directory and then rclone serve that local directory directly (not through crypt.) Could then maybe use a cron job to refresh by running the sync again on an interval.