Scoped Search Key with Preset Parameters Issue
TLDR Gustavo faces issues with search key generation and preset parameters. Kishore Nallan clarifies how presets work, but the issue remains unresolved, requiring further investigation.

Jun 13, 2023 (3 months ago)
Gustavo
02:13 PMcollection
parameter in generateScopedSearchKey()
.Kishore Nallan
02:17 PMGustavo
02:18 PMGustavo
02:19 PMKishore Nallan
02:19 PMGustavo
02:25 PMper_page: 3
, but the logged result contains 10 items.Gustavo
02:26 PMcollection: users
in the preset, but I can still search on any collection if I try.Gustavo
02:27 PMKishore Nallan
02:30 PMcollection: users
in the preset, but I can still search on any collection if I try.Does the parent API key of the scoped API key restrict to users collection?
Gustavo
02:33 PMcollection
passed in the preset creation request? Does it serve a different purpose?Kishore Nallan
02:45 PMGustavo
02:53 PMper_page
? The preset sets it to 3
and I'm not passing another value explicitly. Why is it being set to the default 10
anyway?Kishore Nallan
04:23 PMGustavo
08:07 PMGustavo
08:09 PMGustavo
08:10 PMhttps://typesense-community.slack.com/archives/C01P749MET0/p1686666301585319?thread_ts=1686665613.494379&cid=C01P749MET0
Jun 14, 2023 (3 months ago)
Kishore Nallan
12:01 PM
Typesense
Indexed 2764 threads (79% resolved)
Similar Threads
Trouble with Scoped Search API Keys in Flutter App
Shane struggled with scoped search API keys in Typesense library for a Flutter app, which returned a 401 error. Jason identified that the error may be a result of an invalid filter within the key, and instructed to create separate keys for different permissions. On implementation, the error was resolved.

Issues with Generating Scope API Keys in Python
Danny had issues generating a valid scope API key in a Python GraphQL server. Jason suggested encoding changes and confirmed that the key length varies. Issue unresolved with Python, although JS library worked.
Resolving Issues with Scoped API Keys in Typesense with Golang
Suvarna had problems with generating and using scoped API keys in Typesense with Golang. Several bugs misleading the user were found and fixed by Kishore Nallan.



Correct API Key Generation and Usage on Cloud
Tom faced 401 errors while creating keys via the Cloud API. Kishore Nallan clarified the correct syntax and mechanics, and identified a header mislabeling on Tom's part that caused the issue. They also discussed using scoped API keys.


Comparing Performance and Security of Different Data Collection Methods
bnfd asked about differences in performance and memory usage between a single, large data collection and multiple smaller collections. Kishore Nallan explained that the latter is faster, suggested 100 collections sharded by user_id, and informed about the use and security of scoped API keys.
