Respecting Privacy & Least-Privilege Keys
An agent acting for an intern must never read executive payroll. Filter documents by user permissions BEFORE retrieval, and issue tiny, short-lived tool tokens instead of master admin keys.
If a restricted file enters the model’s prompt, clever questioning can trick the model into repeating it. Enforcing RBAC before search and scoping every tool token shrinks the blast radius to zero.
Mental Model
A hotel keycard that opens only your room until checkout at 11 AM—never a master skeleton key for the entire building.
What Breaks Without This
An intern asks the company assistant to "summarize all Q4 compensation docs" and the agent cheerfully quotes confidential executive payroll because it shared an admin key.
Key Concepts
- Data Privacy & Role Access (RBAC): Checking document permissions before searching so users only ever see data they are allowed to read. Document-level ACL filtering before retrieval, tenant isolation, and zero-data-retention API agreements.
- Zero-Trust Permissions: Issuing tiny, short-lived passes per tool call instead of handing out static admin passwords. Scoped, short-lived OAuth tokens and least-privilege credentials per tool call rather than static admin keys.
Key Takeaway
Enforce user permissions before documents are searched, and mint short-lived, least-privilege tokens per tool call.