Files
rclone/docs/plans/upstream-post-draft.md
Lucas WintherandClaude Opus 5.5 5a6ceb59ff
ci / protondrive (push) Canceled after 25m17s
docs: record the Proton Drive handover with Gitea as the only copy
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 23:30:47 +01:00

2.9 KiB

Draft: post for rclone issue #9252 / forum thread 53609

Fork-only. Posted by the owner on 2026-11-23 in the upstream discussion (rclone issue #9252 / forum thread 53609), as the text below the line.

The public code is the protondrive branch of https://github.com/StereotypicalCat/rclone-protondrive: one squashed commit (c0bdbcde6, 2026-11-23) on rclone master c0cef5e87, code only (backend, fake server, user docs, fstest changes, go.mod/go.sum), authored with the owner's GitHub noreply address. The full history and the agent docs are on the public Gitea. To refresh the GitHub branch after more work, apply git diff 448d7361c..<head> for those paths onto the latest rclone master in a scratch worktree and push a new squashed commit.

Fact-checked numbers (at the GitHub commit):

  • backend: 8.4k lines of Go and 12.1k lines of tests;
  • fake server: 5.7k lines and 2.7k lines of tests;
  • outside backend/protondrive: 8 files, +447/-108 lines.

go-srp v0.0.7 and gopenpgp/v3 v3.4.1 were already indirect in rclone's go.mod.


An update on this: I've been working on a pure-Go rewrite of the protondrive backend, built with heavy AI assistance (Claude Fable 5.2 + Opus 5.5). It's mostly complete and working well on my own system.

Some points that may matter given the discussion above:

  • No cgo and no sidecar. It talks to the Proton API directly in Go, so it avoids the problem raised about interfacing with the C# SDK.
  • No new dependencies. It uses ProtonMail/go-srp and gopenpgp/v3 directly, which were already in go.mod as indirect dependencies. It drops Proton-API-Bridge and go-proton-api.
  • It follows what Proton asked for in the forum thread:
    • volume-based and v2 routes only;
    • the upload block verifier;
    • the external-drive-rclone@<version> app version;
    • the current AEAD content format;
    • event polling, at most every 30 s, which also gives rclone mount change notification.
  • The change is almost entirely in backend/protondrive/: about 8.4k lines of Go and 12.1k lines of tests, plus a fake Proton server (5.7k lines) so the tests can run without an account. Outside that folder it only touches the user docs, go.mod and the test config, plus a small data-race fix in fstests.

To be upfront: this is AI-written, and I'm not yet able to vouch for every line the way CONTRIBUTING.md asks. So I'm not opening a PR yet. If someone familiar with Proton's crypto/API model would like to go through it with me, or co-own it, I'd love to get it into shape for merging. The branch is here: https://github.com/StereotypicalCat/rclone-protondrive/tree/protondrive (for the full history and the design docs/specs: https://gitea.lucaswinther.info/lucasw89/rclone).

Feedback on whether the approach is acceptable in principle would also help before anyone puts serious time into reviewing it.