Skip to content

Add fail-closed read-only payload storage - #24

Merged
thedancingdeveloper merged 1 commit into
mainfrom
fix/read-only-payload-storage
Jul 29, 2026
Merged

Add fail-closed read-only payload storage#24
thedancingdeveloper merged 1 commit into
mainfrom
fix/read-only-payload-storage

Conversation

@thedancingdeveloper

Copy link
Copy Markdown
Collaborator

Summary

  • add an opt-in filesystem storage mode that opens payload files read-only
  • reject payload writes, creation, resizing, deletion, and directory removal
  • expose the mode through --storage-read-only / RTBIT_STORAGE_READ_ONLY
  • treat absent payload files as unavailable without creating them

Verification

  • cargo fmt --all -- --check
  • cargo check --workspace --exclude rtbit-desktop --no-default-features --features default-tls
  • cargo test --workspace --exclude rtbit-desktop --no-default-features --features default-tls
  • cargo clippy --workspace --exclude rtbit-desktop --no-default-features --features default-tls -- -D warnings
  • cargo build --profile release-github -p rtbit --no-default-features --features default-tls

The new integration tests prove that an existing payload verifies without modification and that a completely absent output directory remains absent after paused initialization.

@thedancingdeveloper
thedancingdeveloper merged commit c6db822 into main Jul 29, 2026
6 checks passed
@thedancingdeveloper
thedancingdeveloper deleted the fix/read-only-payload-storage branch July 29, 2026 05:48
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