How to Configure Goose Redshift Approval
You set up a goose redshift approval flow by requiring human review before queries run. This setup pairs local agent confirmation rules with strict database role limits. Teams often link an AI agent to their data warehouse using one shared login. Broad permissions let the agent alter tables or read sensitive rows without a review step. How a native goose redshift approval setup works Goose runs on a developer machine and uses extensions to talk to external data systems. You link it to your wa
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 a goose redshift approval flow by requiring human review before queries run. This setup pairs local agent confirmation rules with strict database role limits. Teams often link an AI agent to their data warehouse using one shared login. Broad permissions let the agent alter tables or read sensitive rows without a review step.
How a native goose redshift approval setup works
Goose runs on a developer machine and uses extensions to talk to external data systems. You link it to your warehouse by giving the local extension a database login. The warehouse checks this login and grants permissions based on the assigned database role.
To add a native check, you turn on the confirmation setting in the local agent. The agent then pauses before it runs a tool or sends a query out. It shows the planned SQL text to the developer on their local screen. The user must click approve or type yes before the agent sends the command.
On the database side, admins create specific roles for the agent to use. They grant read rights on safe schemas and block write rights on core tables. The warehouse enforces these role rules every time the agent sends an approved query.
What native controls solve and where they fall short
This native setup stops the agent from running surprise commands on its own. The developer sees the exact query before it leaves their laptop. Database roles also stop the agent from dropping tables that the role cannot touch.
Still, local prompts only ask the person who started the agent session. A developer can approve their own risky query without a second pair of eyes. If the developer has broad database keys on their laptop, the agent shares those rights. The warehouse only checks who logs in at the start of the session. It does not ask a team lead to check a risky update statement in flight.
Approval Chains & Escalation + Redshift Security: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Native roles also struggle with sensitive columns inside shared analytics tables. If a role can read a customer table, the query returns all fields in full. Without field masking to rewrite emails, phone numbers, or card numbers, raw data enters the prompt. Local logs stay on the user machine, so security teams lack a central audit trail.
Designing a safer workflow for warehouse queries
A strong setup splits daily read tasks from high-risk write or admin tasks. Give the agent a basic read role for standard data checks and schema lookups. Keep admin keys off user laptops so local tools cannot read or copy them.
When the agent needs to change data or read sensitive tables, route that request for review. Have a second team member check the exact SQL statement in Slack or Teams. Mask fields like national IDs and card numbers in query results before the agent reads them. Centralize all query logs so auditors can see every prompt, reviewer, and database action.
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 beside the service as an open-source proxy, a sidecar for your database or API.
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 review. Next, hoop.dev data masking rewrites sensitive fields in responses, and each verdict is logged per listener. Explore the MIT-licensed project on GitHub.
Frequently asked questions
Can Goose run Redshift queries without asking the user first?
Yes, if the local tool confirmation mode is turned off, the agent runs queries right away. Turning on confirmation prompts forces the local user to check each step before it runs.
Why are database roles not enough for AI agent safety?
Database roles apply the same static rules to every query in a session. They cannot ask a manager to review one specific update query or mask card numbers in results.
How do teams protect sensitive data during agent queries?
Teams restrict the agent role to safe views and apply data masking to rewrite emails and phone numbers. They also require peer review before the agent can query tables with sensitive records.
Related guides
In this post