Commit Graph

522 Commits

Author SHA1 Message Date
Bartosz Gotowalski a614aa7ea4 Updates the DCAP submodule to incorporate the latest PCCS and upstream changes
Updates the DCAP (Data Center Attestation Primitives) submodule to a newer commit, incorporating the latest PCCS (Provisioning Certificate Caching Service) and upstream changes

---------

Signed-off-by: Bartosz Gotowalski <bartosz.gotowalski@intel.com>
2025-10-31 15:44:04 +01:00
Bartosz Gotowalski a47882f04d Revert abseil patch modification to fix updates from 2.26 to 2.27 version
Removed the `#undef __AVX__` line from the SGX-specific preprocessor block in the Abseil patch. 
Change needs to be reintroduced in a different manner not impacting upgrades from 2.26 to 2.27 version

---------

Signed-off-by: Bartosz Gotowalski <bartosz.gotowalski@intel.com>
2025-10-31 13:08:52 +01:00
krzyszt1 3325e85601 Updates the DCAP (Data Center Attestation Primitives) subproject to a newer commit version that includes fixes for QvE (Quote Verification Enclave)
Updated DCAP subproject commit hash to incorporate QvE fixes

---------

Signed-off-by: Krzysztof1 Wisniewski <krzysztof1.wisniewski@intel.com>
2025-10-31 11:31:05 +01:00
Bartosz Gotowalski 6b0a92c280 Update the DCAP submodule to incorporate OpenSSL 3.0.17-based version of the prebuilt archive
Updated the dcap_source submodule commit reference from `838f26f690ab550ece234faa19c5b1a9b9e84284` to `8b78014ba7e5a0a2beeafb24a13bc903dbb3d640`

---------

Signed-off-by: Bartosz Gotowalski <bartosz.gotowalski@intel.com>
2025-10-30 13:06:57 +01:00
Krzysztof Sandowicz 3e0bc4f42a Updates the DCAP (Data Center Attestation Primitives) submodule to update QGS logic
Updates the DCAP submodule commit hash from `3ccb75837871e6685138ec1d3224e55de7bb0bd3` to `838f26f690ab550ece234faa19c5b1a9b9e84284`

---------

Signed-off-by: Krzysztof Sandowicz <krzysztof.sandowicz@intel.com>
2025-10-28 14:15:10 +01:00
ljuzwiuk 888b1da641 Addresses a race condition in the SGX SDK Makefiles that occurs during parallel builds
Renamed the temporary extraction directory from `.libcbor` to `.tdx_cbor` in the TDX-specific build target to avoid conflicts
Added explicit `cbor_untrusted` phony target and declared it as a dependency for `ttls` and `utls` targets to ensure proper build ordering
Added cleanup rule for the cbor external directory

---------

Signed-off-by: Lukasz A Juzwiuk <lukasz.a.juzwiuk@intel.com>
2025-10-27 14:23:35 +01:00
Bartosz Gotowalski a02bfa49d6 Update supported OSes list
- Removed OSes from README that were no longer supported
- Added newly supported OSes to README

---------

Signed-off-by: Bartosz Gotowalski <bartosz.gotowalski@intel.com>
2025-10-27 13:41:21 +01:00
Bartosz Gotowalski d8e22e84dc Updates the reproducible build Docker environment to Ubuntu 22.04
Upgraded base Docker image from Ubuntu 20.04 to 22.04
Updated Nix installer from version 2.9.0 to 2.18.0
Added xz-utils to the list of installed packages

---------

Signed-off-by: Bartosz Gotowalski <bartosz.gotowalski@intel.com>
2025-10-27 13:40:20 +01:00
Bartosz Gotowalski 6ff9964f31 Removes references to the Linux SGX driver from the documentation
This driver has been deprecated and no longer maintained by Intel. We recommend the SGX
community to use the SGX driver that was upstreamed into the Linux kernel.

---------

Signed-off-by: Bartosz Gotowalski <bartosz.gotowalski@intel.com>
2025-10-27 12:57:35 +01:00
Bartosz Gotowalski c6f0784317 Updates the DCAP submodule reference to version which includes the QVE ISVSVN number bump to 0xD
Updated DCAP submodule commit hash

