feat: add ImportIam handle

This commit is contained in:
weisd
2025-07-01 11:37:10 +08:00
parent 2b1241de96
commit f069790a72
6 changed files with 308 additions and 21 deletions
+1
View File
@@ -1549,6 +1549,7 @@ where
);
}
}
UserType::None => {}
}
Ok(())
+2
View File
@@ -59,6 +59,7 @@ pub enum UserType {
Svc,
Sts,
Reg,
None,
}
impl UserType {
@@ -67,6 +68,7 @@ impl UserType {
UserType::Svc => "service-accounts/",
UserType::Sts => "sts/",
UserType::Reg => "users/",
UserType::None => "",
}
}
}
+1
View File
@@ -445,6 +445,7 @@ impl Store for ObjectStore {
UserType::Reg => IAM_CONFIG_USERS_PREFIX.as_str(),
UserType::Svc => IAM_CONFIG_SERVICE_ACCOUNTS_PREFIX.as_str(),
UserType::Sts => IAM_CONFIG_STS_PREFIX.as_str(),
UserType::None => "",
};
let (ctx_tx, ctx_rx) = broadcast::channel(1);
+1 -1
View File
@@ -416,7 +416,7 @@ impl<T: Store> IamSys<T> {
extract_jwt_claims(&u)
}
pub async fn delete_service_account(&self, access_key: &str) -> Result<()> {
pub async fn delete_service_account(&self, access_key: &str, _notify: bool) -> Result<()> {
let Some(u) = self.store.get_user(access_key).await else {
return Ok(());
};