mirror of
https://github.com/openobserve/openobserve.git
synced 2026-11-05 08:09:22 +00:00
feat: add new ENV to set token for root user (#6438)
This commit is contained in:
@@ -252,7 +252,11 @@ pub async fn cli() -> Result<bool, anyhow::Error> {
|
||||
role: Some(meta::user::UserRole::Root),
|
||||
first_name: Some("root".to_owned()),
|
||||
last_name: Some("".to_owned()),
|
||||
token: None,
|
||||
token: if cfg.auth.root_user_token.is_empty() {
|
||||
None
|
||||
} else {
|
||||
Some(cfg.auth.root_user_token.clone())
|
||||
},
|
||||
},
|
||||
)
|
||||
.await?;
|
||||
|
||||
Reference in New Issue
Block a user