Skip to content

bug(transcriber): uploads are written under data/transcriber/uploads but the path guard only allows AUTOBOT_UPLOAD_DIR — default installs may reject every recording #19823

Open
0 of 1 issue completed

Description

@mrveiss

Problem

Transcriber uploads are written to a path the upload guard rejects:

  • lifespan.py:567,575 and transcriber_extension.py:29 set TRANSCRIBER_DATA_DIR=data/transcriber, and uploads go under <that>/uploads
  • upload_security.py:41 allows only AUTOBOT_UPLOAD_DIR=/var/lib/autobot/uploads, enforced at orchestrator.py:60,269
  • no deployment file sets either variable

So on a default install every recording would be rejected by the path guard. That runtime effect has not been observed yet. The code paths disagree, and confirming the effect is the first acceptance criterion. Found by an external defined-twice audit run against main at 71503d9dfe (2026-10-27), then re-verified line by line on origin/main before filing. Related: #19713 (chunked uploads for large media).

Fix

One upload-dir key in ssot_config. The transcriber writes under it, and the guard allows exactly it.

Acceptance criteria

  • Host: a recording uploaded on a default install either succeeds or fails, and the result is recorded here.
  • The transcriber upload path and the guard's allowed base resolve from one SSOT key. A test uploads a fixture and it passes the guard.

Activity

  1. added
    bugSomething isn't working
    phase:M1.8Knowledge base: upload, web sources and chat retrieval work end to end
    on Oct 27, 2026
  2. mrveiss commented on Oct 31, 2026

    @mrveiss
    OwnerAuthor

    Read-only findings, 2026-11-01, plus the plan.

    On the local install, /var/lib/autobot/uploads does not exist, and the one stored recording is under autobot-backend/data/transcriber/uploads. _validate_file_path (orchestrator.py) compares against get_upload_base_dir(), so from the code a real recording would be refused. Not yet observed by uploading one.

    Plan: move the guard's default, not the data. One key, AUTOBOT_UPLOAD_DIR, defaulting to the path uploads already use (<TRANSCRIBER_DATA_DIR>/uploads, resolved), read by both the writer and the guard. The existing recording stays valid and no migration is needed.

    Waiting on: initialization/lifespan.py, which is in open #20392. ssot_config.py is at its size ceiling, so the key needs a line freed there.

  3. github-actions commented on Nov 2, 2026

    @github-actions
    Contributor

    Landed via the merge train (#20598, merge 87eae8acf8) via #20486

  4. mrveiss commented on Nov 2, 2026

    @mrveiss
    OwnerAuthor

    Verified against origin/main after the merge train (PR #20598) landed (#20486 is a member).

    AC Evidence
    Host: recording uploaded on a default install succeeds or fails, recorded here NOT MET. Needs a host; no real upload was run.
    Upload path and guard base resolve from one SSOT key; a test uploads a fixture and passes the guard autobot_shared/ssot_config.py:1253 upload_dir (alias AUTOBOT_UPLOAD_DIR; empty means under the transcriber data dir). upload_security.py get_upload_base_dir() is used by the guard (:75) and by startup (initialization/lifespan.py:566). upload_dir_one_key_19823_test.py: test_a_fixture_written_to_the_upload_dir_passes_the_guard, test_contrast_a_file_outside_it_is_refused.

    Stays open for the host criterion. Review point from the PR: the default base moved from /var/lib/autobot/uploads to the transcriber data directory.

  5. added and removed
    phase:M1.8Knowledge base: upload, web sources and chat retrieval work end to end
    on Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions