fix(iam): add correctly named policy APIs (#5457)

This commit is contained in:
Zhengchao An
2026-07-30 08:55:23 +08:00
committed by GitHub
parent 920705417c
commit 2d4f77fd3b
5 changed files with 51 additions and 12 deletions
+1 -1
View File
@@ -148,7 +148,7 @@ impl Operation for ListCannedPolicies {
return Err(s3_error!(InternalError, "iam is not initialized"));
};
let policies = iam_store.list_polices(&query.bucket).await.map_err(|e| {
let policies = iam_store.list_policies(&query.bucket).await.map_err(|e| {
warn!(
component = LOG_COMPONENT_ADMIN,
subsystem = LOG_SUBSYSTEM_POLICY,
+1 -1
View File
@@ -724,7 +724,7 @@ impl Operation for ExportIam {
match file {
ALL_POLICIES_FILE => {
let policies: HashMap<String, rustfs_policy::policy::Policy> = iam_store
.list_polices("")
.list_policies("")
.await
.map_err(|e| S3Error::with_message(S3ErrorCode::InternalError, e.to_string()))?;
let json_str = serde_json::to_vec(&policies)