Algolia
search.algolia
Protects against destructive Algolia operations like deleting indices, clearing objects, removing rules/synonyms, and deleting API keys.
- 7blocking rules
- 4safe patterns
- 2Critical
- 3High
- 2Medium
[packs]
enabled = ["search.algolia"]Evaluated when a command contains algolia, algoliasearch.
Blocking rules
Each rule ID is search.algolia:<name>. Use it in allowlists and [policy.rules].
Criticalalgolia-indices-deletealgolia indices delete permanently removes an Algolia index.
Explanation
Deleting an Algolia index permanently removes all searchable records, settings, rules, and synonyms. Search functionality for applications using this index will fail immediately. Re-indexing may require significant time and resources. Safer alternatives: - algolia indices list: Review indices before deletion - Export index data using algolia indices browse - Create a replica or copy before deleting
Criticalalgolia-sdk-delete-indexAlgolia SDK deleteIndex removes an index.
Explanation
The deleteIndex SDK method permanently removes an Algolia index and all its contents. This includes all records, settings, rules, and synonyms. Production search functionality will fail immediately. Safer alternatives: - Use browseObjects to export data first - Copy to a backup index before deleting - Add confirmation prompts in application code
Highalgolia-apikeys-deletealgolia apikeys delete removes API keys and can break integrations.
Explanation
Deleting an Algolia 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: - algolia apikeys list: Review keys and their usage - Create new API keys before deleting old ones - Rotate keys by updating applications first
Highalgolia-indices-clearalgolia indices clear removes all objects from an Algolia index.
Explanation
Clearing an Algolia index removes all searchable records while preserving settings, rules, and synonyms. Search will return no results until data is re-indexed. This is irreversible without re-indexing from source data. Safer alternatives: - Export objects using algolia indices browse first - Use a staging index for testing - Delete specific objects instead of clearing all
Highalgolia-sdk-clear-objectsAlgolia SDK clearObjects removes all records from an index.
Explanation
The clearObjects SDK method removes all searchable records from an index while keeping configuration intact. Search results will be empty until re-indexing completes. This cannot be undone. Safer alternatives: - Export objects using browseObjects first - Use deleteObjects for targeted removal - Test on a replica index before production
Mediumalgolia-rules-deletealgolia rules delete removes index rules.
Explanation
Deleting Algolia rules removes search customizations like query rewrites, promotions, and filters. Search behavior may change unexpectedly for users relying on these rules for relevant results. Safer alternatives: - algolia rules browse: Export rules before deletion - Disable rules temporarily instead of deleting - Test rule changes on a replica index first
Mediumalgolia-synonyms-deletealgolia synonyms delete removes synonym entries.
Explanation
Deleting Algolia synonyms removes word associations that improve search matching. Users searching with alternative terms may no longer find expected results. Synonym configurations can take time to rebuild. Safer alternatives: - algolia synonyms browse: Export synonyms before deletion - Test synonym changes on a replica index - Document synonym configurations for recovery
Safe patterns
Checked first. A command that matches one is never blocked by this pack.
algolia-indices-browsealgolia-indices-listalgolia-searchalgolia-settings-get