Skip to content
This repository has been archived by the owner on Nov 20, 2024. It is now read-only.

Cosmian/mse-app-examples

Repository files navigation

Cosmian Enclave applications examples

This repository contains several app examples runnable in a Cosmian Enclave (formerly MSE) architecture.

Each example contains:

  • A file mse.toml, which is the configuration of the MSE app.
  • A folder mse_src is the code to run inside the MSE node.
  • A folder test enables you to unit test your application locally or remotely.

Read the full documentation for more details about MSE and mse-cli.

Clone the repository as follows:

# apt install git-lfs
$ git clone https://github.com/Cosmian/mse-app-examples

These examples have been generated using:

$ mse cloud scaffold $NAME

You can test locally an app doing:

$ cd example_name
$ mse cloud localtest

You can quickly deploy this app doing:

$ cd example_name
$ mse cloud deploy

And test it:

$ mse cloud test <APP_ID>

Examples list

Name Usage scenario
helloworld Zero Trust
fastapi-helloworld Zero Trust
merge join Zero Trust
path Zero Trust
yaos millionaires Zero Trust
yaos millionaires trust owner App Owner trusted
data_anonymization_s3 Zero Trust
digit recognition (tensorflow) Zero Trust
sentiment analysis (pytorch & transformers) Zero Trust

Dockers list

This repository also provides some allowed mse dockers. See the packages to get the up-to-date references. The dockerfile are written in these following examples:

Name Dockerfile
mse-anonymization data_anonymization_s3
mse-ds merge_join
mse-fastapi fastapi_helloworld
mse-flask helloworld
mse-nlp sentiment_analysis
mse-tensorflow digit_recognition

Annexes

Here a way to tar an example to be run inside an mse-docker:

$ tar -cvf $PWD/helloworld.tar --directory=helloworld/mse_src app.py requirements.txt