Skip to content

Remote transcode nodes reject catalogued symlink media #643

Closed

Description

@Quick104

Summary

Dedicated transcode nodes reject playback and download preparation when a catalogued media file uses a logical symlink path whose regular-file target is outside the configured library root. Integrated playback accepts the scanner-recorded logical path, so affected deployments regress only when work is offloaded.

Source

Internal Discord thread.

Code-Level Reproduction

The existing TestMediaRootAuthorizerRejectsSymlinkEscape test creates a regular file outside a library root, links it beneath that root, and confirms the node authorizer rejects the logical path. I ran that focused test against current main and confirmed it passes, demonstrating the rejection.

The scanner deliberately follows readable media symlinks while preserving their logical library path in the catalog. A remote node later resolves the same path to its physical target and rejects it for escaping the logical root before FFmpeg starts.

Expected Behavior

A remote node should accept an existing regular file at the exact active path recorded in media_files, including scanner-approved logical symlinks.

Actual Behavior

The node returns a pre-FFmpeg rejection. Protocol v3 maps the non-202 response to transcode_start_failed; the response body is discarded and cleanup may log an unrelated 404.

Scope

Owning project: Silo Server.

Acceptance Criteria

  • Existing regular files at exact active catalog paths are accepted on transcode nodes, including symlinked media.
  • Relative paths, protocol URLs, uncatalogued paths, missing files, and directories remain rejected.
  • Catalog lookup failures remain fail-closed and observable.
  • Focused regression tests cover both the symlink deployment and the rejection boundary.

AI Disclosure

  • Tool(s): T3 Code (Codex)
  • Model(s): gpt-5.6-sol
  • Involvement: fully AI-generated
  • Adversarial review: pending implementation; the pull request will document the completed review and resolutions.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions