From 87928d370ad28f6ea23183deede9760a3c913fcd Mon Sep 17 00:00:00 2001 From: Noor Date: Wed, 26 Mar 2025 03:14:01 +0530 Subject: [PATCH] feat: update package list base-package and go-app-info package --- src/bin/detee-cli.rs | 2 +- src/sgx/mod.rs | 44 ++++++++++++++++++++++---------------------- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/src/bin/detee-cli.rs b/src/bin/detee-cli.rs index 0f029dc..3097f07 100644 --- a/src/bin/detee-cli.rs +++ b/src/bin/detee-cli.rs @@ -117,7 +117,7 @@ fn clap_cmd() -> Command { Arg::new("memory") .long("memory") .default_value("500") - .value_parser(clap::value_parser!(u32).range(200..2050)) + .value_parser(clap::value_parser!(u32).range(200..4050)) .help("memory in MB") ) .arg( diff --git a/src/sgx/mod.rs b/src/sgx/mod.rs index 8b497aa..2ecf754 100644 --- a/src/sgx/mod.rs +++ b/src/sgx/mod.rs @@ -69,28 +69,28 @@ pub struct PackageElement { } pub static PACKAGES_INDEX: LazyLock = LazyLock::new(|| { - PublicIndex { packages: vec![ - // TODO: package a general base package - PackageElement{ - package_name: "base-package".to_string(), - package_url: "https://registry.detee.ltd/sgx/packages/actix-app-info_package_2025-03-19_13-49-56.tar.gz".to_string(), - launch_config_url: "https://registry.detee.ltd/sgx/launch_configs/actix-app-info-launch-config_001.yaml".to_string(), - mr_enclave: [ 139, 208, 253, 40, 81, 80, 225, 137, 106, 182, 27, 200, 25, 128, 212, 235, 76, 153, 215, 42, 160, 69, 26, 132, 77, 223, 182, 180, 136, 218, 173, 184 ], - }, - PackageElement{ - package_name: "actix-app-info".to_string(), - package_url: "https://registry.detee.ltd/sgx/packages/actix-app-info_package_2025-03-19_13-49-56.tar.gz".to_string(), - launch_config_url: "https://registry.detee.ltd/sgx/launch_configs/actix-app-info-launch-config_001.yaml".to_string(), - mr_enclave: [ 139, 208, 253, 40, 81, 80, 225, 137, 106, 182, 27, 200, 25, 128, 212, 235, 76, 153, 215, 42, 160, 69, 26, 132, 77, 223, 182, 180, 136, 218, 173, 184 ], - }, - // TODO: package a go package - PackageElement{ - package_name: "go-app-info".to_string(), - package_url: "https://registry.detee.ltd/sgx/packages/actix-app-info_package_2025-03-19_13-49-56.tar.gz".to_string(), - launch_config_url: "https://registry.detee.ltd/sgx/launch_configs/actix-app-info-launch-config_001.yaml".to_string(), - mr_enclave: [ 139, 208, 253, 40, 81, 80, 225, 137, 106, 182, 27, 200, 25, 128, 212, 235, 76, 153, 215, 42, 160, 69, 26, 132, 77, 223, 182, 180, 136, 218, 173, 184 ], - } - ] } + PublicIndex { + packages: vec![ + PackageElement{ + package_name: "base-package".to_string(), + package_url: "https://registry.detee.ltd/sgx/packages/base-package_2025-03-25_13-54-06.tar.gz".to_string(), + launch_config_url: "https://registry.detee.ltd/sgx/launch_configs/base-package-launch-config_001.yaml".to_string(), + mr_enclave: [47, 58, 112, 8, 157, 109, 224, 80, 78, 225, 47, 55, 103, 53, 71, 234, 97, 11, 16, 22, 231, 77, 113, 52, 203, 97, 136, 109, 178, 240, 128, 169], + }, + PackageElement{ + package_name: "actix-app-info".to_string(), + package_url: "https://registry.detee.ltd/sgx/packages/actix-app-info_package_2025-03-19_13-49-56.tar.gz".to_string(), + launch_config_url: "https://registry.detee.ltd/sgx/launch_configs/actix-app-info-launch-config_001.yaml".to_string(), + mr_enclave: [ 139, 208, 253, 40, 81, 80, 225, 137, 106, 182, 27, 200, 25, 128, 212, 235, 76, 153, 215, 42, 160, 69, 26, 132, 77, 223, 182, 180, 136, 218, 173, 184 ], + }, + PackageElement{ + package_name: "go-app-info".to_string(), + package_url: "https://registry.detee.ltd/sgx/packages/go-gin-app-info_package_2025-03-25_20-56-59.tar.gz".to_string(), + launch_config_url: "https://registry.detee.ltd/sgx/launch_configs/go-gin-app-info-launch-config_001.yaml".to_string(), + mr_enclave: [143, 123, 73, 159, 244, 124, 30, 184, 135, 251, 9, 255, 137, 93, 92, 186, 46, 43, 155, 182, 241, 81, 112, 252, 148, 156, 193, 24, 180, 107, 201, 154] + } + ], + } }); pub fn package_entry_from_name(package_name: &str) -> Option {