From 96152a3d32a4c1c076daaada771b8812043281f9 Mon Sep 17 00:00:00 2001 From: ManyTheFish Date: Tue, 31 May 2022 14:18:34 +0200 Subject: [PATCH] Change default API keys names and descriptions --- meilisearch-auth/src/key.rs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/meilisearch-auth/src/key.rs b/meilisearch-auth/src/key.rs index bdabb2b21..f55993607 100644 --- a/meilisearch-auth/src/key.rs +++ b/meilisearch-auth/src/key.rs @@ -112,8 +112,8 @@ impl Key { let now = OffsetDateTime::now_utc(); let uid = Uuid::new_v4(); Self { - name: Some("admin".to_string()), - description: Some("Default Admin API Key (Use it for all other operations. Caution! Do not use it on a public frontend)".to_string()), + name: Some("Default Admin API Key".to_string()), + description: Some("Use it for all other than search operations. Caution! Do not expose it on a public frontend".to_string()), uid, actions: vec![Action::All], indexes: vec!["*".to_string()], @@ -127,10 +127,8 @@ impl Key { let now = OffsetDateTime::now_utc(); let uid = Uuid::new_v4(); Self { - name: Some("search".to_string()), - description: Some( - "Default Search API Key (Use it to search from the frontend)".to_string(), - ), + name: Some("Default Search API Key".to_string()), + description: Some("Use it to search from the frontend".to_string()), uid, actions: vec![Action::Search], indexes: vec!["*".to_string()],