The Fortanix Confidential Computing Manager (CCM) environment is designed with the goal of protecting any application. This article describes how to run a Flask Server application on a compute node.
1.0 Running a Flask Server Enclave OS Application
- A Python Web Application should be created.
- A group must be created. See the article "User's Guide: Create a Group" for more information.
1.2 Run an Enclave OS Application on Compute Node
- Navigate to the Application menu item in the CCM UI left navigation bar, and click the + ADD APPLICATION button.
Figure 1: Create New Application
- Add a Python Web Application. See the article “User's Guide: Add and Edit an Application” for more information.
- Approve the domain for the Python Web Application. See the article “User's Guide: Tasks” for more information.
- In the detailed view of the application, click the + IMAGE button.
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.
- Approve the image for the Python Web Application. See the article “User's Guide: Tasks” for more information.
- For the node agent attestation type DCAP/EPID, run the application image using the following command:
docker run --privileged --volume /dev:/dev -v /var/run/aesmd/aesm.socket:/var/run/aesmd/aesm.socket -e NODE_AGENT_BASE_URL=http://22.214.171.124:9092/v1/ fortanix-private/python-flask-sgx
9092is the port on which Node Agent listens up.
126.96.36.199is the Node Agent Host IP.
fortanix-private/python-flask-sgxis the converted app that can be found in the Images under the Image Name column in the Images table.
Figure 3: Run the Application
- To verify that the application is running, click the APPLICATION from the list in the Fortanix CCM UI 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