We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bb5461d + f3735fa commit f9e9b00Copy full SHA for f9e9b00
src/query/users/src/user_api.rs
@@ -38,6 +38,7 @@ use common_meta_store::MetaStore;
38
use common_meta_store::MetaStoreProvider;
39
use common_meta_types::MatchSeq;
40
use common_meta_types::MetaError;
41
+use tracing::warn;
42
43
use crate::idm_config::IDMConfig;
44
@@ -69,6 +70,14 @@ impl UserApiProvider {
69
70
idm_config: IDMConfig,
71
) -> Result<Arc<UserApiProvider>> {
72
let client = MetaStoreProvider::new(conf).create_meta_store().await?;
73
+ for user in idm_config.users.keys() {
74
+ match user.as_str() {
75
+ "root" | "default" => {
76
+ warn!("Reserved built-in user `{}` will be ignored", user);
77
+ }
78
+ _ => {}
79
80
81
Ok(Arc::new(UserApiProvider {
82
meta: client.clone(),
83
client: client.arc(),
0 commit comments