PRIVAaaS is a set of libraries and tools that allow controlling and reducing data leakage in the context of Big Data processing and, consequently, protecting sensible information that is processed by data analytics algorithms.
Find the sources of PRIVAaaS big data privacy tool here. Find more about EUBra-BISEA at the project website http://www.eubra-bigsea.eu.
We will add ARX to the library soon.
The maven
project contained in priva-poc implements a first version of the libraries. It includes LightPrivacyService, which implements a simple restful service. It does not require an external server.
You can include the library in your Java application or through its REST API. The library usage requires two inputs:
- an anonymization policy, in a
.json
file, e.g. (policy example); - the data to be anonymized, in one or more
.json
files, e.g. (data example).
To setup the REST server, you should run the project with the main class LightPrivacyService. To run the project you can either use maven
or the Docker solution below.
Then, you should use the HTTP method post to the url: http://localhost:4567/endpoint/. Tools can help you with that. You can use the postman or the cURL (in your shell) to try it.
To avoid the need for you to install java
, maven
, etc. we created a Docker container that makes the life much easier.
You only need to install Docker, and after that the process is fully automated. In practice you need to run the files Docker-build.sh and Docker-run.sh.
Docker-build.sh creates the image based on the included Dockerfile and the first time may take a while, due to the need to download the required dependencies. Docker-run.sh starts the container with the LightPrivacyService.
Examples are provided with this code. The project in PRIVAaaS-client portrays how to use the web service provided.
Other rest clients can be used. For instance cURL
, with a command like this.
curl -X POST -v http://localhost:4567/endpoint/ -d @"../../priva-poc/input/example-mock-data/mock_data.policy.json" -d @"../../priva-poc/input/example-mock-data/mock_data.json"
Another usage example is provided with an html form in: