mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-10 07:06:53 +00:00
feat: add ImportIam handle
This commit is contained in:
@@ -1549,6 +1549,7 @@ where
|
||||
);
|
||||
}
|
||||
}
|
||||
UserType::None => {}
|
||||
}
|
||||
|
||||
Ok(())
|
||||
|
||||
@@ -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 => "",
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
@@ -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(());
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user