Skip to content

fix: jobs should not write around the output gate - #9533

Merged
pjwerneck merged 1 commit into
devfrom
pjwerneck/fix-output-gate
Sep 29, 2026
Merged

pjwerneck merged 1 commit into
devfrom
pjwerneck/fix-output-gate

Conversation

@pjwerneck

Copy link
Copy Markdown
Collaborator

Summary

A job could write a file beside outputs/, and the DS received it through its read grant on all of review/<ds>/. The DS now reads only each job's state.yaml and disclosures.json, plus released files.

Note that a job still runs as the data owner in the synced datasite, so there are still gaps related to this, meant to be closed by another PR. See the P1 ticket "security: only give jobs access to the files they need".

Changes

  • review_grants.py: narrow DS grant, set at peer setup.
  • The runner replaces the old folder grant before any job runs. Released files stay readable.

Testing

  • test_output_gate.py, plus a mock-Drive sync test: a file beside outputs/ does not reach the DS.

Asana task

The DS no longer reads all of review/<ds>/. It reads the state.yaml and
disclosures.json of each job, and each file that a release grants. The
runner replaces the earlier folder grant before any job runs.

@rasswanth-s rasswanth-s left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM , The current PR looks good,
but solving the next state of isolating/sandboxing a job, will make it robust, as currently the job can even modify the perm files maliciously (unless the DO catches it in the review)

@pjwerneck
pjwerneck merged commit dd981b7 into dev Sep 29, 2026
21 of 22 checks passed
@pjwerneck
pjwerneck deleted the pjwerneck/fix-output-gate branch September 29, 2026 14:25
rasswanth-s added a commit that referenced this pull request Sep 30, 2026
Brings in #9515 (Tinfoil deployment, signed job receipts) and #9533
(narrow DS read grant on review/). Conflicts were only in imports:
syft_job client.py and job_runner.py keep both the review_grants and the
submission imports. Also drops the duplicate module logger in the enclave
client that both sides added.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants