Learn

Does Aurora database branching mask sensitive data?

No. A branch of an Aurora PostgreSQL cluster shares its parent's storage, so it holds the same real values as production. Masking policies set on the parent hide values at query time from the roles they name, but the data in the branch is unchanged. For development and testing, branch from a database whose sensitive data is already masked.

Mask once, branch many

PRODUCTION ACCOUNTDEV ACCOUNT Production Snapshot only Washery masks A copy, once Masked copy Masked values Developer A branch for a bug AI agent A branch per task Pull request A branch per test run Each branch is ready in about a minute PRODUCTION ACCOUNT Production Snapshot only Washery masks A copy, once DEV ACCOUNT Masked copy Masked values Developer A branch for a bug AI agent A branch per task Pull request A branch per test run Each branch is ready in about a minute
Mask once with Washery, then branch
Washery masks a copy of production from a snapshot and puts it in your dev account. Developers, agents and pull requests branch from the masked copy, never from production, and each branch is ready in about a minute.

What is in an Aurora branch?

An Aurora branch is a writable copy of a cluster that starts with the parent's data pages and stores only what changes. Each branch has separate serverless compute and a separate endpoint in the parent's VPC, and Aurora deletes it when its time to live runs out. A branch of production therefore holds production data, sensitive data included.

Branching is in preview for Aurora PostgreSQL 17 and later, in US East (Ohio), Europe (Frankfurt) and Asia Pacific (Mumbai). It does not cover Aurora MySQL or Amazon RDS.

What does dynamic masking hide on a branch?

A branch keeps the parent's database users, roles and dynamic masking policies. Aurora masks a value when a role that a policy names reads it, and the stored value does not change. That leaves gaps that a dev or test database cannot have.

SituationWhat the reader gets
A role the policy does not nameReal values. Every new role, user and tool needs the policy to cover it.
pg_dump by a role that is not maskedA backup file with real values in it.
pg_dump by a masked roleMasked values that can break unique, check and foreign key constraints when the file is restored.
Logical replicationChanges after the first copy are replicated without masking.
A materialized viewWhatever its creator could see, for everyone who can read the view.

The built-in masks replace characters or dates. An email address becomes XXXX@XXXXXXX.com and a date becomes 1 January 1900, so validation and tests that expect real-looking data fail.

Take one card number in production, 4871 8033 4018 7801, and read it four ways.

MaskIt becomesWhat happens
Dynamic masking, last four digits keptXXXXXXXXXXXXXXX7801Validation rejects it.
Dynamic masking, random characters4c8Q1z0bT7mPa2Kd9xR exampleIt is no longer a number, so the card check fails.
A role the policy does not name4871 8033 4018 7801The role reads the real card number.
Same format, in a Washery masked copy4372 6167 5136 1341It passes the card check, and the real number is not in the database.

Does AWS offer static masking?

Aurora does not change the data when it creates a branch. The AWS services that write masked values into a copy are AWS DMS and AWS Glue. AWS DMS replaces digits or hashes a value, and AWS Glue redacts a value or hashes it, so a card number stops passing its check and a name becomes a 64-character hash. With both, you set the masking for every column and build the rest of the dev database yourself. AWS DMS data masking covers what it does in detail.

None of them proposes the masking policy, keeps the format of names, card numbers and government ID numbers, or checks the copy before developers get it.

How does a branch compare with a masked copy?

Aurora branch with dynamic maskingWashery masked copy
Values stored in the copyRealMasked
Where the copy isIn the production account, in the parent's VPCIn your dev and test accounts
Who writes the masking rulesYou, in SQL, table by tableWashery proposes the policy and a person approves it
What masked values look likeCharacters replaced with X, or random charactersReal-looking values in the original format
DatabasesAurora PostgreSQL 17 and later, in previewPostgreSQL, MySQL, MariaDB and SQL Server on Amazon RDS, and Aurora PostgreSQL and Aurora MySQL
Time to a new copyAbout a minuteA snapshot restore and the masking. See measured runs

Can you use both?

Yes. Washery masks a copy of production from a snapshot and puts it in your dev account as an Aurora PostgreSQL database. Developers, agents and pull requests create branches from that masked copy, not from production. Each branch is ready in about a minute and holds no real values, and production is not touched. A branch is made from a running database, so the masked copy needs a database output, restored alongside or replaced, rather than a shared snapshot or backup files. Branching needs Aurora PostgreSQL 17 or later, in a Region where AWS offers the preview.

How Washery does it

Washery makes a static masked copy for PostgreSQL, MySQL, MariaDB and SQL Server on Amazon RDS, and Aurora PostgreSQL and Aurora MySQL. Washery uses snapshots only. Running Washery does not impact your live database. Washery sees column names and counts, never values.

Washery writes the masking policy and a person approves it. Each column that holds sensitive data gets a method that keeps it useful for testing.

The masking policy Washery proposed for a customers table, with a masking method chosen for the name, email, phone and date of birth columns
The proposed policy: a method for each column that holds sensitive data, waiting for approval.

The masked copy is created in the production account and received in your dev and test accounts. Washery checks a sample of every masked copy for sensitive data before it is delivered, so the real values stay in production and developers stay out of it.

The Output panel of a finished run, showing the masked snapshot shared with the dev account and the steps and command to restore it
A finished run: the masked snapshot is shared with the dev account.

Runs can be scheduled, or started and followed through the API.

When is a branch the right approach?

  • People who are already allowed to read production need a quick, short-lived copy to test a schema change against current data.
  • Every reader connects through a role that a masking policy covers, and nobody needs to dump, replicate or move the data.

Sources, checked 4 December 2026: database branching for Aurora PostgreSQL (preview), how branching works, pg_columnmask data movement scenarios, pre-defined masking functions and dynamic data masking in Aurora PostgreSQL, all from AWS.

Related

Mask your first database today

Connect your account, review what Washery will mask, and pay only when you create the masked copy.

Want to talk it through first? Book a 20-minute demo.

Mask your first database