[Integration]: NeedToKnow — permission-aware retrieval (AccessFilter)
Maintainers usually reply within 13 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 54/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- python
- Domain
- machine-learning
Research direction
Start with the published needtoknow-haystack repository and its AccessFilter component; the issue also names examples/leak_benchmark.py and the unit and pipeline tests. Check how the component filters documents by user, groups, and public metadata, then run the tests and benchmark. Done means the integration is listed with its repository, description, and evidence of working behavior.
Written by the indexing model from the issue text.
Description
Stage
Ready: integration exists and works, proposing to list it
Integration or project name
needtoknow-haystack
Integration type
Custom Component
Published package or repo (if it exists)
https://github.com/Sanoer11/needtoknow-haystack
Need or proof of use
Why Haystack users need it: most RAG pipelines retrieve from one shared index, and retrieval ranks by relevance, not by who is asking. Whatever the retriever returns reaches the prompt, so one user can get another team's restricted documents. LangChain (Permit, Auth0 FGA retrievers) and LlamaIndex (Auth0 FGA) have permission-aware retrieval; I couldn't find a store-agnostic equivalent among the listed Haystack integrations.
Proof it works:
- Leak benchmark (examples/leak_benchmark.py, offline, synthetic company corpus, 5 users x 10 probing queries, BM25 top-5): 58% of retrieved documents leaked across departments without the filter, 0% with AccessFilter.
- 22 unit and pipeline tests, including YAML pipeline serialization round-trips.
- CI on every push: Python 3.10 and 3.13 x Haystack 2.31 and 3.x (all green).
It grew out of NeedToKnow (https://github.com/Sanoer11/needtoknow), my permission-aware RAG project, where the same per-user filtering took cross-user leakage from 43.2% to 0% on 250 adversarial probe results. It doesn't have external users yet; I'm happy to publish it to PyPI if that's preferred before listing.
Short description
AccessFilter is a component that sits after any Haystack retriever and removes documents the requesting user may not read. Each document declares access in its metadata (allowed_users, allowed_groups, or an optional public flag), and the filter keeps a document only if the user, one of their groups, or the public flag matches.
It fails closed: documents without access metadata are denied by default, and an empty user_id raises an error. It works with any document store, returns denied_count for auditing, supports top_k after filtering, and serializes with pipelines (in Haystack 3, via allowed_modules=["needtoknow_haystack"]).
- Dominant language
- Python
- Stars
- 114
- Forks
- 324
- Avg merge
- 7d 2h
- Merged PRs (30d)
- 13
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from deepset-ai/haystack-integrations
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
deepset-ai/haystack-integrations#788 ·
Maintainers usually reply within 13 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
deepset-ai/haystack-integrations#785 ·
Maintainers usually reply within 13 days
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
deepset-ai/haystack-integrations#783 ·
Maintainers usually reply within 13 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
deepset-ai/haystack-integrations#782 ·
Maintainers usually reply within 13 days
-
Difficulty 1/5 Under an hour Newbie friendliness 62/100
deepset-ai/haystack-integrations#780 ·
Maintainers usually reply within 13 days
All issues in deepset-ai/haystack-integrations
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
micronaut-projects/micronaut-core#14585 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
langgenius/graphon#443 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
[BUG]: Management endpoints /v1/memory/stats and /v1/memory/counts bypass API key authenticationOpen
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
docling-project/docling-serve#788 ·
Maintainers usually reply within 1 day
-
Mend: dependency security vulnerability untriaged
Difficulty 1/5 Under an hour Newbie friendliness 78/100
opensearch-project/cross-cluster-replication#1805 ·
Maintainers usually reply within 1 day