How to Configure Windsurf DynamoDB Read Only Permissions

Published
Length
3 min read

Luis Felipe Dias

All posts

You set up windsurf dynamodb read only permissions by binding an AWS IAM read role to your local shell profile. This setup lets the editor agent read tables while blocking write calls. Note that Cognition renamed Windsurf to Devin Desktop in June 2026, while keeping the same IDE features. Many teams start by giving their coding agent full AWS keys in a local shell. When permissions are too broad, a bad prompt can alter or delete live table items. How windsurf dynamodb read only permissions wor

Your coding agents run with your access.

Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.

You set up windsurf dynamodb read only permissions by binding an AWS IAM read role to your local shell profile. This setup lets the editor agent read tables while blocking write calls. Note that Cognition renamed Windsurf to Devin Desktop in June 2026, while keeping the same IDE features. Many teams start by giving their coding agent full AWS keys in a local shell. When permissions are too broad, a bad prompt can alter or delete live table items.

How windsurf dynamodb read only permissions work in your shell

In Devin Desktop, the agent can run terminal commands on its own with user approval. It runs these commands inside a dedicated shell window. This shell uses zsh on macOS and bash on Linux. Because the shell loads your local profile, it inherits your shell aliases and variables. If your shell profile holds AWS keys, the agent inherits those exact permissions.

The legacy Cascade agent also uses Model Context Protocol servers to reach external data tools. Whether the agent uses a shell tool or an MCP server, AWS IAM controls the session. To restrict the agent, you create an IAM role that allows only read actions on DynamoDB tables. You leave out permissions that put, update, or delete items, and you block table drops. Then you set your local AWS profile to use this read role. When the agent runs a query command, AWS checks the role and blocks any write request.

What native IAM roles solve and what they leave open

Native IAM roles solve the write risk well. They decide who can log in and which API calls AWS will accept. With a read role in place, the coding agent cannot delete rows or change table settings. This gives your team a solid first line of defense against bad commands.

Still, IAM checks happen at the table and action level, not inside the data payload. An IAM read role still lets the agent run a full table scan. It also returns every attribute inside each item to the agent prompt window. If a table holds emails, phone numbers, card numbers, or national IDs, the agent receives them. Cloud logs show that a role read a table, but they miss the exact prompt context. Teams also struggle when developers must switch roles by hand to run a safe fix.

Read-Only Root Filesystem + DynamoDB Fine-Grained Access: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Why runtime controls matter for AI coding agents

Static role files on a laptop are hard to track across a growing team. Developers often switch back to admin profiles during an incident and forget to switch back. When that happens, the coding agent regains full write permissions on the next command run. A strong setup pairs narrow cloud roles with controls that check each command in flight. Data masking can also rewrite matched fields like emails or card numbers in query results. This keeps sensitive strings out of model prompts while letting the agent debug schema issues.

Govern statements and responses across databases and APIs

Good config and scoped roles are needed setup. They do not check single queries in flight or mask sensitive fields in returned rows. Across Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, and internal HTTP endpoints, hoop.dev sits inline in the protocol beside each supported service as an open-source proxy, a sidecar for your database or API. For every query or command an AI agent or engineer runs against production, hoop.dev decides to pass, mask, block, or hold it for human approval.

First, hoop.dev guardrails block banned queries before they run or hold risky ones for review, and hoop.dev data masking rewrites matched sensitive values in responses in memory. Furthermore, hoop.dev holds SOC 2 Type II and is open source on GitHub.

Frequently asked questions

Did Windsurf change its name to Devin Desktop?

Yes, Cognition announced on June 2, 2026 that Windsurf is now called Devin Desktop. It keeps the same IDE features, and the old docs links now point to the Devin Desktop docs.

How does the agent get permissions for AWS services?

The agent runs commands in a dedicated zsh or bash terminal that loads your shell profile. It inherits the AWS variables, keys, and roles set in your local shell or MCP server setup.

Does an AWS read role hide sensitive fields from the AI model?

No, a read role only blocks write and delete actions at the cloud API level. Any allowed read call still returns full item attributes, including emails or card numbers, unless masking rewrites those fields.

The query runs. The emails stay hidden.