How to Configure Windsurf Oracle Read Only Permissions

Published
Length
3 min read

Luis Felipe Dias

All posts

You set up windsurf oracle read only permissions by creating a limited database user role. You then give those login details to the agent session. Many teams start by handing their coding assistant a shared admin login. That shortcut lets the AI agent drop tables or change live rows by mistake. A read-only role stops the agent from writing data during a session. How windsurf oracle read only permissions work in practice Cognition renamed Windsurf to Devin Desktop in June 2026. The app keeps t

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 oracle read only permissions by creating a limited database user role. You then give those login details to the agent session. Many teams start by handing their coding assistant a shared admin login. That shortcut lets the AI agent drop tables or change live rows by mistake. A read-only role stops the agent from writing data during a session.

How windsurf oracle read only permissions work in practice

Cognition renamed Windsurf to Devin Desktop in June 2026. The app keeps the same IDE features and the Cascade agent. This agent can run terminal commands on its own after you approve them. It uses a dedicated shell that loads your local profile and variables. It also uses Model Context Protocol servers when you add them to its config.

Because the agent reads your local shell, it inherits your database keys. To limit what it can do, you must act inside the database first. A database admin creates a dedicated user account for the coding agent. The admin grants this account permission to read specific tables or views. The admin leaves out any permission to insert, update, delete, or alter schemas.

Next, you place the login details for this limited role into your local shell. When the agent runs a query tool or an MCP server, it authenticates with that role. If the agent tries to run a write command, the database engine blocks the statement. This setup keeps your core tables safe from bad writes during code generation.

Why database roles alone leave a gap

A read-only role inside Oracle solves only half of the safety problem. It decides who can log in and which tables they can read. It does not check what individual queries do while they run in flight. An AI agent with read rights can still cause major outages and data leaks.

First, the agent can write a bad query that joins huge tables without filters. That single read query can lock up CPU and memory on a busy server. Second, a read-only role returns every column in an allowed table by default. If a table holds customer emails, phone numbers, card numbers, or national IDs, the agent reads them. The agent then sends those raw records straight into the model prompt context.

Read-Only Root Filesystem + AI Agent Permissions: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Third, storing database passwords in a local shell profile creates a risk on the laptop. Any script or terminal command that the agent runs can read those plain keys. Native database roles cannot rewrite matched fields in results or ask for human approval per query. Teams need a way to inspect queries and mask data before results reach the IDE.

Steps to harden your agent database setup

Start by removing all admin database keys from your local shell profile. Create a separate database user that only has select rights on safe views. Never grant select rights on raw tables that hold secret keys or user passwords. Set resource limits on the database user so one slow query cannot freeze the host.

Review every terminal command and MCP tool call before you let the agent run it. Check which tables the agent wants to read and why it needs that data. Keep local logs of the queries that your coding tools run during each session. Add data masking so the system rewrites sensitive fields like card numbers in query results.

Add runtime guardrails and masking beside your databases and APIs

Login rules, role grants, and CI checks govern who connects to your stack. Yet any allowed script, engineer, or AI agent still runs commands with the full scope of its role. For workloads on Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes, SSH, or internal HTTP services, hoop.dev sits inline in the protocol beside the service as an open-source proxy, a sidecar for your database or API. On every production query an agent or human runs, hoop.dev decides whether to pass, mask, block, or escalate it for review.

Before a query runs, hoop.dev guardrails check the statement against your rules, an AI Analyzer you configure can score intent or hold risky calls for human approval, and hoop.dev data masking rewrites sensitive fields in responses in memory. Explore the MIT-licensed project on GitHub.

Frequently asked questions

Can Devin Desktop use the same setup as Windsurf?

Yes, Windsurf became Devin Desktop in June 2026 and kept the same IDE features. The agent still runs terminal commands in your shell and uses your local MCP settings.

Does a read-only role stop the AI agent from reading sensitive user data?

No, a basic read role returns all columns in the tables you allow by default. Unless you build restricted views or mask results in flight, the agent reads raw emails and card numbers.

How does the agent find my database login keys?

The agent opens a dedicated zsh or bash terminal that loads your shell profile. Any database variables or aliases stored in that profile are available to the agent.

The query runs. The emails stay hidden.