---------

Signed-off-by: Bartosz Gotowalski <bartosz.gotowalski@intel.com>
2025-10-27 12:53:10 +01:00
Bartosz Gotowalski 806a610c44 Update SGX SDK version to 2.27 and DCAP to 1.24
Updated components to newest version

---------

Signed-off-by: Bartosz Gotowalski <bartosz.gotowalski@intel.com>
2025-10-24 18:45:27 +02:00
Bartosz Gotowalski 4b7b16e109 Updates the Intel SGX SSL library to 3.0_Rev5.1 in SGX and DCAP
Updates the Intel SGX SSL library to 3.0_Rev5.1 in SGX and DCAP
DCAP update fixes OpenSSL library reference in QVE tests

---------

Signed-off-by: Bartosz Gotowalski <bartosz.gotowalski@intel.com>
2025-10-24 09:34:39 +02:00
krzyszt1 a1c24802bf Updates the DCAP (Data Center Attestation Primitives) submodule to a newer commit that includes a fix for the QvE (Quote Verification Enclave) Makefile
Updated DCAP submodule commit reference

---------

Signed-off-by: Krzysztof1 Wisniewski <krzysztof1.wisniewski@intel.com>
2025-10-23 15:31:40 +02:00
krzyszt1 4853aeb2dd Updates the DCAP submodule to a newer commit version that supports improved SA (Security Advisors) list handling capabilities
Updated DCAP submodule reference

---------

Signed-off-by: Krzysztof1 Wisniewski <krzysztof1.wisniewski@intel.com>
2025-10-23 09:17:28 +02:00
Mateusz Bronk 13bae8e0a2 [CI] Extends the dispatch workflow to emit dispatch events when specific pull request labels are added/removed
New:
- Adding or removing a label which contains "skip-" will trigger a dispatch event,
- Adding a label which contains "refresh-" will trigger a dispatch event.

---------

Signed-off-by: Mateusz Bronk <mateusz.bronk@intel.com>
2025-10-22 12:32:43 +02:00
Bartosz Gotowalski 9f5eb70008 Fixes a Docker build failure in the reproducibility environment by upgrading the Nix installation
Updated Nix installation URL from version 2.9.0 to 2.18.0 to meet Nixpkgs minimum requirements

---------

Signed-off-by: Bartosz Gotowalski <bartosz.gotowalski@intel.com>
2025-10-22 10:28:57 +02:00
Bartosz Gotowalski 592dbdd40f Switch OpenSSL and SGXSSL to their long-term supported versions and ensure consistency across the project.
Switches OpenSSL from version 3.1.6 to 3.0.17 (and from 3.0.13 to 3.0.17 in sample code)
Updates SGXSSL from 3.1.6_Rev1 to 3.0_Rev5 (that runs on OpenSSL 3.0.17)
Updates the dcap_source subproject commit reference to the one relying on OpenSSL 3.0.17 and SGXSSL 3.0_Rev5

---------

Signed-off-by: Bartosz Gotowalski <bartosz.gotowalski@intel.com>
2025-10-20 10:29:52 +02:00
Bartosz Gotowalski 65121bdd60 Addresses resource leak and uninitialized variable issues identified by Coverity static analysis
Initialize all Bigint pointer variables to NULL to prevent use of uninitialized values
Replace direct `return (STRTOG_NoMemory)` statements with `goto cleanup_and_return_nomem` to ensure proper resource cleanup
Add cleanup label with Bfree calls to release all allocated Bigint resources before returning

---------

Signed-off-by: Bartosz Gotowalski <bartosz.gotowalski@intel.com>
2025-10-16 14:53:02 +02:00
Sankaranarayanan Venkatasubramanian ccf4e77120 Added libsgx-ae-pce dependency to the RPM spec file to match Debian package requirements.
This PR fixes a dependency discrepancy for the libsgx-aesm-pce-plugin package between Debian and RPM packaging systems by adding a missing dependency.

---------

