Skip to content

pull: refuse a repository file under the engine's reserved names - #3032

Merged
ashhart merged 2 commits into
mainfrom
security/pull-reserved-names
Nov 13, 2026
Merged

ashhart merged 2 commits into
mainfrom
security/pull-reserved-names

Conversation

@ashhart

@ashhart ashhart commented Nov 12, 2026

Copy link
Copy Markdown
Owner

What this changes

Before: a hub repository could ship files under the names the engine keeps for itself, such as a .tensorfold-original snapshot that a later slide rollback would act on. After: pull refuses those paths.

  • Issue: n/a. SECURITY.md asks for private reports, so there is no public issue.
  • Stacked on: main.
  • atc overlap --json: not run.

Checks on this head

  • Head commit: 1af421d8786f8e76bdd5bd42d5fad1cf74b5a8cf
  • Lean checker, python3 tools/zig/lean_check.py, on the base and on this head: 345 on the base, 345 on this head, 0 new.
  • Tests run, with the command and pass, fail and skip counts:
    • zig fmt --check on 1 files: passes
    • git diff --check: passes
    • zig build test-pull-host test-cli: 69/69 steps succeeded; 69/84 tests passed (15 skipped)
    • zig build test-golden test-server-security test-pull-security: 76/76 steps succeeded; 8/8 tests passed
  • New tests:
    • security: a hub repository cannot plant TensorFold's own snapshot, marker or put-back files
  • CI: runs on this push.
  • Not run, and why: Nothing was pulled from a real repository. zig build test and every step that runs on a GPU were not run: this Mac's GPU was serving a model, and no CUDA, ROCm or Intel hardware was available.

Receipt

n/a. This change cannot reach inference: it is tensorfold pull's path check.

Checklist

  • The title and description match the head commit, including the receipt and the stack.
  • New tests fail before the change, pass after it, and skip cleanly without their dependency. Each new test was shown to fail without its fix on the earlier base b38a4dd02. On this base only the passing side was rerun.
  • Comments and docstrings are one line. No measurements or history in the source.
  • No personal data, machine names, internal hosts or local paths in the diff or its commits. No AI attribution lines.

Notes for the reviewer

  • Partly fixed. A model folder copied by hand can still carry a snapshot.

Suggested changelog line

tensorfold pull refuses repository files under the engine's own reserved names.

A repository could ship a .tensorfold-original snapshot that a later rollback would act on. pull now
refuses hub paths under the names the engine keeps for itself.
@ashhart
ashhart force-pushed the security/pull-reserved-names branch from 1af421d to 8cebbad Compare November 13, 2026 00:03
@ashhart
ashhart merged commit 8e13440 into main Nov 13, 2026
1 of 9 checks passed
@ashhart
ashhart deleted the security/pull-reserved-names branch November 13, 2026 00:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant