Files
rustfs/docs
Chris An 854dd7d1ea fix(iam,admin,oidc): harden IAM, MFA, OIDC, and admin endpoints (#9641)
* 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
2026-11-26 14:03:32 +08:00
..

Documentation

Use the focused indexes rather than treating this directory as an unordered collection:

Operations

For PUT cleanup admission, blocking-pool isolation, and optional CPU affinity, see PUT cleanup isolation.

For the logical per-operation io_uring read cap, see io_uring read chunk size.

For bounded local read-backend startup and cancellation, see io_uring backend initialization.

For legacy protection assessment and bounded protected copies, see Object integrity inventory, audit, and migration.

For encrypted listing compatibility and older stored fingerprints, see Encrypted object ETags.

For durable hard quota accounting, node-outage behavior, and fence protocol upgrades, see Durable hard quotas.

Operational runbooks live under operations/. Replication operators should start with:

Runbook Use it for
Site replication operations Health fields, pending operations, outage recovery, re-pair admission, IAM/SSE boundaries, and upgrades.
Replication target check Validating an S3 destination and version fidelity before enabling replication.
Replication object size limits Multipart routing, large-object limits, and retry characteristics.
Replication outbound transport Integrity headers, generic target behavior, and transport knobs.

For the erasure-coded cluster lifecycle (planning, parity and EC:0, expansion, rebalance, decommission, heal, drive replacement, restart recovery, and the rc CLI mapping), start with Cluster and erasure-coding lifecycle operations.

For concurrent bucket creation and deletion, see Bucket operation admission.

For persisted administrator bucket tasks and bucket recreation, see Bucket heal recovery.

For interrupted object deletions and returning drives, see Delete transaction recovery.

For disk replacement across VM restarts and schema 5/6 maintenance migration, see Replacement generation recovery.

For historical GET timeouts during PUT or Heal, see Object lock contention diagnostics.

Other runbooks remain grouped by filename in operations/; architecture pages link to the relevant runbook where a cross-boundary procedure is required.

For storage dashboards, see Storage metrics and observer selection: drive ownership, snapshot freshness, counter queries, and rolling upgrades.

For per-bucket capacity and object counts, see Bucket usage metrics: OTLP export, cluster deduplication, accounting semantics, and scanner freshness.

For optional shard commitments, see Independent shard integrity rollout: activation, legacy repair results, multipart mode changes, and rollback limits.

For crates.io publication of workspace crates, see Workspace Cargo Publish: dependency ordering, dry-run, publish, and failure handling.