Signed-off-by: Sankaranarayanan Venkatasubramanian <sankaranarayanan.venkatasubramanian@intel.com>
Signed-off-by: Bartosz Gotowalski <bartosz.gotowalski@intel.com>
2025-10-10 20:41:24 +02:00
Bartosz Gotowalski abf305b337 Addresses Coverity static analysis issues across SGX codebase components
Resource leak fixes by changing smart pointer usage patterns
Buffer overflow prevention through proper string termination and bounds checking
Enhanced error handling for file operations

---------

Signed-off-by: Bartosz Gotowalski <bartosz.gotowalski@intel.com>
2025-10-10 13:15:43 +02:00
Mateusz Bronk a4f0697882 Add PCCS Admin Tool to offline repo packaging make targets
Follow-up of upstream DCAP repo change which added `{deb|rpm}_pccs_admin_tool_pkg` make targets.
Adds corresponding build targets to the top-level `Makefile` (the package is now included in the "local repo" archive).

---------

Signed-off-by: Mateusz Bronk <mateusz.bronk@intel.com>
2025-10-09 12:25:13 +02:00
Mateusz Bronk 4ff6da403e Add PCS Client Tool to offline repo packaging make targets
Follow-up of upstream DCAP repo change which added `intel-tee-pcs-client-tool-*{.deb|.rpm}` packages.
Adds corresponding build targets to the top-level `Makefile` (the package is now included in the "local repo" archive).

---------

Signed-off-by: Mateusz Bronk <mateusz.bronk@intel.com>
2025-10-09 11:25:25 +02:00
CC Auto-merge[bot] 2a2a438d0e Auto-merge changes from main branch
Signed-off-by: CC Auto-merge[bot] <sys_cc1s_pr_merge_bot@intel.com>
2025-10-08 19:22:46 +02:00
Bartosz Gotowalski 342c8d0f03 Bump CXX Standard for AESM Service from 14 to 17
Bumped C++ standard from 14 to 17 in the CMake configuration to enable newer OSes

---------

Signed-off-by: Bartosz Gotowalski <bartosz.gotowalski@intel.com>
2025-10-08 19:21:27 +02:00
Sankaranarayanan Venkatasubramanian 8565811d90 Fixes RPM build in Ubuntu environments by replacing bash-specific pushd/popd commands with POSIX-compatible cd commands in RPM spec files
Ubuntu should be able to build RPM packages without depending on a RHEL/CentOS using rpm tools

---------

Signed-off-by: Sankaranarayanan Venkatasubramanian <sankaranarayanan.venkatasubramanian@intel.com>
2025-10-08 13:58:01 +02:00
Paweł Blajer 5fa1969c0b Updates the DCAP submodule after moving PCCS to a new submodule
Updates the DCAP submodule to a new commit after separating PCCS Admin Tool (into PCCS Admin Tool and PCS Client Tool), moving PCCS related files to a new repository and linking that repository to DCAP repo via submodule.

---------

Signed-off-by: Pawel Krzysztof Blajer <pawel.krzysztof.blajer@intel.com>
2025-10-06 15:43:56 +02:00
Krzysztof Sandowicz 2f6caabc70 Removes SGX white list functionality from the AESM service by eliminating all references to the white list URL configuration and related network operations. Allow list updated as standalone bin file
Removes `SGX_WHITE_LIST_FILE` enum value and associated URL handling
Eliminates white list configuration parsing and storage
Removes the `update_white_list_by_url()` function and related network operations

---------

Signed-off-by: Krzysztof Sandowicz <krzysztof.sandowicz@intel.com>
2025-09-30 10:49:14 +02:00
gklodkox bde9b196f9 Bump CXX Standard for AESM Service to 17 and DCAP to include -lpthread flag for GTEST
* Bumped C++ standard from 14 to 17 in the CMake configuration
* Updated DCAP source submodule to a newer commit with -lpthread flag for GTEST

---------

Signed-off-by: GracjanX Klodkowski <gracjanx.klodkowski@intel.com>
2025-09-29 16:33:57 +02:00
Paweł Blajer bc92465dce Update dcap submodule and adjust paths to PCCS
In recent changes to DCAP submodule PCCS paths have been changed. This PR updates to newest submodule and adjusts paths.

