← All insights

Architecture guideLens: United States3 min read

AWS says it: permission-aware retrieval is filtering, not authorization. Read that before adding memory

Three AWS posts on Amazon Bedrock Managed Knowledge Base add user-level access control, long-term memory and spreadsheet search. The fine print explains where identity really has to be enforced.

A metal flour sifter on a wooden table, in La Madre duotone, beside the words Filter is not a lock
Photo: Shliphmash (Wikimedia Commons, Public domain)

The most useful sentence in AWS’s recent posts on Amazon Bedrock Managed Knowledge Base is a disclaimer. Access control lists on documents, the posts say, filter results by the user context the request carries, but that is “not an authorization mechanism by itself.” The knowledge base does not authenticate end users. It trusts the user context it receives.

That sentence matters because most enterprise RAG designs assume the opposite: that if documents carry permissions, the assistant enforces them. Between November 12 and 16, AWS published three posts that extend the service in useful ways, and each one is safe only if you take that sentence seriously.

1. User-level access control, enforced outside the knowledge base

The November 12 post shows how to let one shared agent serve users who may see different subsets of the same knowledge base. Documents carry ACL entries; requests carry the user’s identity; results are filtered to what that user may read. The enforcement around it is what makes it work: an interceptor on Amazon Bedrock AgentCore Gateway that validates the user’s token and injects the verified identity, Policy in AgentCore to decide which tools a principal may call, and IAM conditions.

The fine print is where projects fail:

  • A document without an ACL entry is not ingested at all. ACL mistakes fail silently: documents simply go missing, with no error.
  • ACL changes apply only after the next sync. Revoking access in the source is not immediate in the knowledge base.
  • Matching is an exact email match, so emails must be unique and never reused; a reused address can inherit a former owner’s access.
  • A query without user context returns nothing from ACL-enabled sources, while sources without ACLs return documents to everyone.

The design principle is the one Taxbit followed: bind identity before the model runs. The model should never be the one asserting who the user is.

2. Long-term memory inside retrieval

The November 16 memory post connects AgentCore memory to the knowledge base’s agentic retrieval through a memoryConfiguration parameter. In one call, the service restores the conversation, retrieves relevant long-term memories about the user, combines them with permission-filtered documents and saves the new turn. It is opt-in and backward compatible.

Per-user isolation relies again on identity outside the model: the verified token supplies the memory’s actor identifier, and IAM condition keys on actor and namespace stop one user’s session from reading another’s memories. AWS is candid about the rest: memory operations are best effort, and a failure does not fail the request; long-term extraction is asynchronous (in their test, the first record appeared 81 seconds after the turn); restoring a session adds about 200 milliseconds. Memory is useful, and it is also new personal data, with retention and deletion that need planning. AWS points to its delete operations for that.

3. Tables, answered with code

The tabular search post adds CSV, XLSX and XLS files to agentic retrieval. When a question needs a calculation, the service generates and runs code in an isolated sandbox with no network access and combines the result with facts from related documents. The generated code is not returned, by design. CSV files can be up to 500 MB and Excel sheets up to 200 MB, and each table answer adds at least one agent turn.

AWS itself draws the boundary: this is not a replacement for governed metrics, recurring dashboards or warehouse-scale joins. It is for the spreadsheets that already sit next to policies and reports, such as a budget file referenced by a finance policy. Since the code is not shown, test calculations against known answers before anyone relies on them for a decision.

What to take from the three together

Managed retrieval is absorbing the pieces teams used to build themselves: permissions, memory, structured data. That is a good trade, provided the identity question stays outside the model and outside the knowledge base: a gateway that verifies who the user is, policies that decide what they may do, and tests that prove a second user cannot see the first user’s documents or memories. Write that last test before go-live, and run it after every sync.

Have an AI use case stuck between prototype and production?

Tell us what you’re trying to ship. We’ll reply with honest next steps.

Discuss a use case