LearnNewsExamplesServices
Frontmatter
id10000
titleHardened Identity Ingestion & Tenant Isolation
stateClosed
labels
enhancementai
assigneestobiu
createdAtApr 14, 2026, 5:10 PM
updatedAtApr 20, 2026, 5:08 PM
githubUrlhttps://github.com/neomjs/neo/issues/10000
authortobiu
commentsCount0
parentIssue10016
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[x] 10017 Migration & Backward Compatibility for Multi-Tenant Schema, [ ] 10011 Native Edge Graph (SQLite): Row-Level Security & Tenant Isolation, [ ] 10010 Memory Core: Team vs Private Context Retrieval Flag
closedAtApr 20, 2026, 5:08 PM

Hardened Identity Ingestion & Tenant Isolation

tobiu
tobiu commented on Apr 14, 2026, 5:10 PM

Objective

Implement strict multi-tenant isolation within the Agent OS Memory Core to prevent identity spoofing and ensure data privacy.

Tasks

  1. Configure memory-core/config.template.mjs (Express Server) to extract identity strictly from trusted reverse-proxy HTTP headers (e.g., x-auth-request-preferred-username).
  2. Ensure .env is never fully trusted for multi-user deployments.
  3. Refactor SessionService.mjs to inject the extracted userId into ChromaDB metadata during collection.add() and collection.upsert().
  4. Enforce where: { userId } filtering on all generic Memory Core retrieval queries (e.g., get_session_memories, query_raw_memories).
tobiu added the enhancement label on Apr 14, 2026, 5:10 PM
tobiu added the ai label on Apr 14, 2026, 5:10 PM
tobiu added parent issue #9999 on Apr 14, 2026, 5:11 PM
tobiu cross-referenced by #10016 on Apr 14, 2026, 6:43 PM
tobiu removed parent issue #9999 on Apr 14, 2026, 6:44 PM
tobiu added parent issue #10016 on Apr 14, 2026, 6:44 PM
tobiu marked this issue as blocking #10010 on Apr 14, 2026, 6:44 PM
tobiu marked this issue as blocking #10011 on Apr 14, 2026, 6:44 PM
tobiu marked this issue as blocking #10017 on Apr 14, 2026, 6:44 PM
tobiu cross-referenced by PR #10121 on Apr 20, 2026, 12:40 PM
tobiu cross-referenced by #9748 on Apr 20, 2026, 1:13 PM
tobiu cross-referenced by PR #10123 on Apr 20, 2026, 3:06 PM
tobiu assigned to @tobiu on Apr 20, 2026, 3:54 PM
tobiu referenced in commit 8265e3b - "feat(ai): JWT-claim-driven multi-tenant isolation for Memory Core (#10000)" on Apr 20, 2026, 4:11 PM
tobiu cross-referenced by PR #10128 on Apr 20, 2026, 4:12 PM
tobiu cross-referenced by #10129 on Apr 20, 2026, 5:04 PM
tobiu referenced in commit 78b13a3 - "test(ai): add tenant isolation spec for SummaryService (#10000)" on Apr 20, 2026, 5:06 PM
tobiu closed this issue on Apr 20, 2026, 5:08 PM
tobiu referenced in commit 8c6589e - "feat(ai): JWT-claim-driven multi-tenant isolation for Memory Core (#10000) (#10128) on Apr 20, 2026, 5:08 PM
tobiu cross-referenced by PR #10130 on Apr 20, 2026, 5:26 PM
tobiu cross-referenced by PR #10131 on Apr 20, 2026, 8:26 PM
tobiu cross-referenced by #10144 on Apr 21, 2026, 11:28 AM
tobiu cross-referenced by #10145 on Apr 21, 2026, 8:43 PM
tobiu cross-referenced by PR #10166 on Apr 21, 2026, 9:06 PM
tobiu referenced in commit 7db6c90 - "feat(ai): wire stdio identity + anti-spoof guard for Memory Core MCP (#10145) (#10166) on Apr 21, 2026, 10:16 PM
tobiu cross-referenced by #10146 on Apr 21, 2026, 10:30 PM
tobiu referenced in commit bb17e6b - "fix(ai): Memory Core ChromaDB legacy userId backfill + additive tenant read filter (#10556) (#10567) on May 1, 2026, 12:27 PM