DEV Community

Dudko Development
Dudko Development

Posted on Originally published at nacre.work

Open-source Glean alternatives: where each one keeps the permission model

Search for an open-source Glean alternative and you get a page of roundups. OpenAlternative lists three: Onyx, PipesHub and Omni. Onyx's own page lists one, itself. Most of the blog roundups put Onyx first, and they're not wrong to.

What none of them tells you is the thing Glean sells hardest. Glean's search page says it enforces "the existing permissions of your data sources in results, so users only see what they are allowed to access". If you're replacing Glean, that sentence is the requirement. And for the open-source options, the question isn't whether the permission model exists. Each of them has one. The question is which edition it ships in, and where in the query it runs.

So this piece goes through three projects on that one axis: Onyx, Omni, and ours, Nacre. We work on Nacre, so weigh it accordingly. Every competitor fact below links to the competitor's own page, read on 26 November 2026.

Onyx: the most connectors, with permission sync in the paid plans

Onyx is the one to beat, and on breadth it isn't close. The connectors overview has 56 connector cards today: Confluence, Slack, Jira, Notion, SharePoint and OneDrive, Google Drive, Salesforce, Zendesk and a long tail after them. Crawling, scheduling and change detection are written and maintained for you.

The licence line is drawn in two places, and the two agree. The README says the Community Edition "is available freely under the MIT license and covers all of the core features for RAG, AI Chat, Agents, and Actions", and lists SSO, SCIM group sync and RBAC under "Onyx for Enterprise". The connector docs say the same about permissions specifically. The overview: "Permission syncing is available on Business, Enterprise, and Cloud plans." The GitHub connector page spells out what happens without it: "On the Community Edition, Sync with GitHub is locked, and connectors are visible to everyone." Google Drive and Confluence say much the same: permission sync there needs a paid plan.

On enforcement, Onyx's access-controls page says every indexed document carries an ACL and that Onyx "applies the user's ACL as a filter on every search". It doesn't say whether that filter runs before ranking or after, so we won't guess. Ask them if it matters to you. (Below, we say why it might.)

Open core is a perfectly normal way to fund a project like this, and we do it too. The practical reading, in their GitHub page's own words: on the free build, connectors are visible to everyone. If that's fine for your corpus, Onyx is very likely your answer.

Omni: Apache-2.0, with inherited permissions in the README

Omni is newer and smaller. It's Apache-2.0 and describes itself as "an open-source, self-hosted AI agent for company-wide work". Its README lists 23 integrations, from Google Drive, Gmail, SharePoint and Teams to Confluence, Notion, Slack, Jira, GitHub and Linear. On permissions, the README is direct: "Keep indexed information scoped by the permissions inherited from each source system."

Its pricing page has a free community tier with "No SSO or enterprise controls", SSO on a Business plan, and SCIM provisioning and audit logs on Enterprise. We couldn't find a sentence that puts permission inheritance itself on either side of that line. Before you rely on it in the free build, check it on a test corpus. That's an hour well spent with any of these three.

Nacre: six connectors, the permission model in the Apache-2.0 core

Now the part where we lose, because it's probably the part that decides it.

Nacre mostly doesn't connect to your sources. There are six reference connectors, deliberately generic: git, s3, sql, drive, mongo and imap, Apache-2.0, in their own repository. No Confluence, no Slack, no SharePoint, no Notion, no Jira. That repository's README is honest about it: "They are a simplification, not the way in. Nacre takes documents pushed over its API, MCP, SDK or CLI, and the customer owns the sync." If you want Confluence and Drive searchable by Monday, use Onyx or Omni. Nothing to argue about.

What's in the Apache-2.0 core is the permission model: layers, groups, grants, and the code that evaluates them on every request, plus the test suite that guards it. docs/licensing.md lists the commercial modules by name. The ones that touch permissions are SSO over OIDC with SCIM group sync, and issuing document-level grants and deny rules. So the trade runs the other way from Onyx's. You get enforcement for free, and the directory integration costs money. If your groups live in Okta or Entra and you need them synced, that's a paid module here too.

The reason we put the line there is the mechanism.

Before ranking or after

The easy way to make retrieval permission-aware is to fetch the top ten, drop the ones the user can't see, and return what's left. It demos fine. But a query that returns three results instead of ten has told you seven documents exist, and the gap shows in the count, the latency and the ranking. You never see the documents, just their outline.

The fix has to happen inside the index, before ranking. Nacre's docs/authz.md states six invariants. Two of them carry this argument:

I2. The number of results does not depend on whether the filter ran before or after ranking. A user with access to 1 layer of 20 asking for top_k=10 gets 10 results — not 10 minus whatever was stripped.

I6. A request without permission is indistinguishable from a request for something that does not exist: 404, never 403.

A 403 sounds like the careful answer, but it's still an answer. It confirms the document is there.

Checked today, not just read

Claims about invariants are cheap, so here's one run against playground.nacre.work, the public demo. The logins are printed on demo.nacre.work, so you can repeat all of it.

Same question, two users: "what is the contract number for Northwind". The engineer gets 8 items across the engineering and handbook layers. The contractor gets 3, all from handbook. Neither gets the contract number, because nobody in the demo may read it.

Then I6, which needs a control or it proves nothing. A system that answers 404 to everything passes trivially. So, three requests:

# sign in (organization "demo"; passwords are on demo.nacre.work)
curl -s https://playground.nacre.work/v1/auth/login \
  -H 'content-type: application/json' \
  -d '{"email":"contractor@demo.nacre.work","password":"…","organization":"demo"}'

# 1. contractor reads a document in the engineering layer   -> 404
# 2. contractor reads an id that never existed              -> 404
# 3. engineer reads the same document as (1)                -> 200
curl -s -w '\n%{http_code}\n' -H "authorization: Bearer $TOKEN" \
  https://playground.nacre.work/v1/documents/<id>
Enter fullscreen mode Exit fullscreen mode

The result on 26 November: 404, 404, 200. Request 3 shows the document was really there. And the two 404 bodies were identical once the per-request instance and request_id fields were removed:

{
  "detail": "The requested resource does not exist or is not accessible.",
  "status": 404,
  "title": "Not found",
  "type": "https://nacre.work/errors/not-found"
}
Enter fullscreen mode Exit fullscreen mode

The wording counts as much as the status. A friendlier message for the forbidden case would leak just as well.

The playground is a demo, not a hosted product. It's capped at 200 documents and wipes itself daily. The thing you'd run is the Apache-2.0 build, with Docker Compose or the Helm chart.

How to choose

Three questions, in this order.

Do you need someone else to crawl your SaaS tools? If yes, it's Onyx or Omni. Onyx has more than twice Omni's connectors. Nacre isn't in this race.

Does your corpus need per-user visibility on the free build? On Onyx, permission sync is a paid plan. On Omni, test it. On Nacre, it's the core.

Will a security review ask how the filter works, not just whether there is one? Then ask each vendor whether results are filtered before ranking or after, and what a forbidden ID returns. We've put our answer above. That question matters more than any connector count, and it doesn't require you to run anything of ours.


Originally published at https://nacre.work/blog/open-source-glean-alternatives-permission-model.

Top comments (0)