openidconnect 4.1.0 is the only consumer of rsa 0.9.10 and has no
released rsa 0.10 build. Vendor that crate, retarget JWS verification
to rsa 0.10, and remove the exception that expired on 2026-07-31.
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Chris An <overtrue@users.noreply.github.com>
Propagate verified proxy transport/client context and request-scoped
server context slots across admin authentication and authorization,
including task-scoped IAM root credential lookup so multi-instance
embedded servers do not leak ambient credentials across server domains.
Fail closed with InvalidArgument on non-empty AddOrUpdateUserReq.policy
in both the add-user admin handler and IamSys::create_user, normalizing
empty policy strings to None before persistence and site-replication
hooks.
Wrap GetKmsStatusHandler authorization denials in KmsAdminAudit::gate_admin
using KmsAdminOperation::Status, apply bucket-scoped authorization
symmetrically across bucket quota write and read handlers, and restore the
guardrail comment documenting direct is_allowed evaluation in
service_account.rs.
Enable bucket and object resource matching for scoped admin actions
(SetBucketQuota, GetBucketTarget, SetBucketTarget, InspectData) in the
policy evaluator and wire resource-scoped authorization into replication
remote-target and inspect-data handlers. Align bulk access-key routes on
ListUsersAdminAction for cross-user queries and enforce strict S3 bucket
name validation on quota and table-catalog warehouse parameters.
Refs: rustfs/backlog#1469, rustfs/backlog#1246, rustfs/backlog#1886, rustfs/backlog#2526
Port the scanner folder walker from #9623 onto current main so nested
directory polls no longer grow the worker stack. Keep later main
behavior for object metadata, lifecycle, heal discovery, and child
errors.
Refs rustfs/backlog#3293
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Chris An <overtrue@users.noreply.github.com>
Harden the Swift protocol layer across request body boundaries, storage
quotas, FormPost redirects, and server-side encryption:
- Bound control-plane and streaming request bodies at the HTTP frame and
decompression boundaries (bulk-delete, bulk-extract tar/gzip/bzip2,
FormPost multipart, SLO PUT) and cap bulk path/error/part/field counts.
- Enforce MAX_OBJECT_SIZE for unknown-length and mismatched-length object
uploads via a contract-safe streaming byte-cap reader, reject negative or
malformed Content-Length headers, and enforce container byte/count quotas
across PUT, bulk extract, FormPost, SLO, DLO, and COPY with serialized
in-flight reservations and immediate usage-overlay updates.
- Reject unauthenticated or expired FormPost requests with 401 without
issuing a redirect, validate signed redirect schemes, restrict unsigned
redirect_error targets to the signed redirect origin, and preserve binary
upload payloads losslessly.
- Honor bucket default SSE-S3/SSE-KMS on Swift writes (failing closed on
unreadable encryption config or missing Content-Length) and authorize
kms:Decrypt before DEK unwrap on Swift GET and COPY.
- Fix an unconditional SessionContext import in dummy_storage.rs so
rustfs-protocols compiles under both default and swift features.
Refs: rustfs/backlog#1471, rustfs/backlog#1474, rustfs/backlog#1473, rustfs/backlog#2702
Add .config/advisory-exceptions.toml (schema_version=1) and scripts/security/check_advisories.py to enforce pinned cargo-deny (0.20.2), advisory-db freshness (<=24h verified cache fallback), bidirectional deny.toml alignment, 90-day max UTC validity windows, exact version scope matching, and PR base-diff approval checks.
Wire security-advisories into ci.yml (ALWAYS_JOBS, required-checks, alert-on-failure, PLAN_CONTRACT=10), align daily audit.yml while preserving all four cargo-deny categories, and register --self-test in make script-tests.
Historical RUSTSEC-2023-0071 (transitive rsa 0.9.10 via openidconnect 4.1.0; direct rsa upgraded to patched 0.10.0 in PR #9492) retains its expired 2026-07 review window and intentionally fails closed until maintainer risk acceptance or upstream upgrade lands.
Refs: rustfs/backlog#2668
fix(gateway): harden post-cutover S3 auth, body limits, and context isolation
Address nine post-cutover parity and isolation regressions against rustfs/gateway:
- Keep expired STS sessions enabled in gateway-adapter so gateway returns 400 ExpiredToken (retiring c-cred-0020 ruling) while disabled/invalid STS and expired service accounts remain disabled.
- Remove pre-auth 20 MiB ControlBodyDigestService buffering from S3/gateway listeners, preserving console-listener route isolation via ConsoleListenerRouteService and post-auth SigV2 Content-MD5 checks on DeleteObjects and non-empty config PUTs.
- Stop copying unsigned wire x-amz-server-side-encryption* headers into PostObjectPolicyHeaders during preflight authorization.
- Source live_root() credentials and token signing key strictly from ServerContextSlot rather than process globals.
- Configure max_framed_upload_bytes(5 GiB) and upload_object_ceiling(5 GiB) on GatewayStack.
- Initialize S3 and ListObjects metrics on GatewayStack::assemble.
- Inject ServerContextSlot into NativeConsoleEdgeService request extensions.
- Scope ProtocolStorageClient is_owner and list_buckets IAM lookup to ServerContextSlot without breaking direct-write BucketGenerationGuard invariants.
- Wire verify_paths_double_encoded_under(TABLE_CATALOG_PREFIXES) in native admin, record 204 NO_CONTENT on PutBucketPolicy audit entries, and set explicit 500 status on HeadObject ErrMeta.
Update taiki-e/cache-cargo-install-action in .github/workflows/ci.yml to v3.0.8 (9ee83daaa7b96a6fab930949ecf1122bba04a389), which pins its nested actions/cache reference to commit SHA 55cc8345863c7cc4c66a329aec7e433d2d1c52a9 (v6.1.0).
This removes the sole unpinned nested composite action across all 39 unique third-party actions in the repository and unblocks enabling GitHub repository sha_pinning_required.
Refs: rustfs/backlog#1602
* fix(ecstore): skip rebalance re-copy when target holds the version
A rebalance that stops after an object version is committed on the target pool and before its source copy is removed leaves that version in both pools. The next run uploaded every part of a multipart object again and only found the existing copy when the create-only completion was refused, so a retry cost the whole object.
Look up the pool the copy would be written to before starting the multipart upload, and settle on it when it already holds the strictly equivalent version. Decommission with a capacity owner already does this; callers without one now do too. A lookup that fails or finds no equivalent copy falls through to the unchanged copy path.
* fix(ecstore): require write quorum before skipping the rebalance re-copy
The pre-check settled on the target copy whenever an object read returned the equivalent version. That read answers from read quorum: on a 2+2 set with two drives offline it still returns matching metadata, the entry reported the version as moved, and the source copy was removed while the target held two readable shards. The copy path it replaced needs a write quorum to start, so it kept the source in that state.
Count the drives of the target set that hold the version in the committed data directory, once per drive slot and in one fanout, and settle only when a write quorum of them agree. A copy below that leaves the decision to the unchanged copy path.
Add a rebalance entry test on a 2+2 target: with two target drives offline the source survives and stays readable; with the drives back the entry completes on the committed copy without rewriting it.
---------
Co-authored-by: Hauser Zhi <housemecn@gmail.com>
Co-authored-by: Chris An <anzhengchao@gmail.com>
The rio-v2 test, debug-binary, and e2e jobs in ci.yml ran only on the
nightly schedule and manual dispatch. Drop them, the ci-feat-rio cache
warm job that existed for them, and the merge-gate entries that named
them. The rio-v2 feature and minio-interop workflow stay. Default debug,
e2e, and S3 lanes are unchanged.
Bump the CI plan contract so a base planner that still lists those jobs
cannot authorize the new required set.
Co-authored-by: hector <majinghe@users.noreply.github.com>
Co-authored-by: Hauser Zhi <housemecn@gmail.com>
* fix(policy): scope NotAction Allow to named action families
Confine Allow statements built from NotAction to the action families named in their exclusion list so S3 NotAction policies on wildcard or bucket resources cannot implicitly grant admin, STS, or KMS actions. Fail closed when both Action and NotAction are empty, preserve explicit Deny + NotAction reach across all action families, and preserve explicit admin NotAction coverage for sibling admin actions.
Refs: rustfs/backlog#3321
* fix(policy,utils): eliminate exponential wildcard matching
Replace recursive backtracking in wildcard matching (rustfs-policy and rustfs-utils) with iterative O(name.len())-space dynamic programming that collapses consecutive '*' wildcards and preserves allocation-free fast paths for literal and single-'*' patterns. Also cap versioning ExcludedPrefixes count (100) and byte length (1024) in validate_bucket_versioning_update as defense in depth.
Refs: rustfs/backlog#3318
* fix(policy): prefer parent over raw sub for aws:userid variable
Share a single resolve_userid_values helper between VariableResolver::resolve and resolve_multiple that prefers the issuer-scoped parent claim over raw sub, aligning the ${aws:userid} policy variable with the aws:userid condition key derived in auth facts while retaining sub as a fallback when parent is absent.
Refs: rustfs/backlog#3339
* fix(policy): treat anonymous-matching principals as public
Add Principal::is_public() matching either '*' or the empty anonymous account '' through the same wildcard matcher used during request authorization, and switch execute_put_bucket_policy and execute_get_bucket_policy_status to use it so empty and leading-'?' principals cannot bypass BlockPublicPolicy or evade public status classification.
Refs: rustfs/backlog#3357
* fix(s3select): restrict SQL functions to an explicit allowlist
Replace unfiltered DataFusion default scalar, aggregate, and window UDF registration in SimpleFunctionMetadataManager with an explicit S3 Select allowlist, register allowlisted scalar aliases directly, and remove the session scalar-function fallback from MetadataProvider::get_function_meta.
Wrap retained expanding scalar functions (concat, concat_ws, to_char) and any manually registered count-sized functions (repeat, lpad, rpad) with a pre-allocation result-size guard that also re-wraps scalar UDFs produced during expression simplification.
Refs: rustfs/backlog#3317
* fix(s3select): bound SQL operator and nesting depth at parse
Add BoundedRustFsDialect enforcing a per-parse infix/postfix operator budget (MAX_SELECT_OPERATORS) via Dialect::parse_infix returning ParserError::RecursionLimitExceeded, and wire it into both ExtParser::parse_sql and legacy_json_source_from_input.
Also bound set-operation keyword counts before parsing (preventing deeply nested SetExpr chains from overflowing on drop) and bound nested field-access chains during statement preparation.
Refs: rustfs/backlog#3319
* fix(s3select): bound uncompressed record sizes and decoding
Apply RecordSizeTracker (MAX_SELECT_RECORD_BYTES) across uncompressed plain, ScanRange, and ScanRange header reads in EcObjectStore, recognizing CR, LF, and CRLF line endings for default CSV inputs without a custom RecordDelimiter.
Bound session batch sizes and disable batch coalescing for CSV and JSON Lines, replace DataFusion's unbounded stock listing table scan with a byte-bounded, memory-pool-accounted DelimitedSelectTable, keep multi-record JSON Lines schema sampling within the session memory pool budget, and add a StreamFilterOutput physical optimizer rule so FilterExec streams filtered batches without re-coalescing.
Refs: rustfs/backlog#3348
* fix(rpc): gate gRPC boot-epoch proofs on verified signatures
Stop computing and attaching secret-keyed boot-epoch, replay-cache, and msgpack capability response proofs before gRPC authentication runs in RpcRequestPathService::call.
Gate proof generation on an RpcSignatureVerified request marker raised by check_auth only after the internode HMAC signature has verified, including post-HMAC rejections (stale boot epoch, replay-scope retries, replay detection, and replay-cache/background admission resource exhaustion) required for cluster recovery.
Verify the method-bound v2 HMAC signature before returning replay_scope_required in verify_tonic_rpc_signature_with_policy so unsigned, legacy-only, or forged callers never trigger a post-HMAC rejection reason or consume replay-cache capacity.
Refs: rustfs/backlog#3326
* fix(keystone): namespace parent_user by Keystone user ID
Set Credentials.parent_user in KeystoneAuthProvider::keystone_token_to_credentials to the namespaced Keystone identity (keystone:<user_id>, matching access_key) instead of the bare Keystone username.
This prevents an external Keystone username from colliding with a local IAM user or the root access key in service-account ownership checks and the is-admin handler while keeping the username available in Credentials.name and claims["keystone_username"].
Update the keystone unit tests and HTTP/3 external stack test expectations, and add regression coverage verifying colliding usernames are never placed in parent_user.
Refs: rustfs/backlog#3362
---------
Co-authored-by: Hauser Zhi <housemecn@gmail.com>
* fix(ecstore): stop bucket presence checks at read quorum
A metadata-only bucket probe can finish after the existing read quorum has confirmed the volume. Preserve full error reduction when quorum has not been reached and keep ordered bucket info and mutation callers on their existing path.
Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>
* perf(ecstore): bound PUT rename dialing after write quorum
Share a post-quorum connection deadline across remote rename producers. Unresolved connections can be skipped before dispatch while active mutations drain under the normal namespace owner.
Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>
* perf(ecstore): simplify quorum probes and rename fanout
Keep presence-only probes typed as unit results and share their cross-set error reduction with bucket-info queries. Reuse one path owner across disk rename tasks and allocate a connect deadline only when there is a spare.
Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>
* perf(ecstore): bound PUT rename preparation after quorum
Apply a single pre-dispatch deadline to remote routing and permit admission. Encode the request once those resources are available and keep existing ownership for dispatched mutations.
Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>
* test: fix SSE-C lint and native multipart copy-heal setup
Count warning matches directly and bind native multipart staging to the real bucket incarnation while preserving the historical version fixture.
Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>
* test(ecstore): qualify retention fixture metadata type
The default test build includes this fixture without the test-util imports.
Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>
* test(scanner): seed checkpoint owner metadata directly
Keep the production object threshold and physical checkpoint barriers while avoiding a full PUT for every fixture entry.
Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>
* fix(ecstore): serialize Windows trash cleanup per entry
Keep the per-path lease in the physical deletion worker and compile Unix-only test helpers only on their supported platforms.
Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>
---------
Co-authored-by: heihutu <heihutu@gmail.com>
Co-authored-by: zhi22915 <qiuzgang@gmail.com>
Co-authored-by: qunjiazhu <qunjiazhu@gmail.com>
Co-authored-by: Chris An <anzhengchao@gmail.com>
* fix(sosapi): distinguish pending and invalid usage proof
Expose neutral bucket usage states from the existing snapshot cache. Maintain the legacy scalar projection and map only pending certification to undefined SOSAPI usage.
Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>
* ci(test): isolate three disk-bound ECStore probes
Reserve nextest capacity for the physical Apply barrier and the two same-name multipart probes in the CI profile. Preserve their deadlines, assertions, and internal concurrency.
Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>
---------
Co-authored-by: heihutu <heihutu@gmail.com>
Co-authored-by: zhi22915 <qiuzgang@gmail.com>
Co-authored-by: qunjiazhu <qunjiazhu@gmail.com>
Co-authored-by: Chris An <anzhengchao@gmail.com>
Track the maximum of each sampled stage window. Keep the existing
summary API and row format while exposing the maxima separately.
Unlock before sorting and format stage rows into shared buffers.
Co-authored-by: heihutu <heihutu@gmail.com>
Co-authored-by: zhi22915 <qiuzgang@gmail.com>
Co-authored-by: qunjiazhu <qunjiazhu@gmail.com>
Keep each writer's disk permit with the physical directory sync
and acquire one global permit per admitted batch. Route non-inline
grouped commits through the same admission and rollback path.
Co-authored-by: heihutu <heihutu@gmail.com>
Co-authored-by: zhi22915 <qiuzgang@gmail.com>
Co-authored-by: qunjiazhu <qunjiazhu@gmail.com>
Co-authored-by: Chris An <anzhengchao@gmail.com>
* fix(s3): skip redundant reads for plain bulk deletes
Plain unversioned DeleteObjects entries use source metadata read under the storage write lock. Skip the advisory read that duplicates lock acquisition per request entry, preserve condition and version boundaries, and exercise 16 duplicate DELETE entries while a writer holds the key.
Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>
* test(s3): use the storage facade for the delete barrier
Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>
* fix(s3): skip redundant bulk preflight for suspended versions
Apply the same locked-source path to unconditioned, versionless entries in suspended buckets. Verify that duplicate requests reach storage while a writer owns the object and that the suspended delete publishes its marker.
Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>
* fix(test): import the delete barrier through the public API
Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>
---------
Co-authored-by: heihutu <heihutu@gmail.com>
Co-authored-by: zhi22915 <qiuzgang@gmail.com>
Co-authored-by: qunjiazhu <qunjiazhu@gmail.com>
Co-authored-by: Chris An <anzhengchao@gmail.com>
Keep commit_opts.expected_bucket_incarnation_id unchanged when callers pass None in capture_commit_metadata_snapshot_for_options_in, retain preloaded prefix-object Object Lock results until after acquiring the object write lock in SetDisks::delete_object, allow collect_list_parts_results to prove an empty part directory when at least read_quorum disks report FileNotFound and fewer than read_quorum disks are unavailable, and align account_permissions, multipart completion quota, and data-movement replacement tests with #9646.
Refs: rustfs/backlog#3329
Refs: rustfs/backlog#3333
Refs: rustfs/backlog#3345
Refs: rustfs/backlog#3349
Map VersionMarker::parse failures in list_objects::parse_version_marker to StorageError::InvalidVersionID instead of propagating uuid::Error as StorageError::Other, which mapped to HTTP 500 InternalError.
StorageError::InvalidVersionID maps to S3ErrorCode::InvalidArgument (HTTP 400) across ListObjectVersions, metadata version listings, and table-isolated version listings. Add regression tests for invalid version-id-marker rejection and control-character delimiter handling.
#9646 authorizes s3:PutObjectTagging after s3:PutObject when the
request carries object tags. The bucket-tag OPA contract still
consumed only PutObject, so the next GetObjectVersion check saw the
tagging decision. Keep the existing checks and record the tagging
decision for the tagged put and each successful copy.
* fix(admin): validate bucket name in v3 inspect-data
Refs: rustfs/backlog#3320
* fix(admin): enforce SSE-KMS auth on zip download & inspect-data
Refs: rustfs/backlog#3316
* fix(admin): restrict site-replication peer routes to replicator
Refs: rustfs/backlog#3324
* fix(admin): bound ZIP download staging concurrency, size & idle
Refs: rustfs/backlog#3338
* fix(admin): redact sensitive headers in Object Lambda payload
Refs: rustfs/backlog#3360
* fix(iam): enforce session policy bounds on service accounts
Promote copied creator session policies into embedded service-account policies on create, block bounded non-federated callers from replacing their policy boundary, cap policy-bounded STS expiration, and prevent policy-bounded or non-owner root-parented updates from escaping via policy, secret, status, or expiration changes.
Refs: rustfs/backlog#3323
* fix(admin): block restricted STS service-account owner fallback
Reject STS sessions carrying sessionPolicy or sessionPolicy-extracted claims from owner self-service fallbacks in ListServiceAccount, InfoServiceAccount, InfoAccessKey, ListAccessKeysBulk, and DeleteServiceAccount while preserving revision-bound deletes, active policyless user handling, and unrestricted Console STS sessions.
Refs: rustfs/backlog#3334
* fix(iam): persist MFA lockout state on failed verifications
Persist mutated MfaRecord instances through the compare-and-set loop in mfa::store::update even when the mutation closure returns an error, so failed_attempts and locked_until survive across requests and engage rate-limit lockouts while unchanged rejections avoid creating records.
Refs: rustfs/backlog#3356
* fix(admin): deny restricted STS parent credential mutations
Add CredentialMutationDenial::RestrictedSession in CallerIdentity::from_credentials to reject STS sessions carrying sessionPolicy or sessionPolicy-extracted claims from mutating their parent's password or MFA, while preserving TableStorageSession precedence and unrestricted Console STS sessions.
Refs: rustfs/backlog#3353
* fix(iam): require step-up proof to re-enroll active MFA
Require proof of the active second factor inside mfa::service::enroll's CAS update and verify the current secret key in AccountMfaEnrollHandler when MFA is already enabled, preserving first-time enrollment without a current code and enforcing persisted failure lockouts on failed step-up codes.
Refs: rustfs/backlog#3346
* fix(oidc): use LRU state eviction and per-IP authorize limit
Switch OidcStateStore auth and logout caches from TinyLFU to LRU eviction so full caches admit new logins instead of discarding them while abandoned entries age out.
Add a bounded per-client-IP token-bucket rate limit to OidcAuthorizeHandler keyed on the verified peer/trusted-proxy IP so a single client cannot churn through the state store during another user's IdP round-trip.
Refs: rustfs/backlog#3337
* fix(oidc): bind callback provider to state before code exchange
Thread the callback route provider_id from OidcCallbackHandler through FederatedIdentityService::complete_authorization_code and StandardOidcAuthentication::exchange_identity into OidcSys::exchange_code.
Reject mismatched session.provider_id != provider_id immediately after consuming the single-use state and before constructing any client or sending any outbound token request (RFC 9700 section 4.4).
Refs: rustfs/backlog#3358
* fix(oidc,sts): sanitize public OIDC and STS verification errors
Stop echoing raw FederationError::CodeExchange diagnostics from OidcCallbackHandler so internal provider settings (config_url, token_endpoint, client_id) stay in server logs while preserving the invalid/expired state message and load-balancer affinity hint.
Sanitize FederationError::TokenVerification in AssumeRoleWithWebIdentity into fixed, actionable client-facing failure categories while stripping backend metadata-refresh diagnostics so internal discovery URLs are never exposed.
Refs: rustfs/backlog#3359
* fix(oidc): bind console OIDC login state to initiating browser
Have OidcAuthorizeHandler emit an HttpOnly, SameSite=Lax rustfs_oidc_state cookie (Secure over HTTPS, scoped to the callback path, 300s Max-Age) carrying the authorization state.
Verify the cookie against the callback state query parameter with constant_time_eq in OidcCallbackHandler before consulting the federation service or consuming the server-side state, and clear the cookie on callback completion.
Refs: rustfs/backlog#3363
* fix(idp,iam): classify listed STS sessions by claims for revoke
Add guess_sts_user_provider to classify listed STS accounts directly from decoded claims rather than requiring a non-empty session_token (which list_sts_accounts strips), and use it in revoke_matching_sts_accounts and collect_access_keys_for_user.
Return the store-loaded UserIdentity from verify_temp_user_persistence in set_temp_user_with_generation so freshly issued STS sessions cache decoded JWT claims on the issuing node while strictly preserving sts_generation.
Refs: rustfs/backlog#3365
Check the owning instance's registry after the queued renewal and heal
finish. Preserve the contention check and verify that both registries
publish the same new disk handle.
Co-authored-by: heihutu <heihutu@gmail.com>
Co-authored-by: zhi22915 <qiuzgang@gmail.com>
Co-authored-by: qunjiazhu <qunjiazhu@gmail.com>
Bump the pinned rustfs/gateway revision to 095d4763a3f58a5e1d22fe7a231bf1c105473de8
(#1620, independent service-scoped dialects with single-segment path claims) and
add an independent SigService::S3 reserved-console host for console-disabled
listeners (such as the S3 port when a dedicated console listener is enabled).
Both default (/rustfs/console) and custom single-segment console prefixes (/ui,
/UI_assets) plus root icon paths now bypass S3 bucket-name parsing while keeping
original-URI SigV4 verification intact: anonymous and SigV2 requests receive
403 AccessDenied and validly signed SigV4 requests receive 501 NotImplemented,
matching RustFS 1.0.5 while preserving extension/Object Lambda precedence and
dedicated console listener 200 responses (rustfs/backlog#2771).
Align the canonical external middleware stack order comment and
baseline::MIDDLEWARE_LAYER_COUNT (22 -> 24) with EXTERNAL_STACK_CENSUS,
add middleware_matrix_census to pin the 19 Keep + 5 KeepRetainedCompat
T2.12 adjudication and forbid reintroducing the five deleted s3s patch
layers, and update the retained server::legacy_compat module headers to
record their active outer-edge duties per rustfs/backlog#2771.
Allow raw PUT validation to require a completion rate after a fixed
cutoff in the common active interval. Preserve the whole-window report
when the requested steady rate falls below the minimum.
Co-authored-by: heihutu <heihutu@gmail.com>
Co-authored-by: zhi22915 <qiuzgang@gmail.com>
Co-authored-by: qunjiazhu <qunjiazhu@gmail.com>
* fix(ecstore): use recovery deadline for bulk delete prepare
Wait for the complete per-drive batch response under the bounded delete recovery deadline. Preserve the ordinary control timeout for single-object preparation and discovery.
Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>
* perf(ecstore): defer batch marker cleanup after receipt quorum
Use the existing recovery worker for committed marker cleanup when the batch fits the hint queue and the current hint generation is present. Keep the existing inline path under backpressure.
Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>
* perf(ecstore): reduce bulk delete results once per key
Reuse the per-drive group results for quorum reduction, rollback, and marker purge, avoiding the per-object disk-error matrix. Keep certified cleanup inline after the crossover experiment increased immediate verification and cleanup time.
Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>
---------
Co-authored-by: heihutu <heihutu@gmail.com>
Co-authored-by: zhi22915 <qiuzgang@gmail.com>
Co-authored-by: qunjiazhu <qunjiazhu@gmail.com>
Add GatewayStack::object_lambda_fallback backed by an Object Lambda
companion control-plane dialect and service that omits native admin
routes, mount all remaining 5 GET native control-plane admin operations
(completing 12/12 native claimed admin routes with pre-body IAM
enforcement) while preserving header-signed and presigned Object Lambda
requests (#1577), and bump the pinned rustfs/gateway revision to
ecafc085de850e1be0c22ba173bf1accc68e75c5 so admin route census enforces
the Object Lambda fallback invariants fail-closed.
Attach IndeterminateAudit as AuthzAuditSink and Observer on GatewayStack so enforced Decision::Indeterminate responses are audited once at the final response boundary without consuming denial rate-limiter budget on discarded pending decisions.
Defer standalone audit runtime initialization when IAM bootstrap is Deferred so init_audit_runtime runs once inside the IAM recovery loop strictly after AppContext installation and before FullReady publication, while keeping inline and embedded startup behavior intact.
Remove sts_query_compat_test::test_bucket_tags_opa_contract from [nightly_extra].e2e in .config/gateway-corpus-tests.toml.
In gateway-acceptance run 45627579166, 314 of 315 nightly E2E cases passed and wire replay passed (502 requests compared, 0 unruled differences, 93 accepted CreateBucket Location differences); the sole failure was test_bucket_tags_opa_contract, which relies on a 5-second OpaMock timeout and SIGKILL offline disk mutation (seed_legacy_duplicate_bucket_tags) rather than ordinary S3 wire shapes. Keeping the remaining 314 E2E and 367 Ceph cases preserves comfortable margin above the 1000-entry corpus gate.
Revert c6ca50ab39 after 1180ebf349 replaced the three AKIA* dummy unknown access keys in sec_signature_matrix_test.rs with non-AKIA TEST* dummy keys, making the three NON_SECRET_LITERALS entries in scripts/check_embedded_secrets.sh stale.
Replace AKIAUNKNOWNEMPTY0001, AKIAUNKNOWNFORGED002, and AKIASTSUNKNOWN000001 in crates/e2e_test/src/sec_signature_matrix_test.rs with non-AWS-prefix 20-character dummy unknown access keys (TESTUNKNOWNEMPTY0001, TESTUNKNOWNFORGED002, TESTSTSUNKNOWN000001).
Preserves the exact unknown-key rejection test semantics while satisfying scripts/check_embedded_secrets.sh without weakening the guard.
Quick Checks failed the embedded-secret guard on three fixed GHSA
fixtures in sec_signature_matrix_test.rs. Those ids must stay
well-formed and unknown so both stacks return InvalidAccessKeyId.
Exempt only those exact strings and leave the tests unchanged.
Include /crates/dialect-rustfs-admin/src/native/ in the sparse-checkout of rustfs/gateway in .github/actions/quick-checks/action.yml.
Commit 3f04fea9b mounted native control-plane admin routes, causing gen_rustfs_admin_route_inventory.py to inspect crates/dialect-rustfs-admin/src/native/ops.rs and native/ops/*.rs; the prior sparse-checkout only listed native/extensions.rs, causing blobless CI checkouts to fail with missing Cargo.lock objects.
Record the maintainer-signed accepted-change exemption from rustfs/backlog#2684#issuecomment-7163283798 (commit 8f81762a6) for external reference-binary comparisons only:
- Exempt only the exact (PutBucketPolicy, negative, error_code, InvalidArgument -> MalformedPolicy) tuple when SideA::Reference is active.
- Keep same-binary self-comparison and any mutated or multi-field difference fail-closed.
- Surface exempted entries in Report.accepted_differences and stdout while preserving reference-parity.yml JSON compatibility.
- Update .config/e2e-smoke-selection.txt and .config/e2e-full-selection.txt for the three new unit tests.
Implement maintainer sign-off item 3 from rustfs/backlog#2684#issuecomment-7163283798 for T3.4 (rustfs/backlog#2775):
- Extend scripts/check_conformance_rulings.py to accept exact ordered `failures = [...]` lists (for multi-diagnostic and multi-line golden/exact_utf8 diffs) alongside single-line `failure = "..."`, and allow the signed ledger IDs `rustfs/backlog#2684`, `rustfs/backlog#2762`, and `rustfs/gateway#1349`. Keep strict ordered exact equality, 90-day expiry bounds, schema validation, and stale-ruling rejection, with expanded --self-test coverage.
- Populate .config/conformance-rulings.toml with all 45 remaining exact diagnostics observed live against rustfs@c010acf6e and rustfs/gateway@4a4360da (51 total ruled, expires 2027-02-01), keeping the existing 6 rulings intact.
Provide the pinned reference release and libfaketime clock to the e2e-full leg of dual-stack-nightly.yml, matching ci.yml:1094-1212.
Fixes the sole nightly failure (703/704 passed; persistence_parity::persistence_byte_parity failing with missing pinned RUSTFS_PERSISTENCE_REFERENCE_BINARY) while keeping the e2e-smoke leg free of persistence-only environment variables and failing closed if either e2e-full input is missing.