Add GDPR privacy compliance tool

Adding the GDPR privacy compliance tool and the configuration
merge-requests/1/head
geethkokila 7 years ago
parent 3f7d30ab25
commit 59f4c63ca4

@ -37,6 +37,14 @@
<groupId>com.h2database.wso2</groupId> <groupId>com.h2database.wso2</groupId>
<artifactId>h2-database-engine</artifactId> <artifactId>h2-database-engine</artifactId>
</dependency> </dependency>
<dependency>
<groupId>org.wso2.carbon.privacy</groupId>
<artifactId>org.wso2.carbon.privacy.forgetme.conf</artifactId>
</dependency>
<dependency>
<groupId>org.wso2.carbon.privacy</groupId>
<artifactId>org.wso2.carbon.privacy.forgetme.tool</artifactId>
</dependency>
</dependencies> </dependencies>
<build> <build>
@ -84,6 +92,21 @@
<overWrite>true</overWrite> <overWrite>true</overWrite>
<outputDirectory>target</outputDirectory> <outputDirectory>target</outputDirectory>
</artifactItem> </artifactItem>
<artifactItem>
<groupId>org.wso2.carbon.privacy</groupId>
<artifactId>org.wso2.carbon.privacy.forgetme.tool</artifactId>
<version>${forgetme.tool.version}</version>
<type>zip</type>
<overWrite>true</overWrite>
<outputDirectory>target/forget-me</outputDirectory>
</artifactItem>
<artifactItem>
<groupId>org.wso2.carbon.privacy</groupId>
<artifactId>org.wso2.carbon.privacy.forgetme.conf</artifactId>
<version>${forgetme.tool.version}</version>
<overWrite>true</overWrite>
<outputDirectory>target/forget-me-conf</outputDirectory>
</artifactItem>
</artifactItems> </artifactItems>
</configuration> </configuration>
</execution> </execution>
@ -668,6 +691,8 @@
<delete dir="src/site" /> <delete dir="src/site" />
<!--<delete dir="target/shindig" />--> <!--<delete dir="target/shindig" />-->
<delete dir="target/jaxwebapps" /> <delete dir="target/jaxwebapps" />
<delete dir="target/forget-me" />
<delete dir="target/forget-me-conf" />
</tasks> </tasks>
</configuration> </configuration>
<goals> <goals>

@ -653,6 +653,28 @@
<exclude>**/*device-plugins-deployer.xml</exclude> <exclude>**/*device-plugins-deployer.xml</exclude>
</excludes> </excludes>
</fileSet> </fileSet>
<!-- Copying forget me tool -->
<fileSet>
<directory>target/forget-me/identity-anonymization-tool-${forgetme.tool.version}/</directory>
<outputDirectory>${project.artifactId}-${pom.version}/wso2/tools/identity-anonymization-tool/</outputDirectory>
<includes>
<include>**/lib/**</include>
<include>**/log4j.properties</include>
<include>**/**/patterns.xml</include>
</includes>
<fileMode>644</fileMode>
</fileSet>
<fileSet>
<directory>target/forget-me/identity-anonymization-tool-${forgetme.tool.version}/conf/sql/iot</directory>
<outputDirectory>${project.artifactId}-${pom.version}/wso2/tools/identity-anonymization-tool/conf/sql/iot</outputDirectory>
</fileSet>
<fileSet>
<directory>target/forget-me/identity-anonymization-tool-${forgetme.tool.version}/conf/sql/apim</directory>
<outputDirectory>${project.artifactId}-${pom.version}/wso2/tools/identity-anonymization-tool/conf/sql/apim</outputDirectory>
</fileSet>
<!-- ********************************* End of IoT Core Profile ********************************* --> <!-- ********************************* End of IoT Core Profile ********************************* -->
<!-- ********************************* Start of Analytics Profile ********************************* --> <!-- ********************************* Start of Analytics Profile ********************************* -->
@ -1474,6 +1496,72 @@
<fileMode>644</fileMode> <fileMode>644</fileMode>
</file> </file>
<!-- Copying files related to forget me tool -->
<file>
<source>../scripts/forget-me.sh</source>
<outputDirectory>${pom.artifactId}-${pom.version}/bin/</outputDirectory>
<fileMode>744</fileMode>
</file>
<file>
<source>../scripts/forget-me.bat</source>
<outputDirectory>${pom.artifactId}-${pom.version}/bin/</outputDirectory>
<fileMode>744</fileMode>
</file>
<file>
<source>target/forget-me/identity-anonymization-tool-${forgetme.tool.version}/bin/forget-me</source>
<outputDirectory>${pom.artifactId}-${pom.version}/wso2/tools/identity-anonymization-tool/bin/</outputDirectory>
<fileMode>744</fileMode>
</file>
<file>
<source>target/forget-me/identity-anonymization-tool-${forgetme.tool.version}/bin/forget-me.bat</source>
<outputDirectory>${pom.artifactId}-${pom.version}/wso2/tools/identity-anonymization-tool/bin/</outputDirectory>
<fileMode>744</fileMode>
</file>
<file>
<source>target/forget-me/identity-anonymization-tool-${forgetme.tool.version}/conf/product-config/config-iot.json</source>
<outputDirectory>${pom.artifactId}-${pom.version}/wso2/tools/identity-anonymization-tool/conf/</outputDirectory>
<destName>config.json</destName>
<fileMode>744</fileMode>
</file>
<file>
<source>target/forget-me/identity-anonymization-tool-${forgetme.tool.version}/conf/datasources/apim-datasources.xml</source>
<outputDirectory>${pom.artifactId}-${pom.version}/wso2/tools/identity-anonymization-tool/conf/datasources</outputDirectory>
<fileMode>744</fileMode>
</file>
<file>
<source>target/forget-me/identity-anonymization-tool-${forgetme.tool.version}/conf/datasources/um-datasources.xml</source>
<outputDirectory>${pom.artifactId}-${pom.version}/wso2/tools/identity-anonymization-tool/conf/datasources</outputDirectory>
<fileMode>744</fileMode>
</file>
<file>
<source>target/forget-me/identity-anonymization-tool-${forgetme.tool.version}/conf/datasources/cdm-datasources.xml</source>
<outputDirectory>${pom.artifactId}-${pom.version}/wso2/tools/identity-anonymization-tool/conf/datasources</outputDirectory>
<fileMode>744</fileMode>
</file>
<file>
<source>target/forget-me/identity-anonymization-tool-${forgetme.tool.version}/conf/log-config/iot-patterns.xml</source>
<outputDirectory>${pom.artifactId}-${pom.version}/wso2/tools/identity-anonymization-tool/conf/log-config</outputDirectory>
<fileMode>744</fileMode>
</file>
<file>
<source>target/forget-me/identity-anonymization-tool-${forgetme.tool.version}/conf/log-config/apim-patterns.xml</source>
<outputDirectory>${pom.artifactId}-${pom.version}/wso2/tools/identity-anonymization-tool/conf/log-config</outputDirectory>
<fileMode>744</fileMode>
</file>
<!-- ************* Analytics API related files Start ********** --> <!-- ************* Analytics API related files Start ********** -->
<file> <file>
<source>src/core/conf/analytics/analytics-data-config.xml</source> <source>src/core/conf/analytics/analytics-data-config.xml</source>

