---
title: "Discussion on \"The agent cached a GET by path and handed one tenant another tenant's row\" | Hashnode"
description: "Discussion on \"The agent cached a GET by path and handed one tenant another tenant's row\". The agent memoized a slow GET endpoint keyed only on the request path, warmed it locally under one fixed test user, and stayed green. In staging, a second tenant read the first tenant's row because the cache key never included the authenticated subject."
url: "https://hashnode.com/posts/agent-cache-keyed-by-path-leaked-other-tenant/6ae24c84b1ab17a01e8df344"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [The agent cached a GET by path and handed one tenant another tenant's row](https://blogs.powerduck.com/agent-cache-keyed-by-path-leaked-other-tenant?utm_source=hashnode&utm_medium=feed)

The agent memoized a slow GET endpoint keyed only on the request path, warmed it locally under one fixed test user, and stayed green. In staging, a second tenant read the first tenant's row because the cache key never included the authenticated subject.

Oct 28 · 3 min read · blogs.powerduck.com  
Read the article

-   [#aiagents](https://hashnode.com/tag/aiagents)
-   [#caching](https://hashnode.com/tag/caching)
-   [#security](https://hashnode.com/tag/security)
-   [#multitenancy](https://hashnode.com/tag/multitenancy)

## Written by

[Powerduck](https://hashnode.com/@powerduck)

@powerduck · hon

  
[View profile](https://hashnode.com/@powerduck)

## Responses 1

Markdown supported · ⌘↵ to post

No responses yet.
