Skip to content

Harden migration integrity, recovery and acceptance - #16

Merged
loverustfs merged 4 commits into
mainfrom
fix/migration-adversarial-hardening
Nov 1, 2026
Merged

loverustfs merged 4 commits into
mainfrom
fix/migration-adversarial-hardening

Conversation

@loverustfs

Copy link
Copy Markdown
Contributor

Summary

Harden one-way migration against concurrent writes, incomplete inventories, ambiguous results and resource exhaustion. Require an explicit external source-freeze assertion, use conditional target writes and pinned source reads, and verify object content and preserved metadata with SHA-256. Bind state to endpoints and require a completed scan before migration.

Detect pagination cycles, cap concurrent spool reservations, protect newly created state files and escape untrusted terminal output. Add strict exit modes and complete JSONL diff reports. Integrate current upstream CI, S3 compatibility and multilingual documentation, with warnings where translations need updating.

This changes the migration contract: operators must freeze source writes/deletes, confirm source_frozen, use compatible conditional-write endpoints and allow full-body readback. Existing state databases retain their permissions; spool leftovers after crashes require operator cleanup.

Validation

  • go test -race -count=1 ./...
  • go vet ./... and Python script unit tests
  • Isolated RustFS 1.0.4: full content migration, conditional writes, cancellation/recovery and lost commit responses
  • MinIO-to-RustFS Docker E2E updated; requires CI because Docker is unavailable locally

@loverustfs
loverustfs merged commit 23ee7cc into main Nov 1, 2026
9 checks passed
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