mirror of
https://github.com/rustfs/rustfs.git
synced 2026-12-03 06:36:35 +00:00
2e5e99a994
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