mirror of
https://github.com/rustfs/rustfs.git
synced 2026-11-27 10:59:04 +00:00
854dd7d1ea
* 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