- Issue created by @robertoperuzzo
Currently, users can manually input a search-only API key in the Search Block settings via a plain text field. While this allows flexibility, it is also error-prone and does not validate whether the provided key is appropriate for search-only usage (i.e., has only the [documents:search]
action).
To improve usability and security, we want to offer a dropdown selector that lists only available API keys (from API Keys and Scoped API Keys) that are suitable for read-only search access. This change would provide a more guided and safer configuration process.
In addition, the use of the Key module → should be evaluated to securely store and manage the available keys.
[documents:search]
action.No API changes expected.
Minor change to block config schema to support storing selected key reference instead of raw string (if using Key module).
Using a select box instead of free text input reduces the chance of misconfiguration and use of overly permissive keys.
However, if a valid search-only key is exposed (e.g., via browser dev tools), it could be used to launch a DDoS attack against the Typesense server. Typesense itself does not include DDoS protection.
The recommended approach to mitigate this is to place each Typesense node behind a Cloudflare DNS endpoint with the proxy setting enabled and SSL mode set to Full. This provides additional security against such attacks.
Active
1.0
Miscellaneous