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
- 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.
| Situation | What the reader gets |
|---|---|
| A role the policy does not name | Real values. Every new role, user and tool needs the policy to cover it. |
pg_dump by a role that is not masked | A backup file with real values in it. |
pg_dump by a masked role | Masked values that can break unique, check and foreign key constraints when the file is restored. |
| Logical replication | Changes after the first copy are replicated without masking. |
| A materialized view | Whatever 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.
| Mask | It becomes | What happens |
|---|---|---|
| Dynamic masking, last four digits kept | XXXXXXXXXXXXXXX7801 | Validation rejects it. |
| Dynamic masking, random characters | 4c8Q1z0bT7mPa2Kd9xR example | It is no longer a number, so the card check fails. |
| A role the policy does not name | 4871 8033 4018 7801 | The role reads the real card number. |
| Same format, in a Washery masked copy | 4372 6167 5136 1341 | It 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 masking | Washery masked copy | |
|---|---|---|
| Values stored in the copy | Real | Masked |
| Where the copy is | In the production account, in the parent's VPC | In your dev and test accounts |
| Who writes the masking rules | You, in SQL, table by table | Washery proposes the policy and a person approves it |
| What masked values look like | Characters replaced with X, or random characters | Real-looking values in the original format |
| Databases | Aurora PostgreSQL 17 and later, in preview | PostgreSQL, MySQL, MariaDB and SQL Server on Amazon RDS, and Aurora PostgreSQL and Aurora MySQL |
| Time to a new copy | About a minute | A 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 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.

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.