This tutorial will show you how to secure your Meilisearch project.
--master-key
command-line option or the MEILI_MASTER_KEY
environment variable:
Default Search API Key
and Default Admin API Key
. API keys are authorization tokens designed to safely communicate with the Meilisearch API.
/keys
endpoint to view all API keys in your instance:
Authorization
bearer token header.
Use the Default Admin API Key
to perform sensitive operations, such as creating a new index:
Default Search API Key
to perform search operations in the index you just created: