Add the OpenPGP operations of the Drive data model as pure functions: node keys and passphrases, names, hash keys and lookup hashes, content keys, blocks, verifier tokens, manifests and extended attributes. The formats follow the reference SDK (driveCrypto.ts, openPGPCrypto.ts), which differs from the plan's Task 5 interfaces in these ways, now updated in the plan: - node keys are v4 EdDSA/ECDH with user ID "Drive key" and ordinary S2K locking; file keys (aead=true) advertise SEIPDv2 with AES-256-GCM and folder keys don't, as the SDK's enableAead - the content key is v6 only when the node key advertises SEIPDv2, as the SDK's preference-following session key generation - the content key signature is checked on read against the node key and extra (address) keys - block signatures are encrypted with the content session key, as the SDK's encryptSignature - hash keys are signed by the node key; reading also accepts address keys - reencryptPassphrase signs anew, and encryptName takes the current name session key for rename and move - name length is counted in UTF-16 code units, as the SDK Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2.0 KiB
TODO
Fork-only durable backlog for things noticed and deliberately not fixed.
Small, specific, independently actionable. Remove only when actually done.
(In Go source, upstream's FIXME/TODO comment convention still applies.)
Now
Next
-
protondrive: confirm on a real account that the official web, desktop and mobile clients read a file written by Task 5's
crypto.go(v4 node key advertising SEIPDv2, v6 PKESK content key, SEIPDv2 GCM blocks, block signatures encrypted with the content session key). This is what the SDK (js/v0.23.0) writes, but go-proton-api v1.0.4link_file_types.go(SetContentKeyPacketAndSignature) and Proton-API-Bridge v1.0.5crypto.go(generateLockedKey) say the official clients do not reliably read crypto-refresh files and that the server rejects a v6 content key packet for a v4 node key; the bridge never sent one with a key advertising SEIPDv2, so its claim may not apply. -
Propose a CI check for this fork:
AGENTS.md,CLAUDE.md,GEMINI.mdand thedocs/agent files exist, andAGENTS.mdis at most 150 lines. -
Upstream CI (
.github/workflows/build.yml) is gated ongithub.repository == 'rclone/rclone'and the remote is Gitea, so this fork has no CI at all. Decide whether to add a Gitea Actions workflow.
Someday
Recurring
- Maintain
AGENTS.md:- Add a rule only in response to a real failure. Do not pre-empt hypothetical mistakes.
- Update in the same commit as the convention change.
- Prune quarterly, and re-check the Fork Workflow section against
upstream's
AGENTS.mdafter each upstream merge.
Known issues
RCLONE_CONFIG=/notfound go test ./...in the baregolang:1.26container fails 7 packages (list indocs/PERMISSIONS.md).fs/loggerneedsrsync; the mount, serve and smb failures are undiagnosed and are probably missing container tooling (FUSE, git-annex), not code. Confirm on a host with Go installed before treating a full-suite failure as a regression.