mirror of
https://github.com/epfl-dlab/secvm-server.git
synced 2026-12-04 07:48:50 +00:00
Read-only mirror of https://github.com/epfl-dlab/secvm-server — EPFL Data Science & AI Lab (dlab). Issues & pull requests at the source.
- Java 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| config | ||
| database | ||
| src/com/cliqz/secvmserver | ||
| .gitignore | ||
| pom.xml | ||
| README.md | ||
SecVM Server
This repository contains the server code for the online evaluation in Sec. 6 of the paper 'Privacy-Preserving Classification with Secret Vector Machines'.
The README in the respository with the client code contains more information on the project and on the implementation.
Setting up the backend
Database
- Install MySQL and set a root password.
- Create the database, fill it with sample data:
cd database
mysql -u root -p
source create-SecVM_DB.sql;
source fill-database.sql;
- Create the MySQL user and give them access to the database (stay inside the MySQL command prompt):
CREATE USER 'java'@'localhost' IDENTIFIED BY 'java';
GRANT ALL PRIVILEGES ON SecVM_DB . * TO 'java'@'localhost';
Java
- Install Java (at least version 8) and Maven.
- Compile the server:
mvn clean install
- Create the folder that contains the files that are later fetched by the clients:
mkdir experiment-configs
Running the server
In the production setting, we ran the main server behind NGINX and also served the files via NGINX. For testing purposes, one can do without NGINX.
- Start the main server:
java -Dsun.net.httpserver.maxReqTime=1 -Dsun.net.httpserver.maxRspTime=1 -Dsun.net.httpserver.idleInterval=1 -cp target/secvmserver-1.0-jar-with-dependencies.jar com.cliqz.secvmserver.Server 4
- Start the file server (requires Python):
cd SecVM-Server/experiment-configs
python -m SimpleHTTPServer
-
Start Firefox with the Cliqz plugin that contains the SecVM module and log in at facebook.com.
-
Check if packages arrive (new terminal):
mysql -u java -p
connect SecVM_DB;
select * from package_test;
select * from package_participation;
select * from package_train;
- Shut the server down:
type
stop, followed by enter.