dcg

Meilisearch

search.meilisearch

Protects against destructive Meilisearch REST API operations like index deletion, document deletion, delete-batch, and API key removal.

  • 10blocking rules
  • 8safe patterns
  • 2Critical
  • 6High
  • 2Medium
~/.config/dcg/config.toml
[packs]
enabled = ["search.meilisearch"]

Evaluated when a command contains meili, meilisearch, 7700, indexes, keys.

Blocking rules

Each rule ID is search.meilisearch:<name>. Use it in allowlists and [policy.rules].

  1. meili-curl-delete-index

    Critical

    curl -X DELETE against /indexes/{uid} deletes a Meilisearch index.

    Explanation
    Deleting a Meilisearch index permanently removes all documents, settings, filterable attributes, and ranking rules. Search functionality for applications using this index will fail immediately. Safer alternatives: - GET /indexes/{uid}: Export index settings first - Create a dump with POST /dumps for backup - Re-index from source data after verification
  2. meili-http-delete-index

    Critical

    http DELETE against /indexes/{uid} deletes a Meilisearch index.

    Explanation
    Deleting a Meilisearch index permanently removes all documents, settings, filterable attributes, and ranking rules. Search functionality for applications using this index will fail immediately. Safer alternatives: - GET /indexes/{uid}: Export index settings first - Create a dump with POST /dumps for backup - Re-index from source data after verification
  3. meili-curl-delete-batch

    High

    curl -X POST to /documents/delete-batch deletes documents in bulk.

    Explanation
    Batch delete removes multiple documents by their IDs in a single operation. This is irreversible and affects all documents matching the provided IDs. Verify the ID list carefully before executing. Safer alternatives: - GET documents by ID to verify content first - Export matching documents before deletion - Test with a small batch before processing all
  4. meili-curl-delete-documents

    High

    curl -X DELETE against /documents removes documents from Meilisearch.

    Explanation
    Deleting all documents removes every record from the index while preserving settings and configuration. Search will return no results until re-indexing. This cannot be undone. Safer alternatives: - GET /indexes/{uid}/documents: Export documents first - Create a snapshot or dump before deletion - Use delete-batch for targeted removal instead
  5. meili-curl-delete-key

    High

    curl -X DELETE against /keys removes a Meilisearch API key.

    Explanation
    Deleting an API key immediately revokes access for all applications using it. Search and indexing operations will fail with authentication errors. The key cannot be recovered after deletion. Safer alternatives: - GET /keys: List and document keys before deletion - Create replacement key before deleting old one - Update applications with new key first
  6. meili-http-delete-batch

    High

    http POST to /documents/delete-batch deletes documents in bulk.

    Explanation
    Batch delete removes multiple documents by their IDs in a single operation. This is irreversible and affects all documents matching the provided IDs. Verify the ID list carefully before executing. Safer alternatives: - GET documents by ID to verify content first - Export matching documents before deletion - Test with a small batch before processing all
  7. meili-http-delete-documents

    High

    http DELETE against /documents removes documents from Meilisearch.

    Explanation
    Deleting all documents removes every record from the index while preserving settings and configuration. Search will return no results until re-indexing. This cannot be undone. Safer alternatives: - GET /indexes/{uid}/documents: Export documents first - Create a snapshot or dump before deletion - Use delete-batch for targeted removal instead
  8. meili-http-delete-key

    High

    http DELETE against /keys removes a Meilisearch API key.

    Explanation
    Deleting an API key immediately revokes access for all applications using it. Search and indexing operations will fail with authentication errors. The key cannot be recovered after deletion. Safer alternatives: - GET /keys: List and document keys before deletion - Create replacement key before deleting old one - Update applications with new key first
  9. meili-curl-delete-document

    Medium

    curl -X DELETE against /documents/{id} removes a document from Meilisearch.

    Explanation
    Deleting a single document removes it from search results immediately. While less destructive than bulk operations, applications expecting this document will receive errors or empty results. Safer alternatives: - GET /indexes/{uid}/documents/{id}: Verify document first - Export document content before deletion - Use soft delete field in documents instead
  10. meili-http-delete-document

    Medium

    http DELETE against /documents/{id} removes a document from Meilisearch.

    Explanation
    Deleting a single document removes it from search results immediately. While less destructive than bulk operations, applications expecting this document will receive errors or empty results. Safer alternatives: - GET /indexes/{uid}/documents/{id}: Verify document first - Export document content before deletion - Use soft delete field in documents instead

Safe patterns

Checked first. A command that matches one is never blocked by this pack.

  • meili-curl-get-stats
  • meili-curl-get-health
  • meili-curl-get-version
  • meili-curl-search
  • meili-http-get-stats
  • meili-http-get-health
  • meili-http-get-version
  • meili-http-search