Skip to content

0.1.34 (beta)

Pre-release
Pre-release

Choose a tag to compare

@bimsonz bimsonz released this 14 Sep 20:15
· 6 commits to main since this release

Five hardening fixes. Nothing here changes how the plugin is used, and none of them needed anything more than a bad or tampered response from the server to matter — but each is the kind of thing that costs a lot if it ever does.

The realtime connection is now checked to be Copal's, not just encrypted

0.1.33 started checking every address used to sign in. The live sync connection — the one that carries your note text as you type — was checked to be encrypted but never checked to be Copal's. A bad response from the server could have handed back a perfectly valid encrypted address pointing somewhere else, and the connection would have opened to it without complaint.

Both now go through the same check. Same rule, same place in the code, so the two cannot drift apart again.

A half-finished sign-in expires, and cannot be reused

A sign-in that was started and never completed stayed valid until Obsidian was closed. Left overnight in a browser tab, it was still usable the next day by anything on the device that could open a Copal link.

It now expires after ten minutes, and is used once. Previously a sign-in that failed at the last step left the door open to try again with the same credentials.

An error coming back from the sign-in page is no longer shown as its own text

When sign-in fails, the reason arrives back in the link Obsidian opens — and anything on your device can open that link. That text was shown to you directly, which meant a stranger could put any message they liked inside your vault with Copal's name attached to it. The wording is now fixed and written by us; the original is logged for diagnosis and never displayed.

A bad message from the server stops that note, not the note's contents

A malformed message used to fail part-way through applying, leaving the note neither as it was nor as the server has it, with nothing reported and sync appearing to hang for eight seconds. The connection for that note is now dropped cleanly and reported, and reconnecting starts a fresh sync. Attachment downloads are also capped, so an enormous one cannot exhaust memory — which on a phone means the app.

Conflict copies no longer overwrite each other

When two devices changed a note in ways that could not be merged, the older text was kept beside it as a (conflicted copy). The name was always the same, so a second conflict on that note overwrote the copy the first one had saved — in the one place whose whole purpose is that nothing is lost.

Copies now carry the time and the device that made them. Existing ones are untouched.