Skip to content

Commit 8ea8a44

Browse files
authored
Merge pull request #33701 from MicrosoftDocs/main
4/2/2025 PM Publish
2 parents 941b52f + 0e4ebf7 commit 8ea8a44

File tree

2 files changed

+30
-4
lines changed

2 files changed

+30
-4
lines changed

azure-sql/database/auditing-overview.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ You can use SQL Database auditing to:
5151
- One of the primary changes involves a folder structure change for audit logs stored in storage account containers. Previously, server audit logs were written to separate folders; one for each database, with the database name serving as the folder name. With the new update, all server audit logs will be consolidated into a single folder labeled `master`. This behavior is the same as Azure SQL Managed Instance and SQL Server.
5252
- Folder structure change for read-only replicas:
5353
- Read-only database replicas previously had their logs stored in a read-only folder. Those logs will now be written into the `master` folder. You can retrieve these logs by filtering on the new column `is_secondary_replica_true`.
54-
- Permissions required to view Audit logs :
55-
- **Control Server** permission is required to view audit logs stored in the `master` folder
54+
- Permissions required to view Audit logs:
55+
- `CONTROL DATABASE` permission on the `master` database is required to view audit logs stored in the `master` folder
5656

5757
## Auditing limitations
5858

docs/relational-databases/replication/security/replication-security-best-practices.md

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,34 @@ helpviewer_keywords:
5959

6060
- Ensure that a given agent (for example the Distribution Agent for a subscription) makes connections under the same account at each computer.
6161

62-
- In situations that require [!INCLUDE[ssNoVersion](../../../includes/ssnoversion-md.md)] Authentication, access to UNC snapshot shares is often not available (for example access might be blocked by a firewall). In this case, you can transfer the snapshot to Subscribers through file transfer protocol (FTP). For more information, see [Transfer Snapshots Through FTP](../../../relational-databases/replication//publish/deliver-a-snapshot-through-ftp.md).
63-
62+
- In situations that require [!INCLUDE[ssNoVersion](../../../includes/ssnoversion-md.md)] Authentication, access to UNC snapshot shares is often not available (for example access might be blocked by a firewall). In this case, you can transfer the snapshot to Subscribers through file transfer protocol (FTP). For more information, see [Transfer Snapshots Through FTP](../../../relational-databases/replication//publish/deliver-a-snapshot-through-ftp.md).
63+
64+
## Improve security posture with database master key
65+
66+
When using SQL Server authentication for replication, secrets that you provide when you configure replication are stored within SQL Server — specifically, in the distribution database and, for pull subscriptions, also in the subscriber database.
67+
68+
To enhance the security posture for replication, **before you *start* to configure replication**:
69+
70+
- Create a [database master key (DMK)](../../../t-sql/statements/create-master-key-transact-sql.md) in the distribution database of the server that hosts the Distributor.
71+
- For *pull subscriptions*, also create a DMK in the subscriber database.
72+
73+
If replication was created before the DMK, first create the DMK, and then update replication secrets by updating passwords for replication jobs. You can update the job with the same password, or you can use a new password.
74+
75+
To update replication secrets, use one of the following relevant stored procedures to update passwords for replication jobs:
76+
77+
- [sp_changelogreader_agent](../../system-stored-procedures/sp-changelogreader-agent-transact-sql.md)
78+
- [sp_changesubscriber](../../system-stored-procedures/sp-changesubscriber-transact-sql.md)
79+
- [sp_changedistpublisher](../../system-stored-procedures/sp-changedistpublisher-transact-sql.md)
80+
- [sp_changepublication_snapshot](../../system-stored-procedures/sp-changepublication-snapshot-transact-sql.md)
81+
82+
83+
Configuring transactional replication without a DMK can result in SQL Server warning `14130` on:
84+
85+
- Azure SQL Managed Instance
86+
- SQL Server 2022 [CU18](/troubleshoot/sql/releases/sqlserver-2022/cumulativeupdate18) and later
87+
- SQL Server 2019 [CU31](/troubleshoot/sql/releases/sqlserver-2019/cumulativeupdate31) and later
88+
89+
6490
## Related content
6591

6692
- [Enable Encrypted Connections to the Database Engine (SQL Server Configuration Manager)](../../../database-engine/configure-windows/configure-sql-server-encryption.md)

0 commit comments

Comments
 (0)