Repository navigation
GocryptKit v1.4.2 — Accurate Error Codes (rolls up v1.3.9 – v1.4.1)
First public release since v1.3.8. It ships six versions of security and data-integrity work; the per-version notes are below, the Chinese version is in CHANGELOG-zh.md.
⚠️ Signed, but not notarized
The maintainer's Apple Developer Program membership has lapsed. This DMG is signed with the Developer ID certificate (Team QBFSP2CHNW) but carries no Apple notarization ticket, so Gatekeeper blocks the first launch:
- in
/Applications, right-clickGocryptKit.app→ Open, or - System Settings → Privacy & Security → Open Anyway.
Then enable the file system extension as usual (System Settings → General → Login Items & Extensions → File System Extensions). v1.3.8 is the last notarized build, but it lacks every fix listed here.
Verification
| Package | GocryptKit-1.4.2.dmg |
| Version | 1.4.2 (Build 27) |
| SHA-256 | a9d9e51f0e42f87086457fce4b1b1b40f442666690ebed17f4aa1fbe75ff0931 |
| Architecture | Apple Silicon (arm64-only), macOS 26.0+ |
shasum -a 256 GocryptKit-1.4.2.dmg
# after dragging the app to /Applications
codesign --verify --deep --strict --verbose=2 /Applications/GocryptKit.app
codesign -dv /Applications/GocryptKit.app 2>&1 | grep TeamIdentifier # TeamIdentifier=QBFSP2CHNWTested on macOS 26.7.1: Scripts/test.sh fast --tsan (Go engine, VaultCore 156, extension callbacks 45 + TSan, host scripts) and the end-to-end suite on a real mount, 114/114.
Upgrading from v1.3.8 or earlier
Extended attribute names written by v1.3.9 and earlier used a different IV than upstream gocryptfs. v1.3.10+ reads them and rewrites each one with the upstream IV the next time it is written; nothing is rewritten in bulk, so gocryptfs -fsck keeps reporting the untouched old names until then (see #1). Versions up to v1.3.9 cannot read attributes written by v1.3.10+; file contents are unaffected either way.
v1.4.2 (2026-10-10) — Accurate Error Codes
- Error codes: the mounted volume now reports the error it actually ran into, as other file systems do. A folder you may not read was reported as missing ("No such file or directory"); a folder or symlink removed underneath (by a sync client, say), a file that could not be opened for reading and a failed read all came back as "Input/output error"; the extended attributes of a deleted file reported "Attribute not found".
- Development: the tests no longer read or write the app's keychain items, and
Scripts/test.shruns every test layer that needs no mount.
v1.4.1 (2026-10-08) — Defense in Depth
- Append-only flag:
chflags uappndon a file in a vault left the file impossible to write. Setting the append-only flag is now refused ("Operation not supported"); a flag that is already set can still be cleared. - Command line:
--password=…printed the password back in its error message. It now gets the same notice as--password, and the value of an unknown--option=valueis never printed. - Text fields: inline predictions (suggested completions) are off in all text fields, the shown-password field included.
- Tampered vault folders: refused instead of being acted on: an extended attribute value of gigabytes planted in the encrypted folder (could crash the file system extension), scrypt settings in a planted
gocryptfs.confthat cost many times the CPU of the largest normal setting, and path names ending in..that reached the folder above the encrypted folder of a-plaintextnamesvault. - Engine: read, write and truncate requests at offsets that do not fit a file are refused before anything is written. The mounted volume never sends them; other callers of the engine could overwrite the start of a file.
v1.4.0 (2026-10-06) — Post-merge Review Fixes
- plaintextnames vaults: on vaults created with
-plaintextnames(by upstream gocryptfs),gocryptfs.confin the root could be deleted, replaced by a rename or changed through the mounted volume, which destroys the vault's key. It is now refused like upstream does (EPERM). - Error codes: a file that is listed but cannot be opened for reading (permission denied, too many open files, a cloud placeholder that fails to download) reports the real error instead of "No such file or directory", which backup tools took for a file deleted mid-run.
- Quitting: with one volume busy and another failing to unmount for a different reason, forcing the busy one let the app quit with the other still mounted. The app now only quits when the mount table shows none of your volumes, and offers to force only when that can let it quit.
- Mounting: a vault whose
gocryptfs.confis a symlink into a mounted vault is refused, like a vault inside a mounted vault (mounting it hangs the system's file system service). The app no longer resolves mount points in its periodic mount check, which could freeze the window while the file system service was stuck. - Directory listings: file names can no longer be chosen so that one of them is left out of directory listings.
- New files: a file created read-only or without read permission can always be written and read by the program that created it, also when its size is set before it is opened.
- Renames: a change to a file that a rename is replacing at the same moment no longer lands on the file that takes its name.
v1.3.11 (2026-10-06) — Security Checklist Wrap-up
- Copying read-only files: copying a read-only file (mode 0444) into a vault failed with an I/O error and left an empty file behind. A new file now takes the writes of the open that created it, whatever its mode. Creating a vault inside a mounted vault failed the same way.
- File attributes: modification, access and creation times and flags (hidden, locked …) take effect instead of being silently dropped (
touch -t,cp -p,chflags). Creation dates and flags of files on a mounted vault are shown correctly; they used to read as 1970 and none. - Directory listings: listing a directory while other files are added or removed no longer skips or repeats the files that stay.
- Error codes: truncate, write and open report the real error (
ENOSPC,EFBIG,EPERM,ENOENT…) instead of a generic I/O error. - Removed files that are still open: attribute and extended-attribute changes go to that file, no longer to a new file that took over its name.
- Extended attributes: the target is resolved once through directory handles, so a directory swapped for a symlink (for example by a sync client) cannot redirect an attribute outside the vault.
- Mounting: a vault addressed through the
/System/Volumes/Data/…spelling of its path is recognized as already mounted. A vault inside another mounted vault is refused: mounting it hung the system's file system service, external disks included, until the extension was killed. Vaults on long non-ASCII paths show as mounted. Vaults whose folders share a name get distinct default mount points. - Malicious gocryptfs.conf: scrypt parameters that need more than 1 GiB of memory, or P above 16, are refused before anything is allocated. New vaults are capped at logN 20 to match.
- Text fields: system text replacement (such as "omw" → "On my way!") and the other typing substitutions are off in the app's text fields, so typing a password with "show password" on can no longer create a vault with a password you did not type.
- Smaller fixes: the extension no longer asks the engine for a copy of the scrypt hash; an overlong credential is refused instead of crashing; the iOS packaging script no longer uses shared
/tmppaths.
v1.3.10 (2026-10-05) — Security Review Follow-up
- Unlinked and replaced files: a file removed or overwritten by a rename while still open keeps its handles until it is closed. Writes no longer bring a deleted file back, or land in the file that took over its name (which could leave that file unreadable after a remount). New files are created exclusively, so two racing
O_EXCLcreates (lock files) can no longer both succeed. - Engine robustness: writes beyond the end of a file pad the previous partial block; unmounting waits for in-flight operations before wiping keys; every C entry point recovers from internal panics; handle and volume IDs are never reused;
gocryptfs.dirivis read with a size bound and without following symlinks; FIFOs planted in the ciphertext directory are refused instead of blocking; a rename no longer races with callbacks that read the renamed item's path. - Attributes and error codes: attributes of a removed item report
ENOENTinstead of an empty set (which FSKit logged as a fault and turned intoEINVAL); an unlinked file that is still open keeps answeringfstat.mkdir,rmdir,renameandunlinkreturn the real error (EEXIST,ENOTEMPTY, …) rather than a generic I/O error.chmodnever follows a symlink out of the vault. - Quitting: quitting unmounts only your own volumes and never forces on its own. If a volume is busy the app stays open and offers the same Force / Cancel choice as the other unmount paths.
- Mounting: a vault that is already mounted is refused even when addressed through a symlink or another path alias.
- CLI: unknown options are errors (a misspelled
--readonlyno longer mounts writable).--password-stdinrefuses a terminal, rejects passwords over 4096 bytes instead of truncating them, and strips exactly one trailing newline. An interrupted mount (Ctrl-C) removes its Keychain credential. - Keychain hygiene: stale credentials are found by enumerating the Keychain, including those of unregistered vaults; credentials younger than two minutes are left alone so the app cannot delete the credential of a CLI mount in progress. The extension no longer accepts a caller-chosen Keychain account.
- Extended attributes: attribute names are now encrypted with upstream gocryptfs's fixed IV, so xattrs interoperate with Linux gocryptfs. Attributes written by earlier versions remain readable and are converted when they are next written; nothing is rewritten in bulk. Versions up to 1.3.9 cannot read attributes written by this version (file contents are unaffected).
- Mount point privacy: the default mount root
~/Volumesis created with mode 0700 and tightened to 0700 at mount time if it was open to other accounts (FSKit volumes are mounted withnoowners, so only the path protects mounted files). The vault card and the CLI warn when a custom mount point is reachable by other users. - Visible password fields: autocorrection is disabled in the plain-text password fields used by "show password".
- Privacy and release scripts: volume names and paths are logged as private. The release script verifies the provisioning profiles and signing identity and stops if they are missing.
v1.3.9 (2026-10-04) — Data Integrity Fixes
- Share file IDs and content locks across handles for the same backing inode; zero truncation clears the shared ID before rewriting the header.
- Correct FSKit close modes to retain requested access, release unused handles, and preserve temporary I/O references.
- Truncate acquired writable handles using fd metadata; synchronize handle access and close without retaining the handle table lock.
- Invalidate directory fd caches after rename and rmdir to prevent writes or deletions affecting moved-away files. Add engine, extension, VaultCore, and remount regressions.