Repository navigation
Set mode 0700 on the code Grader packet and Trial proxy directories - #1860
Merged
Merged
Conversation
Match Scoring packet staging, which already creates its packet directory with that mode.
Merged
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
Scoring packet staging already creates its directory with
permissions(0o700). The code Grader packet and the Trial proxy directory now do the same.Seams:
proxy::start: the directory that holdsGuard::socket_path()is mode 0700.code_grader::execute: while a check runs, the directory that holdsTHIRDSHIFT_TRIAL_STANDARDS_REPORTis mode 0700.Evidence
Execution evidence
Before:
cargo test --bin thirdshift proxy::tests::the_trial_proxy_directory_is_private_to_its_owner -- --exact509is mode0775.448is0700.After:
cargo test --bin thirdshift directory_is_private_to_its_ownerBefore:
cargo test --bin thirdshift sandbox::code_grader::tests::the_code_grader_packet_directory_is_private_to_its_owner -- --exactAfter: the same command, in the run above, passed.
cargo fmt --checkandcargo clippy --all-targets -- -D warningspassed.cargo nextest run --test-threads 3 --retries 2 --no-fail-fastran 3927 tests: 3927 passed, one of them on a retry after an unrelated systemd scope collision (keeps_review_reports_beside_each_harness_session_log).Visual evidence
No rendered UI, HTML, CSS, or layout change.
Merge Danger
Door: two-way
Reverting the commit restores the previous creation mode for directories created after the revert.
Blast Radius: local
New code Grader packet directories and Trial proxy directories are owner-only. The same account still reads and writes them. Directories already on disk are left as they are.
Unaddressed findings
Standards
None.
Spec
None.
Security
None.
Security review outcome
No unaddressed introduced findings.
Review coverage
Changed files:
src/proxy.rs,src/sandbox/code_grader.rs. Both reviewers read both. No changed file was left unread.Closes #1859
Built with grok grok 1.0.70 (f50904eaee6c) [stable] · default model · default effort