mirror of
https://github.com/rustfs/rustfs.git
synced 2026-12-01 13:44:49 +00:00
21fc821938
* chore(deps): bump rustfs/gateway pin to b6007d13 * 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
2.7 KiB
2.7 KiB
S3 stack upgrade and rollback
The gateway release serves S3 with rustfs/gateway. Remove RUSTFS_S3_STACK from service units, container environments and Helm values before upgrading. Even an empty setting prevents startup. Keep the previous release binary or image digest with the deployment configuration.
Roll back to the previous release
- Check the target release against the storage format version floors. If the cluster has written data or metadata that the target cannot read, stop here. The S3 stack switch itself requires no data migration.
- Stop one node, restore the previous RustFS binary or image and start it with the same volumes and configuration. Follow the rolling restart procedure. Wait for the node to report ready and for its peers to report its drives online before replacing another node.
- Through the restored node, read an object written after the upgrade and compare its contents or checksum. Read a bucket configuration used by the application. If an upload was in progress, list its parts and compare their numbers, sizes and ETags with the client's record. Pause the rollout if any check fails.
Client-visible behavior changes
| Change / case | What clients see |
|---|---|
c-sig-0598 (R-053) |
For an access key the S3 parser cannot read, both versions return HTTP 403. The gateway returns the XML error code AccessDenied. The legacy binary returns InvalidAccessKeyId. Clients that classify these errors by code need to handle both during a rollout. |
PutBucketPolicy (#2684, 8f81762a6) |
For a malformed JSON policy body, both versions return HTTP 400. The gateway returns the XML error code MalformedPolicy (matching AWS S3). RustFS 1.0.5 returns InvalidArgument. Clients that classify bucket-policy validation errors by code need to handle both during a rollout. |
CreateBucket (#2684, 8676d2f3b) |
For a successful default-region CreateBucket (200 OK), the gateway returns HTTP Location: /<bucket> (matching AWS S3 and c-bkt-0001). RustFS 1.0.5 omits the Location header. Clients that inspect Location on bucket creation need to handle its presence on gateway nodes and absence on 1.0.5 nodes during a rollout. |
c-sig-0598 is recorded in the pinned gateway conformance rulings; host-assembled conformance rulings are tracked in .config/conformance-rulings.toml, and the signed PutBucketPolicy and CreateBucket accepted-change rulings are recorded in rustfs/backlog#2684.