Repository navigation
feat: warn when share_files doesn't name the submitter - #9625
Merged
Merged
Conversation
A file named in share_files goes only to the readers listed for it, even one under outputs/ of an enclave job. The test shares outputs/r.json with the submitter and do1, as documented: both read it, do2 doesn't. The enclave README and docs/API.md now say so. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each file in share_files goes only to the readers listed for it, so a submitter that names only someone else doesn't get the file, and wasn't told. warn_if_submitter_not_named warns at the two submit entry points, SyftRDSClient and SyftEnclaveClient, on the share_files the user passed. It isn't called in the shared syft-job submit path: the enclave job client builds a share_files from the share flags that may name only the data owners. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
atlaie
force-pushed
the
atlaie/enclave-share-file-keeps-submitter
branch
from
November 13, 2026 15:53
2e39d74 to
f2ee037
Compare
…ile-keeps-submitter
Also move the unittest.mock imports in the syft-rds client tests to the top of the file.
koenvanderveen
approved these changes
Nov 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
share_filesthat names the DS as the reader of no file, we previously gave no hint, and the DS did not get those files. Nowsubmit_python_jobwarns, on a datasite (syft-rds) and on an enclave. We do not warn when the DS uses the share flags (such asshare_outputs_with_owners) instead ofshare_files.docs/API.mdand thesyft-enclaveREADME now say that each file goes only to the readers listed for it, so the DS names itself too.Guidelines
High level
share_filesdoes not name the DS.Mid level
outputs/there, a known bug that is tracked separately.Low level
Security
No change.
Testing
syft-enclave:test_share_files_without_submitter_warns,test_submission_naming_submitter_or_using_flags_does_not_warn, andtest_output_file_shared_with_owner_and_submitter_reaches_both(the documented way keeps the file with the DS).syft-rds:test_submit_warns_when_share_files_leaves_out_submitterandtest_submit_naming_submitter_or_using_flags_does_not_warn.Asana task
Original description
When a submitter passes share_files, each file goes only to the readers listed for it. A submitter that names only someone else (e.g. share_files={"outputs/count.json": [data_owner]}) doesn't get that file, and isn't told. This is intended (Koen, 13 Nov), but easy to miss, especially in enclaves, where the rest of outputs/ still reaches the submitter. Found while testing #9604's log requests in memory on 13 Nov. Following Koen's suggestion, this PR:
Asana: https://app.asana.com/0/0/1220511574042765/f
In enclave jobs the submitter currently still gets the whole outputs/ folder whatever share_files says; Koen confirmed on 13 Nov that's a bug, tracked separately. Once it's fixed, the warning is exact for that case too, so the enclave call doesn't special-case it.
No rush: after the release.
🤖 Generated with Claude Code