---------

Signed-off-by: Pawel Krzysztof Blajer <pawel.krzysztof.blajer@intel.com>
Signed-off-by: Bartosz Gotowalski <bartosz.gotowalski@intel.com>
2025-09-26 16:19:41 +02:00
Krzysztof Sandowicz 519387ff81 Improves logging output by extracting just the filename from the full file path in log messages
Adds a cross-platform filename extraction macro that works with both Unix and Windows path separators
Updates production logging to use the cleaner filename format instead of full file paths
Updates the dcap_source submodule to a newer commit

---------

Signed-off-by: Krzysztof Sandowicz <krzysztof.sandowicz@intel.com>
2025-09-25 12:47:23 +02:00
Krzysztof Sandowicz 209df334b7 Updates the DCAP (Data Center Attestation Primitives) submodule to a newer commit, advancing from commit 497c8163d7960bd5a4f3a4dff8de8c4ab544c518 to 75900b8ac91e1feede9737538e176449a1e73fca
Updates DCAP submodule reference to a newer commit

---------

Signed-off-by: Krzysztof Sandowicz <krzysztof.sandowicz@intel.com>
2025-09-23 07:52:49 +02:00
Bartosz Gotowalski 75fdef7bdb Set DCAP submodule to track the same branch as the current repository
Configure the dcap_source submodule to track the same branch as the current repository instead of being pinned to the main branch

---------

Signed-off-by: Bartosz Gotowalski <bartosz.gotowalski@intel.com>
2025-09-22 16:34:03 +02:00
CC Auto-merge[bot] a62ab92bbb Auto-merge changes from main branch
Signed-off-by: CC Auto-merge[bot] <sys_cc1s_pr_merge_bot@intel.com>
2025-09-15 16:09:37 +02:00
Bartosz Gotowalski 53ad2c9fa2 Added "event emitter" workflow (GHA extension point) and CODEOWNERS
The workflow is dormant (skipped) by default (due to env var setting),
but can be enabled on select forks, allowing to intercept branch events
and run additional CI/CD tasks which are external to this repository.

Signed-off-by: Mateusz Bronk <mateusz.bronk@intel.com>
2025-09-15 15:09:55 +02:00
Bartosz Gotowalski fd34b0fe6c Bump DCAP to include OpenSSL 3.0.17 in SSL preparation scripts
Signed-off-by: Gotowalski, Bartosz <bartosz.gotowalski@intel.com>
2025-09-11 09:23:28 +02:00
Bartosz Gotowalski f2318033ca Update DCAP submodule for multiple updates
Several updates in DCAP submodule:
* Removing strip operation as debug info is later stripped while creating deb/rpm prod, dev and debug packages
* Bump brace-expansion from 1.1.11 to 1.1.12 in /QuoteGeneration/pccs
* Bump on-headers and morgan in /QuoteGeneration/pccs
* Bump tar-fs from 2.1.2 to 2.1.3 in /QuoteGeneration/pccs
* Update dcap components nuget License.txt to match Intel Simplified Software License (Version October 2022)
* Fix to ensure safe path buffer operations.
* Platform Manifest buffer limited to 256KB for PCKRetrievalTool
* Fixed paths to WDK
* Added fixes to building sgxssl.cmd
* Admin tools inf packaging process updated. Switched to latest prebuilt AE.
* Added path to libsgx_usgxssl

