Repository navigation
Releases
GocryptKit v1.4.2 — Accurate Error Codes & Security Fixes (signed, not notarized)
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 canno...
GocryptKit v1.3.8 — Robustness, UI Pre-flight & Event-driven Sync Release
What's New in GocryptKit v1.3.8
1. Mount Point Pre-flight Hint
- Added real-time non-intrusive warning in the vault card when a target mount directory already exists and is not empty or is a file.
2. Card Layout & Writable Toggle
- Added localized "Writable" / "可写" label to the left of the mount mode switch toggle.
- Reordered details card to place "Mount Point" row above "Encrypted Directory" row for improved usability.
3. Typed Error Architecture
- Introduced
MountErrorandUnmountErrorenums inVaultCorefor structured, type-safe error handling and localization across the app and CLI.
4. Dual Mount State Synchronization
- Integrated
NSWorkspace.didMountNotificationanddidUnmountNotificationfor instant sub-second UI updates when volumes are mounted or ejected via Finder, backed by periodic polling.
5. CLI & Engine Enhancements
- Added
-f/--forceflags toGocryptKit umountCLI command. - Fixed 0-byte file read behavior to return EOF cleanly instead of I/O error.
6. Robustness Test Suite
- Added tests covering block boundaries (0B, 4096B, 4097B), multi-threaded concurrent read/write, bit-rot/tampering rejection, and typed error parsing (108/108 tests passing).
Verification & Checksum
- Version:
1.3.8 (Build 21) - DMG:
GocryptKit-1.3.8.dmg - SHA-256:
9abada449eb8b949b4ec4c297653d655252642c878ab9070824851f43e9c66fc - Notarization: Apple Developer ID (Accepted & Stapled)
GocryptKit v1.3.7 — Unmount Reliability, Mode Switch & UI Polish
What's New in GocryptKit v1.3.7
GocryptKit v1.3.7 focuses on unmount reliability, user experience refinements, and security hardening.
1. Unmount Experience & System Parity
- Busy Volume Handling: When attempting to unmount a vault that has active file handles in use by external applications (e.g. media players, Finder, terminal), the main window now displays a native alert dialog with an immediate "Force Unmount" option, achieving 100% parity with the menu bar tray.
- Auto-expand on Error: If unmounting fails or is cancelled, the vault card automatically animates open to present humanized diagnostics and an inline "Force Unmount..." button.
- Mount Path Fallback: Hardened mount point path resolution with automatic fallback chains covering
_READ_ONLYsuffixes and kernel mount table status queries.
2. UI & UX Polish
- Mount Mode Switch Toggle: Upgraded the temporary read-only mount checkbox to an intuitive macOS native Switch toggle. Switching ON activates read-write mode ("Mount in read-write mode"), while switching OFF activates read-only mode ("Mount in read-only mode") with dynamic orange warning indicators and instant mount button / path preview synchronizations.
- Inline Password Error Display: Password unlock failure warnings (e.g. incorrect passphrase) are now displayed directly beneath the password field and automatically dismiss when typing a new password.
- Visual Hierarchy: Placed the password input at the top of the expanded card; moved the low-frequency rename field to the bottom; removed intrusive blue selection rings on vault list items.
3. Security, Concurrency & Quality
- ProcessRunner Async Stream Draining: Drains stderr asynchronously using a Swift 6 thread-safe
LockedBuffer, completely eliminating OS pipe deadlocks (>64KB). - Weak Password Alert: Secondary confirmation dialog for passwords under 8 characters or with low strength.
- Orphan Credential Sweeping: Extended
OrphanReaperto deep-clean temporary read-only session tokens (mountctx:). - Apple Notarization & Gatekeeper: Fully signed with Developer ID Application and notarized/stapled by Apple Notary Service.
Downloads & Checksums
| File | Size | SHA-256 Checksum |
|---|---|---|
GocryptKit-1.3.7.dmg |
2.6 MB | 8361985bee2f5482dc51fdd74691372fdf55d26b3591a621ff54096a754128a3 |
# Verify release image
shasum -a 256 GocryptKit-1.3.7.dmg
spctl -a -t open --context context:primary-signature -vv GocryptKit-1.3.7.dmgGocryptKit v1.3.4 — Language Hot-Switching & Read-Only Volume Title Enhancements
Highlights
GocryptKit v1.3.4 brings comprehensive in-app language switching fixes, cold-start persistence synchronization, and includes the v1.3 read-only volume enhancements:
- Robust Language Switching & Runtime Hot-Reloading:
- Dynamic Bundle Resolution: Introduced
LanguageManagerto dynamically resolve and route string lookups directly through.lprojlocalized resource bundles, bypassing Apple Foundation's limitation whereString(localized:..., locale:)fails to switch bundles at runtime. - Cold-Start Persistence (
AppleLanguages): Synchronizes nativeAppleLanguagespreference on startup so language selections persist reliably across application restarts. - Instant UI & MenuBar Refresh: MenuBar items and SwiftUI views immediately refresh upon switching language without requiring an app relaunch.
- Dynamic Bundle Resolution: Introduced
- Read-Only Finder Title & Volume Synchronization (v1.3):
- Dual-Channel Context Propagation: Synchronizes read-only intent via Keychain
MountContextStoreacross FSKitprobeResourceandloadResourcephases. - Finder Title Consistency: Finder sidebar, window title bar, and volume names consistently display
_READ_ONLYwhen mounted in read-only mode. - System-Level Enforcement: Strict
POSIXError(.EROFS)return for all write, rename, attribute modification, and deletion calls in read-only mounts.
- Dual-Channel Context Propagation: Synchronizes read-only intent via Keychain
- Clean Scripts & Command-Line Improvements:
- Fully refactored release and packaging scripts with standardized English logs and comments.
- Hardened CLI router with strict subcommand validation against OS launch argument interference.
Assets & Verification
| Asset | SHA256 Checksum | Architecture |
|---|---|---|
GocryptKit-1.3.4.dmg |
e5588413bee546f8855f2c67eefc513762200dab3a77692c9ba6d533f164c93e |
Apple Silicon (arm64, macOS 26.0+) |
Code Signing & Apple Notarization
- Developer ID: Developer ID Application: Xing Wei (
QBFSP2CHNW) - Notarization Status: Notarized and Stapled by Apple
- Gatekeeper Verification:
shasum -a 256 GocryptKit-1.3.4.dmg spctl -a -t open --context context:primary-signature -vv GocryptKit-1.3.4.dmg # Output: accepted, source=Notarized Developer ID
Getting Started
- Download and open
GocryptKit-1.3.4.dmg. - Drag
GocryptKit.appinto/Applications(replace existing version if updating). - Open
GocryptKit.apponce to register the file system extension. - Verify in System Settings → General → Login Items & Extensions → File System Extensions that the GocryptKit switch is toggled ON.
GocryptKit v1.2.5 — Quality, Security & Usability Hardening
Highlights
GocryptKit v1.2.5 is a comprehensive quality, security hardening, and usability update:
- About Panel & Open Source Integration:
- Integrated native Rich Text About dialog (
Credits.rtf) featuring direct clickable link to GitHub: maxing-labs/GocryptKit. - Main window version badge (
v1.2.5) is now an interactive button opening the About dialog. - Dedicated GitHub button on the top toolbar for one-click access to source code and issues.
- Integrated native Rich Text About dialog (
- Force Unmount with Confirmation:
- When encountering
EBUSY(busy mount points due to Finder windows, active editors, or shell sessions), the vault row now presents a "Force Unmount…" option. - Includes a native secondary confirmation modal to safely decouple occupied mounts and lock vaults immediately.
- When encountering
- Mount & Unmount Timeout Protection:
- Implemented 15-second watchdog timers on
/sbin/mountand/sbin/umountsubprocesses. - Prevents indefinite UI spinner hangs or deadlocks if daemon calls block.
- Implemented 15-second watchdog timers on
- Consistent MenuBar Branding:
- The MenuBar status item now permanently retains its branded folder-key icon (
MenuBarIcon), eliminating distracting lock icon flicker. - Real-time mount counts are reflected cleanly via the tooltip.
- The MenuBar status item now permanently retains its branded folder-key icon (
- Privacy & Memory Safety Hardening:
- Log redaction: Masked vault mount filesystem paths in system logs (
privacy: .private) to prevent sensitive folder path leaks. - C string bounds check: Hardened Darwin
statfstuple decoding inMountTable.swiftagainst out-of-bounds reads. - Automatic orphan credential cleanup on app lifecycle transitions.
- Log redaction: Masked vault mount filesystem paths in system logs (
Assets & Verification
| Asset | SHA256 Checksum | Architecture |
|---|---|---|
GocryptKit-1.2.5.dmg |
8421d383bdcd025c801b27b7b6c4e9bd551c08357119eeb89bf568c03b2b66aa |
Apple Silicon (arm64) |
Code Signing & Apple Notarization
- Developer ID: Developer ID Application: Xing Wei (
QBFSP2CHNW) - Notarization Status: Notarized and Stapled by Apple
- Gatekeeper Verification:
shasum -a 256 GocryptKit-1.2.5.dmg spctl -a -t open --context context:primary-signature -vv GocryptKit-1.2.5.dmg # Output: accepted, source=Notarized Developer ID
Getting Started
- Download and open
GocryptKit-1.2.5.dmg. - Drag
GocryptKit.appinto/Applications(replace existing version if updating). - Open
GocryptKit.apponce to register the file system extension. - Verify in System Settings → General → Login Items & Extensions → File System Extensions that the
GocryptKitswitch is toggled ON.
GocryptKit v1.2.4 — Initial Open Source Release
GocryptKit v1.2.4 — Initial Open Source Release
GocryptKit brings native, driverless, high-security gocryptfs encrypted vault management to macOS, powered by Apple's modern FSKit architecture.
Zero kexts. Zero macFUSE. Zero sudo. Zero security compromises.
System Integrity Protection (SIP) remains fully enabled.
Highlights
- Apple FSKit Integration: Mount and manage gocryptfs vaults seamlessly with native Finder, Terminal, and standard macOS file dialog access.
- Hardened Security Architecture:
- Consume-and-destroy TLV-tagged Keychain protocol (
VCP1) for credentials. - In-memory secret zeroing (
memset_s) across MasterKey, passwords, and scrypt buffers. - Safe interactive masked terminal input and
--password-stdinstream support.
- Consume-and-destroy TLV-tagged Keychain protocol (
- Physical Handle Concurrency Isolation: Independent read/write file descriptors with reader-writer locking, eliminating kernel
EBADFrace conditions. - Native Extended Attributes (xattr): Full macOS xattr support encrypted via EME + DirIV (AES-GCM), preventing
._*AppleDouble file pollution. - Enhanced MenuBar Experience:
- Live status item with dynamic lock state icons (
lock.open.fillwhen mounted). - Unmount debounce and mutual exclusion locks.
- Aggregated conflict dialog when multiple volumes encounter
EBUSY.
- Live status item with dynamic lock state icons (
- Flexible Password Policy: Relaxed minimum password length to 4 characters with real-time strength indicators.
- Fully Internationalized: Complete English and Simplified Chinese localization.
- Licensing: Open-sourced under GNU General Public License v3.0 (GPL-3.0) with Apple App Store Exception.
Assets & Verification
| Asset | SHA256 Checksum |
|---|---|
GocryptKit-1.2.4.dmg |
9ccc62235994c270a4e121eb022856d3120fcb239a302ae75f637b7d03ea7dc9 |
Code Signing & Apple Notarization
- Developer ID:
Developer ID Application: Xing Wei (QBFSP2CHNW) - Notarization Status: Notarized and Stapled by Apple
- Gatekeeper Verification:
spctl -a -t open --context context:primary-signature -vv GocryptKit-1.2.4.dmg # GocryptKit-1.2.4.dmg: accepted # source=Notarized Developer ID
Getting Started
- Download and open
GocryptKit-1.2.4.dmg. - Drag
GocryptKit.appto/Applications. - Open the app, and follow the prompt to enable the File System Extension in System Settings → General → Login Items & Extensions → File System Extensions.