Loading
Vaults: sync with OneDrive, iCloud Drive or a synced folder
Steps 2 to 5 of docs/coffres-multiples.md. Instead of rewriting the sync
engine around a new protocol, each new service is a gateway behind the
HTTPClient port that answers the engine's WebDAV requests with the same
meaning (207 multistatus, 412 on a failed precondition, 405 for an existing
folder, 415/501 for what the service cannot do). The engine, its checksums,
immutable revisions, conditional writes and conflict copies stay unchanged.
- OneDriveGateway (EnvorennCore): Microsoft Graph in the app folder only
(Files.ReadWrite.AppFolder), conditional writes, upload sessions in
10 MiB chunks, paging, Retry-After, one token renewal on 401. Uploads are
verified by reading back; folders announce no ETag, so the listing cache
does not apply.
- OneDriveAuthorization and OneDriveTokenSession: OAuth 2 with PKCE, no SDK
and no client secret; the rotating refresh token is kept in the vault's
keychain entry. The app signs in through ASWebAuthenticationSession.
OneDrive stays disabled until ENVORENN_ONEDRIVE_CLIENT_ID is set in
project.yml (steps in the doc).
- FolderGateway (EnvorennCore): a folder synced by the system. The vault
stays on the device, so recordings in progress, drafts and sync state are
never shared. ETag from size and nanosecond mtime, atomic replace, SHA-256
computed in place, service files ignored, pending .icloud files listed
under their real name.
- iCloud Drive (Apple): FolderGateway on the Documents folder of the
iCloud.eu.cythin.envorenn container, visible as "Envorenn" in Files and the
Finder. Files are downloaded before reading; concurrent versions are
merged (memo metadata), kept beside (Markdown) or stored on the device,
never dropped. iOS gets its own entitlements file; the container is
declared for iOS and macOS and the export options set the production
iCloud environment.
- Pairing and sync settings offer Nextcloud, OneDrive and iCloud Drive;
certificate pinning is hidden for the two new services.
- Linux: "Dossier synchronisé…" syncs the open vault with a chosen folder
(Syncthing, desktop OneDrive or Nextcloud client) through FolderGateway.
- Android: VaultRegistry ported to the Kotlin core, with a test over the
shared conformance/vaults cases.
- Translations: 16 new strings in the 24 languages; button labels written by
hand, "vault" terminology corrected. generate_translations.py now protects
"iCloud Drive", "OneDrive" and "Microsoft", which Google translated.
Checks: 643 core tests (17 new: gateways and OAuth, including two-device
syncs through each gateway), 20 integration tests against Nextcloud and the
Python tests pass; signed macOS and iOS builds succeed. Not verified: the
Kotlin and Linux bridge code (no JDK or libcrypto on the build machine),
OneDrive against a real account, iCloud Drive on a real account.
Co-Authored-By:
Claude Opus 5.5 <noreply@anthropic.com>