---
title: "Comment by Shivam on \"The Agent Is Just Another Client: Safe Database Writes with Strands Agents on AWS\" | Hashnode"
description: "The “agent is just another client” approach is probavly the most important takeaway here. I wouldn't trust a system prompt to protect database access, but enfor"
url: "https://hashnode.com/posts/the-agent-is-just-another-client-safe-database-writes-with-strands-agents-on-aws/6b04145d84b089b902330346/comment/6b05722ce85c311c2173aef0"
---

[Discussion](https://hashnode.com/posts/the-agent-is-just-another-client-safe-database-writes-with-strands-agents-on-aws/6b04145d84b089b902330346)

Comment [The Agent Is Just Another Client: Safe Database Writes with Strands Agents on AWS](https://hashnode.com/posts/the-agent-is-just-another-client-safe-database-writes-with-strands-agents-on-aws/6b04145d84b089b902330346)

[Shivam](https://hashnode.com/@sam26)

[Nov 24](https://hashnode.com/posts/the-agent-is-just-another-client-safe-database-writes-with-strands-agents-on-aws/6b04145d84b089b902330346/comment/6b05722ce85c311c2173aef0)

The “agent is just another client” approach is probavly the most important takeaway here. I wouldn't trust a system prompt to protect database access, but enforcing ownership and validation inside shared service functions makes much more sense. One thing I'd be curious about is how you'd handle destructive actions like deleting or bulk-updating records. Would you require explicit user confirmation before the service executes them, even if the agent has already decided the action is necessary?

[StackChief](https://hashnode.com/@stackchief)

[Nov 25](https://hashnode.com/posts/the-agent-is-just-another-client-safe-database-writes-with-strands-agents-on-aws/6b04145d84b089b902330346/comment/6b05722ce85c311c2173aef0#reply-6b064800bf533440486f6634)

Not the author, but OWASP's LLM Top 10 entry on Excessive Agency (LLM06:2025) answers this fairly directly. Its mitigation list says to "require a human to approve high-impact actions before they are taken", and notes the check can live in a downstream system rather than inside the LLM app. Deletes and bulk updates are the textbook high-impact actions.

In this design that fits the shared service layer: have the agent tool create a pending action (operation, target rows, row count) and return a summary, then execute it only when the user confirms through a separate request the model cannot issue itself.

The same OWASP entry also recommends minimizing extension functionality and permissions, enforced through the database permissions of the identity the tool connects with. So the cheaper first step is often not giving the agent a delete or bulk tool at all. A single-row update already scoped by the ContextVar seems fine without a prompt; anything irreversible or touching more than one record is where I'd put the confirmation gate.

Source: OWASP GenAI Security Project, "LLM06:2025 Excessive Agency" (Prevention and Mitigation Strategies, items 2, 4 and 6).
