db-anonymiser is designed to simplify data anonymization for your databases while ensuring compliance with RGPD regulations. It supports various databases like MS SQL Server, PostgreSQL, and Oracle, allowing for flexible use across different environments. Users can easily configure anonymization rules via JSON files, making data protection straightforward and efficient.
The db-anonymiser is a powerful tool designed to facilitate the anonymization of database data in compliance with RGPD regulations. This utility supports major databases including MS SQL Server, PostgreSQL, and Oracle, providing users with a robust solution for data privacy.
To utilize the db-anonymiser, ensure the following:
To execute the program, run the following command, specifying the JSON configuration file:
java -jar dbanonymizer.jar application.json
If encountering memory issues, consider increasing the JVM maximum memory size with the -Xmx parameter, as the application typically consumes between 200 and 400 MB.
The JSON file consists of two primary sections:
Datasources: Define multiple data sources for the application.
Example:
"databases": [
{
"refId": "myuniqueRefId1",
"driverClassName": "com.microsoft.sqlserver.jdbc.SQLServerDriver",
"url": "jdbc:sqlserver://;serverName=myservername1;databaseName=mydatabasename1;encrypt=true;trustServerCertificate=true",
"username": "test",
"password": "test"
},
{
"refId": "myuniqueRefId2",
"driverClassName": "com.microsoft.sqlserver.jdbc.SQLServerDriver",
"url": "jdbc:sqlserver://;serverName=myservername2;databaseName=mydatabasename2;encrypt=true;trustServerCertificate=true",
"username": "test",
"password": "test"
}
]
Each refId must be unique for proper identification.
Anonymisation Rules: Specify the rules dictating how data should be anonymized.
Example:
{
"tableName": "Table1",
"primaryKey": "id",
"columnName": "column1",
"anonymiser": "COMPANY_NAME",
"databaseRefId": "myuniqueRefId1"
}
Anonymization types include:
For the LITTERAL type, specify the actual value to anonymize with the litteralValue attribute:
Example:
{
"tableName": "Company",
"primaryKey": "Company_Id",
"columnName": "BRN",
"anonymiser": "LITTERAL",
"litteralValue": "00000",
"databaseRefId": "myuniqueRefId2"
}
The db-anonymiser provides a flexible and effective means of protecting sensitive data while maintaining the functionality of databases in compliance with data protection regulations.
No comments yet.
Sign in to be the first to comment.