This repository contains a simple encrypted wordcount demo
written in Python. Both the wordcountcode as well as the input is encrypted.
In this demo, we put both the Python code as well as the input file of the wordcount in the same encrypted filesystem. Typically, we would put the Python code in the encrypted filesystem of the image and the encrypted input and output files in one or more encrypted volumes mapped into the container.
NOTE: In this demo, we use an unencrypted Python base image, i.e., the standard Python libraries are not encrypted. Moreover, the Python engine runs inside of a debug enclave. Contact us, if you need a production-ready Python engine with an encrypted Python libraries.
This demo uses private docker repo images. To get access to these images for evaluation, please send us an email.
After getting access to the base Python image, you can perform the following steps:
- Create a local docker image by executing the following shell script:
./create_image.shThis creates a local image encryptedwordcount and a session in a SCONE Configuration and Attestation Service (CAS).
We assume in this demo that the creation of the wordcount image is performed on a trusted host.
The execution of the wordcount can be performed on an untrusted host.
source myenv
docker-compose upEnsure to execute
./cleanup.sh© scontain.com, 2020. Questions or Suggestions?