Signed-off-by: Gotowalski, Bartosz <bartosz.gotowalski@intel.com>
2025-09-01 10:03:01 +02:00
Jessica Marz 90873a0c98 Merge pull request #1088 from intel/jkmarz-patch-1
Update pthread.h license info
2025-07-30 08:27:15 -07:00
Jessica Marz 7e96a23957 Update pthread.h 2025-07-29 15:32:23 -07:00
Pawel Drzycimski 6ce4f4ad0e Basic fixes to make SGX Linux build on GCC14 used by CentOS10
Signed-off-by: Pawel Drzycimski <pawel.drzycimski@intel.com>
2025-07-29 13:18:14 +02:00
krzyszt1 812fa20961 DCAP source updated to fix .so libraries names.
Signed-off-by: Krzysztof Wisniewski <krzysztof1.wisniewski@intel.com>
2025-07-22 12:26:18 +02:00
krzyszt1 b6ec7a4253 Makefile fix for admin tool build path
Signed-off-by: Krzysztof Wisniewski <krzysztof1.wisniewski@intel.com>
2025-07-14 15:46:35 +02:00
Krzysztof Wisniewski 6e6608cb43 Bump DCAP source version
Signed-off-by: Krzysztof Wisniewski <krzysztof1.wisniewski@intel.com>
2025-07-09 15:36:44 +02:00
Bartosz Gotowalski 23ea18b32e Switching submodule path from absolute to relative for external/dcap_source
Signed-off-by: Bartosz Gotowalski <bartosz.gotowalski@intel.com>
2025-07-09 14:12:15 +02:00
Bartosz Gotowalski be829176f8 Update DCAP submodule to version with fixed SSL preparation scripts
Signed-off-by: Gotowalski, Bartosz <bartosz.gotowalski@intel.com>
2025-06-12 16:14:02 +02:00
Bartosz Gotowalski 8e9ed532cc Linux 2.26 Open Source Gold Release
Intel® Software Guard Extensions (Intel® SGX) for Linux OS includes the following changes in version 2.26:
- Upgraded to OpenSSL 3.1.6.
- Removed support for the MbedTLS Trusted Library.
- Added support for Red Hat Enterprise Linux Server 9.4 (for x86_64) and SUSE Linux Enterprise Server 15.6 64-bits.
- Added support for the FIPS 140-3 Certifiable OpenSSL Provider as an experimental feature.
- Bug fixes.

Signed-off-by: Gotowalski, Bartosz <bartosz.gotowalski@intel.com>
sgx_2.26
2025-05-30 14:54:34 +02:00
Li Xun 7385e10ce1 Correct ipp-crypto submodule branch name (#1060)
Only change branch name displayed in `.gitmodules`.
No change to submodule commit or source code.

Signed-off-by: Li, Xun <xun.li@intel.com>
2024-10-08 10:13:33 +08:00
Li Xun d5a2c9cf69 Fix broken link in README (#1054)
Signed-off-by: Li, Xun <xun.li@intel.com>
sgx_2.25
2024-09-27 18:30:14 +08:00
Li, Xun 9fafc27e8f Linux 2.25 Open Source Gold Release
Upgraded to OpenSSL 3.0.14.
Upgraded Intel(R) Integrated Performance Primitives (IPP) Cryptography library to version
  2021.12.1.
Supported FIPS 140-3 Certifiable IPP Crypto based Trusted Library.
Upgraded Intel SGX Architecture Enclaves based on new IPP crypto library.
Upgraded Intel DCAP Quote Verification Enclave to integrate OpenSSL/SgxSSL 3.0.14.
Removed Intel DCAP PCCS from repository.
Added Ubuntu* 24.04 LTS 64-bit Server support.
Fixed bug.

Note that PCCS is not available from this release. Please follow DCAP installation guide to use
`PCCSAdminTool` to retrieve the attestation collaterals or use old version PCCS.

Signed-off-by: Li, Xun <xun.li@intel.com>
2024-09-26 15:34:56 +08:00
Sharzy c1ceb4fe14 Fix misused tabs in Makefiles (#1018)
Signed-off-by: SharzyL <me@sharzy.in>
2024-07-02 08:49:57 +08:00
Jo Van Bulck 29321db180 Fix assembler call frame information (CFI) directives
Current macros emit an ENDBR instruction between the function label and
corresponding cfi_start, which confuses binary analysis tools like llvm-bolt.

Also add missing cfi_start/end directives for other assembly functions.

See also: https://sourceware.org/binutils/docs/as/CFI-directives.html

Signed-off-by: Jo Van Bulck <jo.vanbulck@cs.kuleuven.be>
2024-06-03 12:47:00 +08:00