Add a name query parameter on /keys or a subroute /keys/name to find key by name #478
Replies: 1 comment 1 reply
-
These is the conclusion after a working group on the subject: Name filter in keys routeThe proposition is to add a query parameter to the Example (can be something else):
=> returns {
results: [
{
name: "Admin",
uid: 123123123
// ...
}
]
} CurrentlyThere is query parameter within the API to filter on Questions raised
Is it usefull or notAs for now two contributor raised the need to have a filter on Having this feature helps the user find their key. While the uid is unique, it is not a human-readable nor a memorable name. Which answers the need of Meilisearch to be simple to use. There are use-cases where having the possibility to find the key based on a name is useful. To cut the context into each type of users/team need: Integration: Ease to get the keys when testing Saas: Dave:
Documentation: Asked Tommy:
User experience
Competitors Based on what the other databases (with and without front-end api's) are requiring, we can take inspiration in their design choice.
Use cases
There may be others that we are not aware of. Is it a priorityFollowing the above, no. It's nice to have. Is searching on uid or the key enoughWhat would be the use-case in which a user would search based on these parameters? @gmourier do you have an opinion on this? MetricsLook at the query parameters to see if PollIn favor of adding the parameter 👍 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
As per the v0.28.0 the
name
key will be introduced in the api-keys (see spec).These have as objective to help create deterministic API keys.
As per my previous discussion: #337 , on adding a
name
in the keys, it is a good news that it is introduced as it fixes one of the two request made in the discussion.As per my answer in this discussion #443 we still phase the issue that it requires some processing to find a key:
In my case, this is a process that I use and that I think enters in a lot of automatic API key spreading inside members' spaces on applications.
For example, if I give admin access to a user in my admin dashboard, I would like him to have access to some Meilisearch API keys.
To achieve that, I need to run the code showed above instead of searching with name as a parameter:
Beta Was this translation helpful? Give feedback.
All reactions