How to Configure Separation of Duties Policy Example

Published
Length
3 min read

Luis Felipe Dias

All posts

A separation of duties policy example splits critical tasks between two or more people. You set it up by dividing write, approve, and run permissions across distinct team roles. This rule stops one person from making a bad change and hiding the trail. It protects databases, cloud accounts, and payment systems from fraud and costly human mistakes. How a separation of duties policy example works The core idea is simple and applies to both human users and automated workloads. One role creates a

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.

A separation of duties policy example splits critical tasks between two or more people. You set it up by dividing write, approve, and run permissions across distinct team roles.

This rule stops one person from making a bad change and hiding the trail. It protects databases, cloud accounts, and payment systems from fraud and costly human mistakes.

How a separation of duties policy example works

The core idea is simple and applies to both human users and automated workloads. One role creates a change or requests a task, and a second role reviews it.

In a software team, a developer writes code for a core app. That same developer cannot approve the pull request or push the code to production.

A peer or team lead must check the code and sign off on the release. After approval, an automated build tool runs the deploy job using its own narrow role.

You apply the same pattern to database updates and live server tasks. An engineer who needs to fix a production database writes out the exact query first.

A second person on the security or platform team checks that query before it runs. This two-person rule stops accidental table drops and unauthorized data reads during high-pressure incidents.

Safe defaults start with deny-all rules for every new user and service account. You grant read permissions to broad groups, while write permissions require an active peer approval.

Identity providers and cloud consoles let you group users into mutually exclusive roles. If a user belongs to the builder group, the system blocks them from the approver group.

How to map roles across teams and workloads

Start by listing every high-risk action in your cloud accounts and internal data stores. Common examples include editing billing rules, changing firewall settings, and running write queries on customer tables.

DPoP (Demonstration of Proof-of-Possession) + End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Next, break each high-risk action into three steps: request, approve, and execute. Assign each step to a separate role in your identity provider or directory tool.

For small teams, you can rotate who holds the approver role each week. Just make sure the person on approval duty does not push their own unreviewed changes.

Service accounts and background jobs also need strict role boundaries to stay safe. A build runner should never hold permission to edit its own IAM rules or audit logs.

Keep admin roles empty by default so nobody holds standing write permissions all day. When a task comes up, a team member requests temporary role activation for a short window.

Checking your setup and limits of static roles

You must check your role assignments often to catch permission creep over time. Run a monthly review to find users who hold both builder and approver roles.

Check your central logs to confirm every production change links back to two distinct identities. One log entry should show the requester, and a second entry should show the approver.

Still, static cloud roles and group rules only control who can log in at the start. Once a user opens a live database session, static roles cannot see individual commands.

A user with a broad database role could run a safe query or delete a table. Static role checks also cannot mask sensitive fields like emails, phone numbers, or card numbers.

To close this gap, teams pair role rules with command-level checks and data masking. Data masking rewrites matched fields in results so sensitive values do not appear in plain text.

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 inline in the protocol beside the service as an open-source proxy, a sidecar for your database or API. On every production query an agent or human runs, hoop.dev decides whether to pass, mask, block, or escalate it for review.

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 approval, and hoop.dev data masking rewrites sensitive fields in responses in memory. Explore the MIT-licensed project on GitHub.

Frequently asked questions

What is the main goal of separation of duties?

The main goal is to stop one person from having total control over a critical system. Requiring two people for major actions reduces fraud, insider threats, and accidental outages.

How do small teams handle separation of duties?

Small teams use peer reviews and automated pipelines to split up high-risk tasks. Even a two-person team can require the second engineer to approve production database commands.

Does separation of duties apply to read access?

Yes, it applies when systems hold private data like national IDs or card numbers. You can require a manager to approve read sessions or mask sensitive fields in query results.

The query runs. The emails stay hidden.