Server environments
Intel® SGX
Introduction to Intel® SGX
Intel® Software Guard Extensions (SGX) offers hardware-based memory encryption that isolates specific application code and data in memory. SGX allows client-level code to allocate private regions of memory, called enclaves, which are designed to be protected from processes running at higher privilege levels. It offers a granular level of control and protection against many known and active threats. For more information on Intel® SGX, please click here.
SGX-ready server types
Azure Confidential Computing (Virtual Machine)
The required settings to configure a SGX-ready server are as follows:
- Select resource group: Ubuntu 20.04 LTS
- Enter a virtual machine name (e.g. CoboTSSNode)
- Select the Azure region
- Choose image: Ubuntu 18.04 LTS - Gen2
- Select virtual machine size: Standard DC1ds v3 (1 vcpu, 8 GiB memory)
For more information on how to deploy a SGX-ready server using the Azure portal, please click here.
Alibaba Cloud Elastic Compute Service
The following settings are required to build an encrypted computing environment on a g7t, c7t, or r7t instance (vSGX instance):
- Version: Ubuntu 20.04 64-bit that works with UEFI
- Recommended memory: 8GB and above
- Memory (encrypted data): 4GB
- Hard disk: 64G SSD
For more information on how to deploy a SGX-ready server using the Alibaba Cloud Elastic Compute Service, please click here.
SGX-Ready Physical Server (on premise)
Please check the processors that support SGX:
- Head to https://ark.intel.com/content/www/us/en/ark.html
- Click Find products by feature at the bottom
- Switch to the Processors tab and select Intel® Software Guard Extensions (Intel® SGX) in the drop-down menu.
- Select Yes with both Intel® SPS and Intel® ME
- Review the product specifications and configure the following settings
- BIOS Settings: Enable Intel SGX (Software Guard Extension)
- Enable DCAP (FLC)
- Disable hyperthreading
- Operating system: Ubuntu Server 20.04 LTS or 22.04 LTS
- Recommended memory: 8GB RAM
- Recommended storage: 128GB SSD
- Minimum memory (encrypted data): 2GB EPC
SGX status check
Once the encrypted SGX environment has been set up, you can check the SGX status via CPUID. Please execute the following shell commands.
If the output shows three true statuses as displayed below, SGX is successfully enabled. All other false statuses are negligible.
SGX driver installation
The SGX driver should have already been installed by default. During TSS Node initialization, you will be prompted to approve the auto installation of the SGX driver (Intel DCAP 1.41). To verify the installation, execute the following command.
If two or more nodes are displayed, it confirms that the SGX driver has been successfully installed.
For more information on the manual installation of a SGX driver, please refer to the following:
By default, the SGX driver is integrated into the Linux kernel starting from version 5.1 and above. It is recommended to use Linux 5.1 or above.
- Ubuntu 22.04 LTS server + default kernel
- Ubuntu 20.04 LTS server + HWE rolling update model
Alternatively, you can install the DCAP driver and OOT (legacy) provided by Intel. Please note that TSS Node exclusively supports the DCAP driver. You can follow the steps below to manually install the Ubuntu 20.04 DCAP 1.41 driver. For other versions, please refer to the guide above.
- Update the package resource list for APT.
- Install dependencies.
- Download the Intel SGX DCAP drive.
- Modify permissions to the driver installation packages of Intel SGX DCAP.
- Install Intel SGX DCAP drive.
- Check whether the installation is successful.
Docker Engine installation
Docker Engine is required for running the TSS Node. During TSS Node initialization, you will be asked to approve the auto installation of Docker Engine. It is recommended to manually install and configure Docker Engine if your organization follows specific best practices. For more information on how to manually install the Docker Engine on Ubuntu, please click here.
General Server
Introduction to general server
A general server is any server that satisfies the minimum configuration prerequisites for the TSS Node, such as Elastic Compute or a physical server managed by the client. While a general server can host the TSS Node, it lacks the distinctive security features inherent in an SGX-ready server.
Minimum requirements
- CPU: AMD64 or ARM64, 2 cores, a clock speed of 2.5 GHz
- Memory: 4G
- Hard disk: 64G SSD
- Operating system: Ubuntu Server 20.04 LTS or above
Recommended settings
- CPU: AMD64 or ARM64, 4 cores, a clock speed of 3.0 GHz
- Memory: 8G
- Hard disk: 128G SSD
- Operating system: Ubuntu Server 20.04 LTS or above
Docker Engine installation
Docker Engine is required for running the TSS Node. During TSS Node initialization, you will be asked to approve the auto installation of Docker Engine. It is recommended to manually install and configure Docker Engine if your organization follows specific best practices. For more information on how to manually install the Docker Engine on Ubuntu, please click here.
Apple MacBook
Please prepare a new Apple MacBook, upgrade the operating system to the latest macOS version and perform the necessary security configurations.
Things to note
- Avoid using unknown portable storage devices.
- Prevent your computer from syncing with iCloud.
- Refrain from logging into your Apple ID on this computer.
Security configurations
- Disable Bluetooth.
- Turn off AirDrop.
- Activate FileVault for disk encryption.
- Enable the Firewall.
- Establish a complex administrator password using a password manager (e.g., 1Password).
- Set up a Lock Screen.
- Disable Handoff.
Advanced configurations
If utilizing a third-party management system (e.g., Jamf), consider configuring advanced security settings:
- Ensure your computer password is a minimum of 12 characters, including at least one letter, one number, and one special character.
- Prohibit using the same password consecutively three times.
- Set a password expiration period of 90 days, and change the password when prompted.
- Disable iCloud, Apple ID, and Family Sharing.
- Turn off the App Store.
- Disable internet accounts and logins via local mail clients.
- Configure privacy settings to prevent automatic data transfer to Apple.
- Deactivate all sharing services (e.g., tethering, Bluetooth sharing, file sharing, screen sharing).
- Turn off all remote software.
Docker Engine installation
Ensure Docker Engine is installed for running the TSS Node. Follow the official Docker website instructions to complete the installation of Docker Desktop for Apple MacBook.