Skip to content

test(storage): make ancestor fixture umask independent - #100

Merged
mremond merged 1 commit into
mainfrom
infinitary-batch/87cfc64b
Nov 30, 2026
Merged

mremond merged 1 commit into
mainfrom
infinitary-batch/87cfc64b

Conversation

@mremond

@mremond mremond commented Nov 30, 2026

Copy link
Copy Markdown
Member

Why

The storage test could fail because the shell’s default file permissions let group members write to a test folder.

What changed

  • The test now creates that folder so only its owner can access it.
  • It still rejects an unsafe parent folder and accepts a shared parent with the sticky bit, which protects entries from removal by other users.
  • Only the test setup changes; Nera behaves the same.

Before and after

Before: The test failed with the shell permission setting umask 0002 and passed with umask 0022.

After: The test passed ten times in a row under each setting without changing what it checks.

This test-only change has no user-visible screen.

Checked

Live validation: Demonstrated for this version. 3 of 3 scenarios driven live in the product.

Scenario Result Evidence
Storage test with umask 0002 ✅ Passed live The storage test passed in the full Rust suite: 2,299 passed, none failed, and one was ignored.
Storage test with umask 0022 ✅ Passed live The storage test passed in the full Rust suite: 2,299 passed, none failed, and one was ignored.
Storage used to build native tests (supplementary) ✅ Passed live Nera built under the protected shared folder, refused unsafe ancestry before linking, and removed all 13 temporary executable folders.
  • Unsafe-folder check: Making the unsafe test folder safe caused the rejection check to fail, as expected.
  • Release build and lint: The release build and strict Rust lint checks passed.
  • Native tests: 552 tests passed and two that need external modules were skipped.
  • Allocator and stack traces: The memory allocator settings and stack trace checks passed.
  • Independent review: The code and storage proof reviews found no issues.
How it was checked

Local validation used native Linux x86-64.

Risk

Risk: low in every dimension.

Full risk assessment
Dimension Level Why
Blast radius low Only one Unix unit test fixture changes.
Behavior low No change to production storage behavior.
Undo low Revert the fixture change without migrating data.
Evidence low Both masks, a negative control and the native storage boundary were verified.
Sensitivity low Permission changes apply only to disposable test directories.
Novelty low The fixture sets a directory mode using the standard library.
Dependencies low No dependencies change.
Not done

Approval queues this change for a batch pull request. The batch must pass its checks before it merges.

The test now creates that folder so only its owner can access it.

It still rejects an unsafe parent folder and accepts a shared parent with the sticky bit, which protects entries from removal by other users.

Only the test setup changes; Nera behaves the same.
@github-actions github-actions Bot added this to the 0.1.1 milestone Nov 30, 2026
@mremond
mremond merged commit bf85444 into main Nov 30, 2026
22 checks passed
@mremond
mremond deleted the infinitary-batch/87cfc64b branch November 30, 2026 16:56
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