%bcond check 1 Name: trustee Version: 0.15.0 Release: %autorelease Summary: Tools and components for attesting confidential guests and providing secrets ### BEGIN LICENSE SUMMARY ### # (Apache-2.0 OR MIT) AND BSD-3-Clause # (MIT OR Apache-2.0) AND Unicode-DFS-2016 # 0BSD OR MIT OR Apache-2.0 # Apache-2.0 # Apache-2.0 AND ISC AND (MIT OR Apache-2.0) # Apache-2.0 OR BSL-1.0 # Apache-2.0 OR MIT # Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT # BSD-2-Clause OR Apache-2.0 OR MIT # BSD-3-Clause # ISC # MIT # MIT AND Apache-2.0 AND BSD-3-Clause # MIT OR Apache-2.0 # MIT OR Zlib OR Apache-2.0 # MPL-2.0 # Unicode-3.0 # Unlicense OR MIT # Zlib ### END LICENSE SUMMARY ### License: ((Apache-2.0 OR MIT) AND BSD-3-Clause) AND ((MIT OR Apache-2.0) AND Unicode-DFS-2016) AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 AND ISC AND (MIT OR Apache-2.0)) AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND (BSD-3-Clause) AND ISC AND MIT AND (MIT AND Apache-2.0 AND BSD-3-Clause) AND (MIT OR Apache-2.0) AND (MIT OR Zlib OR Apache-2.0) AND MPL-2.0 AND Unicode-3.0 AND (Unlicense OR MIT) AND Zlib URL: https://github.com/confidential-containers/trustee Source0: %{url}/archive/refs/tags/v%{version}.tar.gz Source1: https://github.com/confidential-containers/guest-components/archive/refs/tags/v%{version}/guest-components-%{version}.tar.gz Patch: 0001-restrict-workspace-members-to-kbs-only.patch Patch: 0002-kbs-remove-built-in-attestation-service-for-lightwei.patch Patch: 0003-kbs-replace-concat-kdf-dependency-with-internal-impl.patch Patch: 0004-Refactor-kbs-replace-jwt-simple-with-jsonwebtoken-in.patch Patch: 0005-Refactor-deps-align-crate-versions-with-Fedora-upstr.patch Patch: 0006-replace-derivative-with-educe-for-debug-derivation.patch Patch: 0007-replace-git-dependencies-with-path-registry-deps-for.patch Patch: 0008-guard-RVPS-import-in-config-tests.patch BuildRequires: openssl-devel BuildRequires: cargo-rpm-macros BuildRequires: git-core %description Tools and components for attesting confidential guests and providing secrets to them. Collectively, these components are known as Trustee. Trustee typically operates on behalf of the guest owner and interacts remotely with guest components, providing the necessary services for Attestation and Secret Delivery. #=============================================================================== %package kbs Summary: Key Broker Service for Confidential Computing Requires: openssl %description kbs The Key Broker Service (KBS) is a key management component for Confidential Computing scenarios. It provides secure key distribution for confidential containers and virtual machines. KBS supports multiple backend storage systems and attestation services. #=============================================================================== %prep %autosetup -n trustee-%{version} -a1 -S git %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build # Use system OpenSSL instead of building from source export OPENSSL_NO_VENDOR=1 %cargo_build %cargo_license_summary %{cargo_license} > LICENSE.dependencies %install # Install KBS install -D -m 755 target/rpm/kbs %{buildroot}%{_bindir}/kbs %if %{with check} %check %cargo_test %endif %files kbs %license LICENSE %license LICENSE.dependencies %doc README.md %{_bindir}/kbs %changelog %autochangelog