The Fortanix Enclave Manager environment is designed with the goal of protecting any application. This article describes how to run a Flask Server application on a compute node.
Running a Flask Server Application
- A Python Web Application should be created.
Run an Application on Compute Node
- Click the Applications tab in the Fortanix Enclave Manager UI.
Figure 1: Create new application
- Add a Python Web Application. See the article “User's Guide: Add and Edit an Application” for more information.
- Whitelist the domain for the Python Web Application. See the article “User's Guide: Tasks” for more information.
- Click the Imag es tab in the Fortanix Enclave Manager UI.
Figure 2: Create an image
- Create an image of the Python Web Application by providing a proper tag. See the article “User's Guide: Create an Image” for more information.
- Whitelist the image for the Python Web Application. See the article “User's Guide: Tasks” for more information.
- Run this application image by using the following command:
docker run --device /dev/isgx:/dev/isgx --device /dev/gsgx:/dev/gsgx -v /var/run/aesmd/aesm.socket:/var/run/aesmd/aesm.socket -e NODE_AGENT_BASE_URL=http://184.108.40.206:9092/v1/ fortanix-private/python-flask-sgxWhere,
- 9092 is the port on which Node Agent listens up.
- 220.127.116.11 is the Node Agent Host IP.
- fortanix-private/python-flask-sgx is the converted app that can be found in the Images tab under Image Name column in the Images table.
Figure 3: Run the application
NOTE: Please use your own inputs for Node IP, Port, and Converted Image in the above format. The information in the example above is just a sample.
- To verify that the application is running, click the Applications tab and verify that there is a running application image associated with it and displayed with the application in the detailed view of the application.
Figure 4: Deployed application