Separation of Duties for Databases: What It Means and How to Enforce It
Separation of duties stops one person from making and approving the same database change. Here's what it means in practice, why auditors ask about it, and how to enforce it without grinding work to a halt.
Team Qarbix · · 5 min read
Security & Compliance

Separation of duties is one of those controls that sounds bureaucratic until the day it would have saved you. The idea is simple: the person who makes a sensitive change shouldn't also be the one who approves it. For databases, that means the engineer who writes a migration or a production data fix doesn't get to wave it through to production on their own. Two sets of eyes, two people, one of whom has to say "yes, ship it."
It's not about distrust. It's about the fact that everyone makes mistakes, and a second reviewer catches the ones the author can't see — plus the occasional case where the safeguard is the only thing standing between a bad actor and production data. This piece covers what it means in practice, why auditors keep asking, and how to enforce it without turning every change into a week-long approval saga.
What it actually means for a database
Concretely, separation of duties (sometimes "segregation of duties") splits a sensitive action into at least two roles:
The person who authors a change — writes the migration, the data correction, the grant.
The person who approves and applies it — reviews it and lets it run against production.
The rule is that these can't be the same person for the same change. If your most senior engineer writes a migration, someone else approves it. If a DBA needs to fix data in production, a second person signs off. The authority to change production data is deliberately not concentrated in one pair of hands.
Why auditors keep bringing it up
Concentrated authority is exactly where two bad things happen: honest mistakes that nobody caught, and dishonest actions that nobody could. That's why separation of duties shows up across compliance frameworks — SOC 2, PCI DSS, India's DPDPA, and others all expect that sensitive actions are reviewed by someone other than the person doing them, and that you can prove it.
The "prove it" part matters as much as the control itself. An auditor doesn't just want to hear that you review changes; they want evidence that change X was approved by person B, who wasn't the author A, on date C. If your approval lives in someone's memory or a Slack thumbs-up, you have the practice without the proof.
The trap: making it so heavy nobody follows it
Here's where separation of duties usually goes wrong. Teams over-correct, build a multi-stage approval bureaucracy, and within a month people are routing around it because they have work to do. A control that everyone bypasses is worse than no control, because it looks like protection on paper and provides none in practice.
The fix is to put the control where the work already happens, and make it fast.
How to enforce it without the pain
A version that actually sticks:
Require approval in the pipeline. Changes go through review before they apply — a pull request approval, a sign-off in your change tool. The author can't self-approve; the system enforces it. Tools like Bytebase and Liquibase support approval gates for exactly this.
Restrict who can apply to production. The ability to run a change against production is a separate, tightly held permission. Authoring a change and applying it are different privileges held by different people.
Lock down direct production access. Separation of duties on the pipeline means nothing if anyone can bypass it with a direct connection. The fewer people who can change production by hand, the more real the control is.
Log everything. Every request, every approval, every applied change — with names and timestamps. That's the evidence an audit needs and the trail an investigation follows.
Done this way, the control adds minutes, not days. The author writes the change, a colleague approves it, the system records both, and production stays protected.
It's not only about changes
Most discussions of separation of duties stop at schema changes. But the same principle applies to reading sensitive data. Who can see customer PII, whether that access is reviewed, and whether it's logged are all part of the same idea: sensitive actions shouldn't sit unchecked in one person's hands.
This is where change controls and data governance meet. Qarbix DataGuard extends the principle from "who can change production" to "who can read sensitive data," enforcing access policy at query time and writing every access to an immutable audit log. Your change tool keeps one person from shipping an unreviewed migration; the governance layer keeps one person from quietly reading data they shouldn't — and both produce the evidence an auditor will ask for.
Frequently asked questions
What is separation of duties in databases? No single person can both make and approve the same sensitive change. The author of a migration or data fix shouldn't be the one who approves and applies it to production.
Why do auditors care? Concentrated authority is where fraud and unreviewed mistakes happen. SOC 2, PCI DSS and DPDPA expect sensitive actions to be reviewed by someone other than the person performing them, with evidence.
How do you enforce it without slowing teams down? Put it where work happens: require approval in the pipeline, restrict who can apply to production, lock down direct access, and log everything. It adds minutes, not days.
Does it apply to reading data too? Yes. Who can access sensitive data, and whether it's reviewed and logged, is part of the same principle. A governance layer extends it from schema changes to data access.
Tags
#database security, #database governance
Written by Team Qarbix, the engineers who build CloudLens and DataGuard.