You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
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
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.
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.
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:1253upload_dir (alias AUTOBOT_UPLOAD_DIR; empty means under the transcriber data dir). upload_security.pyget_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.
Activity
mrveiss commentedon Oct 31, 2026
Read-only findings, 2026-11-01, plus the plan.
On the local install,
/var/lib/autobot/uploadsdoes not exist, and the one stored recording is underautobot-backend/data/transcriber/uploads._validate_file_path(orchestrator.py) compares againstget_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.pyis at its size ceiling, so the key needs a line freed there.github-actions commentedon Nov 2, 2026
Landed via the merge train (#20598, merge
87eae8acf8) via #20486mrveiss commentedon Nov 2, 2026
Verified against
origin/mainafter the merge train (PR #20598) landed (#20486 is a member).autobot_shared/ssot_config.py:1253upload_dir(aliasAUTOBOT_UPLOAD_DIR; empty means under the transcriber data dir).upload_security.pyget_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/uploadsto the transcriber data directory.