Registry: reject installer symlinks escaping plugin root #202

Closed
opened 2026-09-08 02:03:13 +00:00 by nsaspy · 0 comments
Owner

Registry P0 follow-up.

The registry validates that plugins/<name>/tools/<name> exists and that install metadata agrees with its presence, but Path.is_file() follows symlinks. A canonical plugin root can therefore advertise an installer path that resolves outside the plugin root.

Acceptance:

  • deterministic RED for an external installer symlink;
  • installer path must resolve inside its plugin root before nix run / install.tool metadata is accepted;
  • canonical in-tree installers remain valid;
  • static/import-free validation;
  • full compatibility, nix flake check, and package builds green.
Registry P0 follow-up. The registry validates that `plugins/<name>/tools/<name>` exists and that install metadata agrees with its presence, but `Path.is_file()` follows symlinks. A canonical plugin root can therefore advertise an installer path that resolves outside the plugin root. Acceptance: - deterministic RED for an external installer symlink; - installer path must resolve inside its plugin root before `nix run` / install.tool metadata is accepted; - canonical in-tree installers remain valid; - static/import-free validation; - full compatibility, `nix flake check`, and package builds green.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
nsaspy/zara-plugins#202
No description provided.