Skip to content

kvinwang/gramine-nodejs

Repository files navigation

Gramine-NodeJS: Secure Node.js Execution using Gramine

Introduction

This project demonstrates how to run Node.js applications securely inside Gramine.

Prerequisites

  • Operating System: Ubuntu 20.04 (other Linux distributions might work but I haven't tested)

Getting Started

Downloading the Prebuilt Package

  1. Visit the project's release page on GitHub.
  2. Download the prebuilt archive suitable for your system.
  3. Extract the downloaded archive and navigate into the newly created directory.

Running Your Node.js Application

Before you run your application, replace the default index.js with the .js file you wish to execute.

With SGX Support

Note: This requires the hardare support SGX and properly configured, and the intel aesmd service need to be installed.

To execute your Node.js application within an SGX enclave, utilize the following command:

./gramine-sgx node

Without SGX (Direct Mode)

If you prefer to run your application without SGX, you can use:

./gramine-direct node