What's Changed
Fenmark 0.9.0 adds encryption key replacement and lets you change a forgotten journal password with
a registered key file.
This release fixes a vulnerability affecting password-protected journals. After updating, unlock
each journal with its password and use Preferences → Security → Replace Encryption Key. Security
advisory (https://github.com/fjrevoredo/mini-diarium/security/advisories/GHSA-qww8-2h7q-p3f3).
Added
- Replace a forgotten password with a registered key file (#390
(https://github.com/fjrevoredo/mini-diarium/issues/390)): Preferences → Security → Change Password
can now confirm your identity with a key file that is already registered with the journal, in
place of the current password. Fenmark checks that the key file unlocks the open journal, then
re-wraps the existing master key with the new password in the same password slot. Entries are not
re-encrypted, and the key file stays registered. The option shows only when the journal has a
password and a key file, and Require All Authentication Methods is off. This is not a new recovery
method: without a registered credential, a journal still cannot be opened. Backups taken before
the change keep the old password.
- Replace the encryption key: Preferences → Security → Replace Encryption Key makes a new random
master key, encrypts every entry, tag, image, and attached file again with it, and updates every
authentication method. It needs the journal password (or a registered key file when the journal
has no password; a local-only journal needs nothing), takes a backup first, and runs as one
transaction, so an interruption leaves the journal as it was. Your password and key files stay the
same. Backups and copies taken before the replacement still use the old key.
Changed
- Password-slot format v2: New and changed passwords are stored in a versioned slot format. The
wrapping key comes from Argon2id followed by HKDF-SHA256, the slot holds only the KDF parameters
and a salt, and the whole header is authenticated with the wrapped key. Existing password slots
still open and are rewritten in the new format the next time you unlock with the password.
- Journal schema v15: The journal format moves to schema 15. Older versions of Fenmark refuse to
open a v15 journal and do not change it. Update every computer that shares a journal. Deleted
database content is now overwritten on disk.
- Whole-journal restore of older backups: A whole-journal restore now refuses a backup taken before
an encryption-key replacement, and a backup whose password slot uses the older format. Restore
entries… still reads both.
- Backup check covers attachments: Checking a backup now also confirms that attached files and their
names decrypt.