How to Configure Windsurf Oracle Permissions

Published
Length
3 min read

Luis Felipe Dias

All posts

To set up windsurf oracle permissions, create a read-only database role first. Then let the agent use that restricted role through terminal tools. Teams often use a shared admin login when they start testing. That shortcut gives the AI agent way too much power over live tables. One bad prompt can change rows or drop an important table. How windsurf oracle permissions work in practice Cognition changed the name of Windsurf to Devin Desktop in June 2026. The app keeps the same editor and featur

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.

To set up windsurf oracle permissions, create a read-only database role first. Then let the agent use that restricted role through terminal tools. Teams often use a shared admin login when they start testing. That shortcut gives the AI agent way too much power over live tables. One bad prompt can change rows or drop an important table.

How windsurf oracle permissions work in practice

Cognition changed the name of Windsurf to Devin Desktop in June 2026. The app keeps the same editor and features under this new name. Its Cascade agent can run terminal commands on its own after you approve. The agent uses a dedicated terminal window inside the editor. On macOS it runs zsh, and on Linux it runs bash. This terminal loads your normal shell profile right when it starts. Any shell aliases and saved variables are ready for the agent to use.

The agent can also use Model Context Protocol servers to reach databases. When the agent queries Oracle, it uses the login details from your shell. It can also read credentials stored inside its local tool settings. You control what the agent can do by setting up strict Oracle roles. A database admin creates a dedicated user account just for the coding agent. The admin grants that user read privileges on a few specific schemas. The admin leaves out any permission to alter tables or delete production rows. When the agent runs a query, Oracle checks the role tied to that session.

What native database roles solve and what they miss

Native Oracle permissions are great for blocking big changes at the schema level. They stop an agent from dropping tables if the role lacks write rights. They also keep the agent out of schemas it does not need. This setup decides who can log in and which tables they can read.

Still, static database roles leave an operational gap during live coding sessions. A role cannot check what individual SQL statements do while they run. If an agent has read rights on a customer table, it reads everything. A single select query can pull thousands of emails, phone numbers, or card numbers. The database sees a valid user role and returns all the raw rows. Those sensitive values then go straight into the AI context window. Also, developers often need temporary write rights to test a migration script. Granting write permissions to the local shell login gives the agent those same rights. Native roles alone cannot pause a risky command for human review in flight. They also cannot mask national IDs in query results before the agent reads them.

AI Agent Permissions + End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Steps to lock down agent database sessions

Start by removing high-privilege database passwords from your local shell profile. Since the agent terminal loads your shell setup, it inherits every exported variable. Give the agent a separate Oracle user with minimum table rights instead. Limit that role to select queries on safe development views only.

Next, require user permission inside the editor before the agent runs terminal commands. Review every SQL script the agent wants to run before you approve it. Watch out for broad queries that pull whole tables without a row limit. Keep sensitive data out of test schemas whenever your team can do so. When the agent needs to check production structures, allow schema metadata reads only. This keeps table designs visible while keeping live customer rows out of reach.

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 renamed Windsurf to Devin Desktop on June 2, 2026. The app keeps the same editor features, and old docs links redirect there.

How does the agent read local Oracle credentials?

The agent runs a dedicated bash or zsh terminal that loads your shell profile. It can use any database variables or aliases saved in that shell setup.

Why are read-only Oracle roles not enough for AI agents?

Read-only roles still let queries return raw emails, phone numbers, and card numbers. The role allows the read, and those fields enter the model prompt context.

The query runs. The emails stay hidden.