Home / Learn Secure SQL / Shared Responsibility: Who Secures What

Shared Responsibility: Who Secures What

Developer, DBA, security team, and platform, each own a slice.

The gistDeveloper, DBA, security team, and platform, each own a slice.

The idea, explained simply

Two halves of the jobDeveloperSafe queriesInput validationUses the DB account it isgiven correctlyDBA / PlatformAccount creation and grantsBackups and patchingNetwork rules
Two halves of the job

What it is

Nobody owns "database security" alone. It is split between the people who write queries, the people who administer the database, the security team, and the cloud platform.

Why it matters

Knowing who owns what prevents the common failure where everyone assumes somebody else handled it.

Mechanically speaking

Use the table below as a starting checklist when you join a new team or start a new project.

Shows up in

  • Web application code review
  • Backend development
  • Database administration
RoleTypically owns
Application developerPrepared statements, input validation, error handling, using the DB account correctly
Database administratorCreating least-privilege accounts, grants, backups, patching the database engine
Security / AppSec teamCode review standards, scanning tools, incident response, training
Cloud / platform teamNetwork isolation, encryption at rest, IAM, firewall rules

In a small team, one person might wear two or three of these hats. The list still matters: it tells you which hat you are wearing in each lesson of this course.

Check yourself

1. If everyone assumes "someone else" secured the database...