Skip to content

Refactoring enclave sample#4828

Draft
lum1n0us wants to merge 3 commits intobytecodealliance:mainfrom
lum1n0us:fix/refactoring_enclave_sample
Draft

Refactoring enclave sample#4828
lum1n0us wants to merge 3 commits intobytecodealliance:mainfrom
lum1n0us:fix/refactoring_enclave_sample

Conversation

@lum1n0us
Copy link
Contributor

@lum1n0us lum1n0us commented Feb 5, 2026

No description provided.

…empotency

- 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
- Add print_env_instructions() function to display clear post-install guidance
- Instruction appears after every successful completion (fresh and idempotent runs)
- Shows bordered message directing users to 'source /opt/intel/sgxsdk/environment'
- Logs instruction details to /tmp/install_sgx.log for reference
- Eliminates user confusion about required environment setup for SGX development
- Buffer interface redesign to separate input and output
- prevent untrusted pointer
@lum1n0us lum1n0us changed the title Fix/refactoring enclave sample Refactoring enclave sample Feb 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant