Skip to content

Commit 0ec91ce

Browse files
authored
Refactoring enclave sample (#4828)
* refactor(ci): production-ready SGX install script with logging and idempotency - Add comprehensive logging infrastructure to /tmp/install_sgx.log - Implement idempotency checks for SGX packages and SDK - Modularize into functions: platform_detect, install_packages, validate_installation, cleanup - Add strict error handling with set -euo pipefail and error traps - Replace FIXME with proper environment sourcing documentation - Add dynamic platform detection for Ubuntu 20+/Debian 11/12 - Ensure minimal console output (final status only) with all details in log - Verify all acceptance scenarios pass with comprehensive testing * Refactoring enclave-sample aligning sgx BKM. - Buffer interface redesign to separate input and output - prevent untrusted pointer - add module and instance handle release functions for better resource management
1 parent 7233982 commit 0ec91ce

File tree

5 files changed

+684
-15
lines changed

5 files changed

+684
-15
lines changed

.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ core/iwasm/libraries/lib-wasi-threads/test/*.wasm
2121
core/iwasm/libraries/lib-socket/test/*.wasm
2222

2323
product-mini/app-samples/hello-world/test.wasm
24-
product-mini/platforms/linux-sgx/enclave-sample/App/
25-
product-mini/platforms/linux-sgx/enclave-sample/Enclave/
26-
product-mini/platforms/linux-sgx/enclave-sample/iwasm
24+
product-mini/platforms/linux-sgx/enclave-sample/
25+
!product-mini/platforms/linux-sgx/enclave-sample/App/App.*
26+
!product-mini/platforms/linux-sgx/enclave-sample/Enclave/Enclave.*
2727

2828
build_out
2929
tests/wamr-test-suites/workspace

0 commit comments

Comments
 (0)