How to Configure Make Cassandra Prevent Delete
You can make Cassandra prevent delete actions by changing the database role permissions for Make. You must remove the modify permission or use custom triggers on your tables. Most teams start by giving their Make workflows a single broad database role. This setup lets automated scenarios read, write, and erase records at any time. When a workflow bug occurs, that broad role can wipe out production rows. How to make Cassandra prevent delete in native roles Cassandra groups data write and data
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 can make Cassandra prevent delete actions by changing the database role permissions for Make. You must remove the modify permission or use custom triggers on your tables. Most teams start by giving their Make workflows a single broad database role. This setup lets automated scenarios read, write, and erase records at any time. When a workflow bug occurs, that broad role can wipe out production rows.
How to make Cassandra prevent delete in native roles
Cassandra groups data write and data erase actions under one single permission. When you grant the modify permission to a role, it allows three things. That role can insert new rows, update old rows, and erase existing rows. You cannot turn off row removal through standard role permissions alone. To stop a Make workflow from erasing data, you have two native options.
First, you can give the Make role read permissions only. This works well when your Make scenario only pulls data for reports. Second, you can write a custom database trigger in Java for your tables. The trigger inspects every write request before the database runs it. If the request contains a tombstone marker, the trigger rejects the action. You must build, test, and load this Java file onto every cluster node.
What native database roles solve and what they miss
Native database roles decide who can log in and which tables they touch. They work well for separating read-only apps from apps that write data. A read-only role stops Make from changing any data in your keyspace. This setup protects your cluster when Make only needs to read records.
Still, most Make scenarios need to insert new rows or update user records. Once you grant the modify permission for inserts, the role can also delete. Native roles cannot tell a safe insert apart from a bad delete request. Writing custom Java triggers to fix this creates a heavy burden for your team. Every cluster upgrade requires you to test and deploy your custom code again. Also, native roles do not mask sensitive fields like emails or phone numbers. If a Make workflow reads a table, the result includes raw card numbers.
Cassandra Role Management + End-to-End Encryption: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Why workflow tools create database risks
Make lets builders link many cloud apps together using visual blocks. Builders often store one shared database user inside the workflow tool for all scenarios. Every scenario then runs with the exact same high level of database trust. If a builder maps the wrong variable, a query might erase a whole partition. Without statement checks in flight, the database runs every command from that role. Teams also struggle to see which specific Make scenario ran a bad query. The database log only shows the shared role name, not the workflow owner. You need a way to block bad statements and mask national IDs in results.
Check database and API queries on the wire
Identity tools, roles, and network rules decide who opens a session. Setup alone cannot check what each query does or mask sensitive values in a response once a session starts. When workflows touch Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, or internal HTTP APIs, hoop.dev runs beside those services as an open-source proxy, a sidecar for your Postgres or API. It inspects requests coming in and results going back on the wire.
Your login details and client tools stay as they are while hoop.dev guardrails refuse bad deletes or drops before they run. On responses, hoop.dev data masking rewrites matched sensitive values in memory. Furthermore, hoop.dev holds SOC 2 Type II, is MIT licensed, and writes every query and decision to an audit trail that generates evidence for HIPAA, GDPR, and PCI DSS. See the source on GitHub.
Frequently asked questions
Can Cassandra separate insert and delete permissions natively?
No, the native permission model bundles inserts, updates, and deletes under one modify rule. You cannot grant insert rights without also granting delete rights in standard roles.
How do database triggers stop row removal in Cassandra?
A custom Java trigger checks the mutation object before the node writes the data. If the check finds a deletion marker, the code throws an error and stops.
What happens if a Make scenario updates a column to null?
Setting a column value to null writes a tombstone marker in the storage engine. Any rule that blocks deletes will also block updates that write null values.
Related guides
In this post