Repository navigation
Conversation
…igh; Meilisearch master and search keys #1515 Signed-off-by: Nik Cubrilovic <[email protected]>
This was referenced Nov 1, 2026
Merged
Contributor
Author
|
Closing in favour of #1523, which covers the same ground; an overlapping draft from the maintainers is closed in favour of William's. The admin-tier hint and the whole-word tests from this branch were folded into the release (v0.0.159: https://github.com/squirrelscan/squirrelscan/releases/tag/v0.0.159). nik |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1515.
A 32-character Algolia or Typesense key held under an admin-named variable (
search_admin_api_key,adminApiKey,admin_api_key) was reported at medium, the same tier as a search-named one. An admin key can write and delete an index, so it is now a high, with a hint saying so. A search-named variable keeps medium and the search-only hint. A MeilisearchmasterKey(orMEILI_MASTER_KEY, an admin name) is reported at high asMeilisearch Master Key, and asearchKeyasMeilisearch Search Keyat medium with the search-only hint; neither was detected before. The Meilisearch pattern needs the wordmeiliwithin 40 characters in front of the key (the keyword gap of every brand pattern), so a baremasterKeyof another product is not claimed.What changed
Generic API Key Assignment: anadminword in the complete key name plus a 32-character alphanumeric value moves it to high (whole word:administratorApiKey,sadminApiKeydo not count).Meilisearch API Keycontext pattern, tier chosen by the key's name (master or admin: high; search or public: medium + hint; other: medium).leaked-secrets-admin-keys-1515.test.ts(fixtures built from parts; 6 mutants killed), two assertions in the security/leaked-secrets: extend the public-by-design tier (presigned-URL AWS credential ids, beacon JWTs, search-only keys) #1229 tests updated to the new tier, a corpus generator for the new pattern and the regenerated snapshot (58 lines, all the new pattern).Acceptance criteria
masterKeyhigh,searchKeydetected with the search-only hintSkill change: none.