Skip to content

feat: validate target path in fill disk Prepare#388

Open
joshiste wants to merge 7 commits intomainfrom
fix/bm-13788
Open

feat: validate target path in fill disk Prepare#388
joshiste wants to merge 7 commits intomainfrom
fix/bm-13788

Conversation

@joshiste
Copy link
Member

@joshiste joshiste commented Feb 12, 2026

Summary

Test plan

  • go vet ./... passes
  • Unit tests pass (extcontainer package)
  • E2e tests pass (including new testFillDiskInvalidPath)

Call CheckPathWritableRunc during Prepare to give the user an immediate
error when the target directory does not exist or is on a read-only
filesystem, instead of failing with a confusing error during the attack.
Test that fill disk fails cleanly for non-existent paths and read-only
filesystem volumes.
Anonymous structs with json tags are unnecessary since the config is
just serialized to JSON. Plain maps are simpler and more readable.
@joshiste joshiste force-pushed the fix/bm-13788 branch 3 times, most recently from 2ad9564 to da475f3 Compare February 17, 2026 17:59
@sonarqubecloud
Copy link

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