Give production and staging separate endpoints, and turn off the tools that change data on the production one. GateRook keeps production connections on production endpoints only, so the two never share one.
- On the production endpoint, open Tools & policies and set the tools that change data, such as
sql_execute, to Off. The AI no longer sees them. Keep the reads in Read only. - Connect production with a database user or service account that can only read.
- On the staging endpoint, keep changes in Approval, or use Bypass for tools you accept without review. Temporary bypass, for 15 minutes to 24 hours, works on dev and stage only.
- In AI apps, connect each app to the endpoint it should use.
For an endpoint where nothing can change data, Create endpoint offers Read-only dev and Read-only stage. Production also has stricter defaults: lower limits, a required approval comment and no approval from Slack or Telegram.
To review rare production changes instead of blocking them, leave those tools in Approval. See connections, endpoints and environments.