@super-protocol/addons-tee 0.8.10 → 0.8.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@super-protocol/addons-tee",
3
- "version": "0.8.10",
3
+ "version": "0.8.11",
4
4
  "description": "The TEE trusted loader addons",
5
5
  "tags": [
6
6
  "tee"
@@ -3,8 +3,8 @@ FROM node:16-buster-slim
3
3
  RUN apt update && apt install -y libcurl4 libcjson1 curl gnupg2 && rm -rf /var/lib/apt/lists/*
4
4
  RUN curl -fsSL https://download.01.org/intel-sgx/sgx_repo/ubuntu/intel-sgx-deb.key | apt-key add - \
5
5
  && echo 'deb [arch=amd64] https://download.01.org/intel-sgx/sgx_repo/ubuntu bionic main' >> /etc/apt/sources.list.d/intel-sgx.list \
6
- && apt-get update \
7
- && apt install libsgx-dcap-default-qpl libsgx-urts libsgx-dcap-quote-verify -y
6
+ && apt-get update \
7
+ && apt install libsgx-dcap-default-qpl libsgx-urts -y
8
8
 
9
9
  COPY ./sgx_default_qcnl.conf /etc/sgx_default_qcnl.conf
10
10
 
@@ -2,7 +2,7 @@
2
2
  set -e
3
3
  SCRIPT_DIR="$( cd "$( dirname "$0" )" && pwd )"
4
4
 
5
- GSC_FIXED_COMMIT="v1.6"
5
+ GSC_FIXED_COMMIT="v1.4"
6
6
  BASE_IMAGE_NAME="node16-sgx-tests"
7
7
 
8
8
  docker rmi gsc-${BASE_IMAGE_NAME} -f
@@ -15,7 +15,9 @@ rm -f enclave-key.pem
15
15
  openssl genrsa -3 -out enclave-key.pem 3072
16
16
 
17
17
  rm -rf ./gsc
18
- git clone https://github.com/gramineproject/gsc && cd gsc && git reset --hard "${GSC_FIXED_COMMIT}"
18
+ git clone https://github.com/gramineproject/gsc && cd gsc && git reset --hard "${GSC_FIXED_COMMIT}" && git config user.email "super@user.com" && git config user.name "SuperUser" && git cherry-pick 4bf7976
19
+ curl https://download.01.org/intel-sgx/sgx_repo/ubuntu/intel-sgx-deb.key -o ./keys/intel-sgx-deb.key
20
+ sed -i 's/\(gramine-sgx \/gramine\/app_files\/entrypoint\)/exec \1/g; s/\(gramine-direct \/gramine\/app_files\/entrypoint\)/exec \1/g' ./templates/apploader.common.template
19
21
 
20
22
  ./gsc build ${BASE_IMAGE_NAME} ../node16-base.manifest -c ../gsc-config.yaml
21
23
  ./gsc sign-image ${BASE_IMAGE_NAME} ../enclave-key.pem -c ../gsc-config.yaml