@ -0,0 +1,40 @@
+@echo off
+REM Copyright 2005-2009 WSO2, Inc. (http://wso2.com)
+REM Licensed to the Apache Software Foundation (ASF) under one
+REM or more contributor license agreements. See the NOTICE file
+REM distributed with this work for additional information
+REM regarding copyright ownership. The ASF licenses this file
+REM to you under the Apache License, Version 2.0 (the
+REM "License"); you may not use this file except in compliance
+REM with the License. You may obtain a copy of the License at
+REM
+REM http://www.apache.org/licenses/LICENSE-2.0
+REM
+REM Unless required by applicable law or agreed to in writing,
+REM software distributed under the License is distributed on an
+REM # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+REM KIND, either express or implied. See the License for the
+REM specific language governing permissions and limitations
+REM under the License.
+
+rem ---------------------------------------------------------------------------
+rem Startup script for the ciphertool
+rem
+rem Environment Variable Prerequisites
+rem
+rem CARBON_HOME Must point at your CARBON directory
+rem
+rem JAVA_HOME Must point at your Java Development Kit installation.
+rem
+rem JAVA_OPTS (Optional) Java runtime options
+rem ---------------------------------------------------------------------------
+
+:checkServer
+setlocal enabledelayedexpansion
+rem %~sdp0 is expanded pathname of the current script under NT with spaces in the path removed
+if "%CARBON_HOME%"=="" set CARBON_HOME=%~sdp0..
+SET curDrive=%cd:~0,1%
+SET wsasDrive=%CARBON_HOME:~0,1%
+if not "%curDrive%" == "%wsasDrive%" %wsasDrive%:
+cd %CARBON_HOME%
+call %CARBON_HOME%\wso2\tools\identity-anonymization-tool\bin\forget-me.bat

@ -0,0 +1,37 @@
#!/bin/sh
# forget-me.sh
# ----------------------------------------------------------------------------
# Copyright 2018 WSO2, Inc. http://www.wso2.org
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# resolve links - $0 may be a softlink
PRG="$0"
while [ -h "$PRG" ]; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '.*/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname "$PRG"`/"$link"
fi
done
# Get standard environment variables
PRGDIR=`dirname "$PRG"`
[ -z "$CARBON_HOME" ] && CARBON_HOME=`cd "$PRGDIR/.." ; pwd`
cd $CARBON_HOME
sh $CARBON_HOME/wso2/tools/identity-anonymization-tool/bin/forget-me -d $CARBON_HOME/wso2/tools/identity-anonymization-tool/conf $@

@ -1440,6 +1440,20 @@
<artifactId>kryo</artifactId> <artifactId>kryo</artifactId>
<version>${kryo.orbit.version}</version> <version>${kryo.orbit.version}</version>
</dependency> </dependency>
<!--Forget me tool-->
<dependency>
<groupId>org.wso2.carbon.privacy</groupId>
<artifactId>org.wso2.carbon.privacy.forgetme.conf</artifactId>
<version>${forgetme.tool.version}</version>
</dependency>
<dependency>
<groupId>org.wso2.carbon.privacy</groupId>
<artifactId>org.wso2.carbon.privacy.forgetme.tool</artifactId>
<version>${forgetme.tool.version}</version>
</dependency>
</dependencies> </dependencies>
</dependencyManagement> </dependencyManagement>
@ -1667,6 +1681,9 @@
<apache.httpmime.version>4.2.5</apache.httpmime.version> <apache.httpmime.version>4.2.5</apache.httpmime.version>
<apache.httpclient.version>4.5.2</apache.httpclient.version> <apache.httpclient.version>4.5.2</apache.httpclient.version>
<!--Forget me tool version-->
<forgetme.tool.version>1.1.4</forgetme.tool.version>
<maven.javadoc.skip>true</maven.javadoc.skip> <maven.javadoc.skip>true</maven.javadoc.skip>
</properties> </properties>

Loading…
Cancel
Save