Skip to content

feat(sim): add 19 enterprise DST & chaos scenarios (replication, WORM, ILM, pools, OIDC, audit, tiering, S3 Tables, quota, migration) - #8

Merged
loverustfs merged 2 commits into
mainfrom
feat/enterprise-19-dst-scenarios
Nov 28, 2026
Merged

loverustfs merged 2 commits into
mainfrom
feat/enterprise-19-dst-scenarios

Conversation

@loverustfs

Copy link
Copy Markdown
Contributor

Summary

Expands rustfs/DST from 7 core scenarios to 26 total deterministic simulation scenarios (7 core + 19 enterprise domains), built cleanly on top of the tightened SimDiskIo durability and quorum guarantees from #5/#6.

Added Enterprise Scenarios (19 Domains)

  1. site-replication (src/replication.rs) — 3-site active-active IAM, policy, bucket, and object replication under partitions, asymmetric cuts, +/-30s clock skew, site crash/reboot, and origin-echo loop checks.
  2. bucket-replication (src/replication.rs) — Cross-cluster async version & delete-marker replication under target outage, flaky links, out-of-order delayed packets (gen=1 arriving after gen=2), prefix filters, and REPLICA loop guards.
  3. worm-object-lock (src/governance.rs) — S3 Object Lock (COMPLIANCE, GOVERNANCE, LegalHold) verified against hostile +/-365d NTP step attacks, admin bypass attempts, retention shortening, and power loss during retention extension.
  4. lifecycle-transition (src/governance.rs) — Virtual-clock cold-tier transitions racing with client PutObject overwrites (CAS generation fence), tier outages, and mid-transition crashes before stub fsync.
  5. lifecycle-expiration (src/governance.rs) — Current, noncurrent, orphan delete-marker, and incomplete multipart expiration interacting with hostile clock skew and WORM locks.
  6. lifecycle-tag-expiration (src/governance.rs) — Prefix + Tag AND-rules racing with concurrent PutObjectTagging (TOCTOU generation re-validation cancels stale delete).
  7. pool-expansion (src/pools.rs) — Live multi-pool expansion (Pool 0 -> Pool 0+1+2) during node restarts with zero-downtime reads and exact cross-pool ListObjectsV2 union.
  8. pool-decommission (src/pools.rs) — Write-admission fence (Decommissioning rejects new PUTs) and full version drain across faults.
  9. pool-rebalance (src/pools.rs) — Skewed multi-pool utilization rebalancing under live linearizable reads with zero missing or duplicate keys.
  10. decommission-consistency-safety (src/pools.rs) — Adversarial overwrite & delete race barriers, WORM retention & Legal Hold metadata preservation, and crash between destination commit and source cleanup.
  11. rebalance-consistency-safety (src/pools.rs) — Source-shard silent bitrot RS-reconstruction before cross-pool move, generation fences, and destination-durable-before-source-cleanup ordering.
  12. oidc-sts-auth (src/security_obs.rs) — Rotating JWKS (kid-1 -> kid-2), JWKS cache survival during transient IdP outage, clock-skewed exp/nbf, subject revocation, and 100% fail-closed rejection of forged/expired/wrong-audience tokens.
  13. bucket-notification (src/security_obs.rs) — Multi-target fan-out (Webhook + Kafka) with prefix/suffix filters, crash-durable spill queue replay, and non-blocking S3 data-path isolation.
  14. audit-logging (src/security_obs.rs) — Cryptographic hash-chained audit WAL surviving power loss with zero missing records and strict credential/token redaction.
  15. tiering-management (src/governance.rs) — Multi-tier registry (S3/GCS/Azure), credential rotation, health flapping, and in-use tier deletion guard (TierInUse).
  16. tiered-remote-restore (src/governance.rs) — RestoreObject bit-exactness, tier outage retry, anti-rollback protection (rustfs/backlog#3074 never bumps mod_time), and virtual-clock hot-cache TTL eviction keeping cold stubs intact.
  17. s3-tables (src/enterprise_data.rs) — Table Buckets, Namespaces, non-empty namespace protection, and concurrent Iceberg UpdateTableMetadataLocation versionToken CAS serializability across crashes.
  18. capacity-quota (src/enterprise_data.rs) — Distributed HARD & FIFO quotas covering PUT, CopyObject (rustfs/rustfs#7947), multipart reserve/abort zero-leak accounting, and WORM-safe FIFO eviction.
  19. on-demand-migration (src/enterprise_data.rs) — Lazy pull-through migration from legacy S3/MinIO with strict local overwrite and delete-tombstone shadowing (zero resurrection).

CLI Enhancements

Added scenario group presets to rustfs-dst run --scenario: all, core, enterprise, replication, governance, pools, security, data.

Related Issues

Closes #7

Verification

  • cargo fmt --all -- --check: passed
  • cargo clippy --workspace --all-targets -- -D warnings: passed (0 warnings)
  • cargo test --workspace: 31/31 tests passed (including identical_seeds_produce_identical_passing_reports across all 26 scenarios)
  • rustfs-dst verify-determinism --topology 4x4 --seed 2026: 26/26 scenarios bit-identical
  • rustfs-dst run --scenario all --seeds 20 on 4x4 and 3x2: 1,040/1,040 runs passed with 0 invariant violations

@loverustfs
loverustfs merged commit a1940e3 into main Nov 28, 2026
1 check passed
@loverustfs
loverustfs deleted the feat/enterprise-19-dst-scenarios branch November 28, 2026 03:34
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.

feat(sim): add 19 enterprise DST & chaos scenarios (replication, WORM, ILM, pools, OIDC, audit, tiering, S3 Tables, quota, migration)

1 participant