Skip to content

v0.16.2 — symlinked vault folders open

Choose a tag to compare

@github-actions github-actions released this 29 Jul 16:04
· 8 commits to main since this release

Fixed: folders and files symlinked into your vault now open

If you keep part of your notes outside the vault and symlink them in, Onyx could
show the folder in the tree but refused to open anything inside it. That is
fixed.

What to do: install this build. No migration, no config change, no vault
re-index. Existing symlinks start working as soon as you launch it.

What changed

  • Symlinked folders and files are openable and editable. Path validation now
    normalizes lexically — still rejecting .. escapes and relative paths — and
    walks down from the vault root instead of canonicalizing first, so a symlink
    reached from inside the vault resolves instead of failing containment.
  • Images and PDFs in linked folders render. The asset:// handler uses the
    same rule; previously it returned 403 for anything inside a linked folder.
  • Search works on a symlinked vault root. search_files now resolves the
    configured vault spelling, so a vault that is itself a symlink is searchable
    under either the link path or the real path.

Security

The asset:// handler previously canonicalized a path before checking whether
it was inside the vault, so a path outside the vault returned 404 if it did not
exist and 403 if it did
— an existence oracle that any webview content could
use to probe arbitrary filesystem paths. Containment is now decided lexically
first, and everything outside the vault returns a flat 403 regardless of whether
it exists.

Behaviour worth knowing

A folder you symlink into your vault is fully yours to write, rename and delete
through
. Editing Vault/Linked/note.md writes to the real file outside the
vault, and deleting that file deletes the real one. Deleting the link itself
(Vault/Linked) removes only the link and leaves the target intact. This is
intended — a linked folder you cannot edit in would be worse than no links at
all — but it means a symlink in your vault is a real door to the data behind it.

Known gaps in this release

  • Everything was verified on Linux, at the syscall and function level (18 tests,
    all green). macOS path canonicalization, Windows junctions and \\?\
    prefixes, mobile, cross-device rename and hardlinks are untested
    against
    these changes.
  • Click-level GUI cases — tree render of a linked folder, file-watcher reload,
    and unscripted exploration — were not executed; no input injection was
    available on the test machine.
  • Pre-existing and unchanged by this release: copy_dir_recursive can leave a
    partial copy on failure; list_files, file_exists, get_file_modified_time,
    get_file_stats, open_in_default_app and show_in_folder take raw paths
    without validation; asset:// still serves the config directory.
  • The depth-32 search-truncation warning is logged with log::warn!, and the log
    plugin is only registered in debug builds — so in this release build a
    truncated search notifies nobody.

Contributors

Triage and merge coordination by Atlas, fix by Prometheus, adversarial review by
Cerberus and Argus, exploratory QA by Momus, release by Hephaestus. Symlink
behaviour ruling by Derek Ross.

Full diff: v0.16.1...v0.16.2