Update crates/meilisearch-types/src/keys.rs

Co-authored-by: gui machiavelli <hey@guimachiavelli.com>
This commit is contained in:
Mubelotix
2025-07-08 12:18:52 +02:00
committed by GitHub
parent 28adbc0d18
commit a56c036994

View File

@ -149,7 +149,7 @@ impl Key {
let uid = Uuid::new_v4(); let uid = Uuid::new_v4();
Self { Self {
name: Some("Default Read-Only Admin API Key".to_string()), name: Some("Default Read-Only Admin API Key".to_string()),
description: Some("Use it to peek into the instance in a read-only mode. Caution: This key gives you access to all the other api keys. Do not expose it on a public frontend".to_string()), description: Some("Use it to read information across the whole database. Caution! Do not expose this key on a public frontend".to_string()),
uid, uid,
actions: vec![Action::AllGet, Action::KeysGet], actions: vec![Action::AllGet, Action::KeysGet],
indexes: vec![IndexUidPattern::all()], indexes: vec![IndexUidPattern::all()],