Skip to content

Conversation

@joshiste
Copy link
Member

@joshiste joshiste commented Feb 12, 2026

Summary

  • Make mount failure a hard error in createBundle — previously it silently continued, causing the fill to write to the sidecar's own filesystem instead of the target
  • Add CheckPathWritableRunc and CheckPathWritableProcess functions that verify the target directory exists and is writable before the fill disk attack starts
  • Extensions call these checks in their Prepare method so users get an immediate, clear error instead of confusing failures during the attack

Test plan

  • go vet ./... passes
  • go test ./diskfill/... passes
  • E2e tests in extension-container and extension-host pass with the new checks

A silent mount failure causes the fill to write to the sidecar's own
filesystem instead of the target, which is wrong behavior that should
fail fast.
Add CheckPathWritableRunc and CheckPathWritableProcess functions that
verify the target directory exists and is writable before starting the
fill. The runc variant creates a short-lived sidecar in the target's
mount namespace; the process variant uses direct commands. Both clean
up after themselves.
@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