Skip to content

Commit cd852a7

Browse files
committed
Learn Editor: Update sql-data-sync-best-practices.md
1 parent 46739a3 commit cd852a7

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

azure-sql/database/sql-data-sync-best-practices.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,16 @@ Azure SQL Database supports only a single set of credentials. To accomplish thes
5858
- Change the credentials for different phases (for example, *credentials1* for setup and *credentials2* for ongoing).
5959
- Change the permission of the credentials (that is, change the permission after sync is set up).
6060

61+
62+
### Minimize credential exposure
63+
64+
- **Use a dedicated database user with minimal permissions.** When configuring SQL Data Sync, create a dedicated SQL user whose access is restricted to only the tables and operations required for synchronization. Avoid using a broadly privileged account. For the specific permissions needed during each phase, see [Database accounts with least required privileges](#database-accounts-with-least-required-privileges).
65+
66+
- **Create a separate SQL user for each database in the sync group.** For every database that participates in synchronization (hub and members), create and use a distinct SQL user account with permissions scoped to that database. If one set of credentials is compromised, exposure is limited to the data in that single database rather than the entire sync topology.
67+
68+
- **Delete sync groups that are no longer in use.** SQL Data Sync stores the SQL authentication credentials you provide for the lifetime of the sync group. Once synchronization is no longer needed — including sync groups created for one-time data moves — [delete the sync group](sql-data-sync-sql-server-configure.md) to remove stored credentials from the service.
69+
70+
6171
### Auditing
6272

6373
It is recommended to enable auditing at the level of the databases in the sync groups. Learn how to [enable auditing on your Azure SQL database](auditing-overview.md) or [enable auditing on your SQL Server database](/sql/relational-databases/security/auditing/sql-server-audit-database-engine).

0 commit comments

Comments
 (0)