Setup Access Management for Microsoft SQL Server¶
This section outlines the steps to set up the Microsoft SQL Server connector in Privacera. Ensure that all prerequisites are met before proceeding.
Best Practice for enabling the connector
This connector will overwrite existing SQL Server access control policies with Privacera-managed policies.
Recommended approach:
- Create a test database in SQL Server.
- Configure the connector to manage access policies only for that database.
- Verify that policy management works as expected.
- After verification, configure the connector for your production databases.
Create an Instance of the Microsoft SQL Server Connector¶
-
SSH to the instance where Privacera Manager is installed.
-
Run the following command to navigate to the
/configdirectory.Bash -
Create a new directory for the Microsoft SQL Server connector configuration.
Note
Replace
instance1with a unique name for your connector (use only alphanumeric characters and hyphens).Bash -
Copy the sample connector configuration file to your custom directory:
Bash -
Open the
.ymlfile for editing:Bash
-
In PrivaceraCloud, navigate to Settings → Applications.
-
On the Applications screen, select MSSQL application under Available connections.
-
Enter the application Name and Description, then click Save. The name can be any name of your choice, e.g.
MSSQL Connector for account 123456. -
Open the MSSQL application.
-
Enable the Access Management option with toggle button.
Configure Connection Details¶
Update the following properties in your vars.connector.mssql.yml file:
- Specify the Microsoft SQL Server JDBC URL. For example,
jdbc:sqlserver://example.database.windows.net:1433. - Provide the Microsoft SQL Server username and password used to authenticate the JDBC connection.
- Specify the master database name (typically
master) for the master database connection. - Specify the authentication type for the Microsoft SQL Server login.
- Specify the default password for new Microsoft SQL Server users created by Policysync Connector.
Authentication Type
The CONNECTOR_MSSQL_AUTHENTICATION_TYPE property specifies the authentication method.
Supported values:
- SqlPassword: Use when
CONNECTOR_MSSQL_JDBC_USERNAMEis a local SQL Server user. - ActiveDirectoryPassword: Use when
CONNECTOR_MSSQL_JDBC_USERNAMEis an Azure Active Directory user.
Replace the below example values with your actual values.
Enter these fields under the BASIC tab:
- MSSQL JDBC url:
jdbc:sqlserver://<MSSQL_SERVER_HOST>:1433 - MSSQL JDBC username:
<mssql-jdbc-username> - MSSQL JDBC password:
<mssql-jdbc-password> - MSSQL master database:
master - MSSQL authentication type for the login:
SqlPassword - Default password for new mssql user:
<default-password>
Managed Database¶
This property is used to specify the database name for which access control policies will be applied.
Important
The MSSQL connector supports only one database at a time for access control. Providing multiple databases in a comma-separated list is not supported. You must specify a single database name.
Example: testdb1.
Warning
- Database name is case-sensitive.
- Replace the example value with your actual database name.
- This field is mandatory. You must specify exactly one database name.
It is recommended to first test the connector with a test database before configuring it for your target database.
| YAML | |
|---|---|
Under the BASIC tab, enter the values for:
- Database to set access control policies:
testdb1
Apply the Configuration¶
After completing the configuration, start the connector by running the following instructions:
Step 1 - Setup which generates the helm charts. This step usually takes few minutes.
Step 2 - Apply the Privacera Manager helm charts. Step 3 - (Optional) Post-installation step which generates Plugin tar ball, updates Route 53 DNS and so on. This step is not required if you are updating only connector properties.-
Once all the required fields are filled, click Save.
-
The configured Microsoft SQL Server connector appears under Connected Applications.
-
Once saved and enabled, the Microsoft SQL Server connector will start automatically. Then you can hover on the VIEW LOGS button to check the status, either Running or Stopped.
-
If the connector status shows Stopped after saving, or if configuration changes are not being applied, perform the following steps to restart the Microsoft SQL Server connector application:
-
Go to Settings → Applications → select the MSSQL connector application.
-
Edit the application by disabling the Access Management option with toggle button and then Save it.
-
Open the same application again and then enable the Access Management option with toggle button and then Save it.
-
- Prev topic: Prerequisites
- Next topic: Advanced Configuration