Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/query/users/src/user_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ use common_meta_store::MetaStore;
use common_meta_store::MetaStoreProvider;
use common_meta_types::MatchSeq;
use common_meta_types::MetaError;
use tracing::warn;

use crate::idm_config::IDMConfig;

Expand Down Expand Up @@ -69,6 +70,14 @@ impl UserApiProvider {
idm_config: IDMConfig,
) -> Result<Arc<UserApiProvider>> {
let client = MetaStoreProvider::new(conf).create_meta_store().await?;
for user in idm_config.users.keys() {
match user.as_str() {
"root" | "default" => {
warn!("Reserved built-in user `{}` will be ignored", user);
}
_ => {}
}
}
Ok(Arc::new(UserApiProvider {
meta: client.clone(),
client: client.arc(),
Expand Down