mirror of
https://github.com/rustfs/rustfs.git
synced 2026-12-01 13:44:49 +00:00
e91d961f45
* test(security): expand authz, OIDC, table LIST, and audit coverage Add end-to-end, integration, and property-based security regression suites closing in-repo RustFS test gaps across authorization, table-bucket LIST isolation, OIDC web-identity federation, streaming SigV4 chunks, multipart checksum algebra, and auth-failure audit delivery: - Add table-bucket LIST isolation E2E tests across ListObjectsV2, ListObjectVersions, and ListMultipartUploads covering delimiter CommonPrefixes, opaque cursor confidentiality, cursor-attack rejection, and >1000-object all-hidden raw page traversal. - Wire fast delete_authorization_test, table_list_isolation_test, oidc_web_identity_e2e_test, and auth_failure_audit_test cases into .config/nextest.toml e2e-smoke (updating e2e-smoke/e2e-full selection digests and raising security-smoke-floor to 29). - Expand delete_authorization_test with anonymous force-delete / spoofed REPLICA denial and Object Lock (GOVERNANCE bypass, COMPLIANCE, Legal Hold) enforcement regressions. - Add OIDC AssumeRoleWithWebIdentity E2E matrix (E2E-01..E2E-13, multi- audience, inline session-policy intersection) and rustfs-iam web-identity integration tests (tampered payload, alg=none, HS256 confusion, malformed/missing-iss tokens, OTHER_AUDIENCES, concurrent JWKS rotation, multi-provider routing, refresh_token flow, and iat/exp/nbf boundaries). - Add signed aws-chunked truncated-terminator and reordered-chunk negative E2E tests (PutObject and UploadPart), multipart ETag-of-ETags and COMPOSITE/FULL_OBJECT checksum proptests in rustfs-rio and rustfs-ecstore, live audit webhook denial delivery tests (with honest characterization of gateway SignatureDoesNotMatch auditing), and fuzz/proptest + GHSA regression admission rules in AGENTS.md and adversarial-validation.md. Refs: rustfs/backlog#2675, rustfs/backlog#2724, rustfs/backlog#1151 * test(security): bound listing checks and allow new audit events * fix(ci): stop sending deprecated policy field in s3-tests add-user rustfs/rustfs#9677 hardened /rustfs/admin/v3/add-user to fail closed when a non-empty deprecated policy field is provided. scripts/s3-tests/run.sh was still passing policy=readwrite in the add-user body even though it immediately calls set-user-or-group-policy right after, and awscurl returned exit 0 on XML <Error> responses so provisioning silently failed and broke all alt-user s3-tests. Remove the deprecated policy field from the add-user payload, check awscurl responses for XML <Error> elements in provisioning, and add a regression unit test in scripts/s3-tests/test_runner_tools.py. Refs: rustfs/backlog#1246 * fix(ci): fail S3 user provisioning on HTTP errors without logging responses * fix(iceberg): reject repeated warehouses before validating bucket names * test(ecstore): wait for relaxed writes on the foreground lane * test(quota): isolate concurrent real-disk probes in CI * test(ecstore): scope upload lock identity helper to its Linux test * ci: allow cold builds to finish all fuzz binaries
ecstore Integration Tests
MinIO-generated encrypted fixtures
rustfs/src/storage/minio_generated_read_test.rs validates the bitrot -> GetObjectReader path against raw MinIO backend data captured by
.\rustfs\scripts\minio_fixture_lab\lab.py.
It currently covers multipart fixtures for:
sse-s3-multipart-8msse-kms-multipart-8m
Required environment variables:
RUSTFS_MINIO_FIXTURE_ROOTRUSTFS_MINIO_STATIC_KMS_KEY_B64
Example:
$env:RUSTFS_MINIO_FIXTURE_ROOT = '.\rustfs\tmp\minio-fixture-lab-local-key'
$env:RUSTFS_MINIO_STATIC_KMS_KEY_B64 = '<base64-32-byte-local-minio-kms-key>'
cargo +1.97.1 test -p rustfs --features rio-v2 storage::minio_generated_read_test --lib -- --ignored