From a1d20ea8c8e515960b9a67745e0fe2274b030892 Mon Sep 17 00:00:00 2001 From: mpostma Date: Tue, 19 May 2020 10:24:03 +0200 Subject: [PATCH] remove keys in welcome message --- meilisearch-http/src/main.rs | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/meilisearch-http/src/main.rs b/meilisearch-http/src/main.rs index 3f64493b7..f6df9d2f3 100644 --- a/meilisearch-http/src/main.rs +++ b/meilisearch-http/src/main.rs @@ -110,16 +110,8 @@ pub fn print_launch_resume(opt: &Opt, data: &Data) { eprintln!(); - if let Some(master_key) = &data.api_keys.master { - eprintln!("Master Key:\t{:?}", master_key); - - if let Some(private_key) = &data.api_keys.private { - eprintln!("Private Key:\t{:?}", private_key); - } - - if let Some(public_key) = &data.api_keys.public { - eprintln!("Public Key:\t{:?}", public_key); - } + if data.api_keys.master.is_some() { + eprintln!("A Master Key has been set. Requests to MeiliSearch won't be authorized unless you provide an authentication key."); } else { eprintln!("No master key found; The server will accept unidentified requests. \ If you need some protection in development mode, please export a key: export MEILI_MASTER_KEY=xxx");