Compare commits

...

6 Commits
c9s ... c10s

Author SHA1 Message Date
Adam Prikryl
a06666bfd5 ci_tests.fmf plan update for gating testing 2026-02-11 14:44:33 +01:00
Adam Prikryl
ca8ff9c401 Fix summary in ci_tests.fmf 2026-02-03 12:39:02 +00:00
Adam Prikryl
08aea9b563 Enable gating for c10s 2026-02-03 12:39:02 +00:00
Sergio Arroutbi
b10bb7d274
Initial commit on c10s
Resolves: #RHEL-139808

Signed-off-by: Sergio Arroutbi <sarroutb@redhat.com>
2026-02-03 10:46:49 +01:00
Johnny Hughes
4adbe95928 remove dead.package and README.md and setup clevis-pin-trustee for use, CS-3276 2026-02-02 10:14:34 -06:00
gitlab-ops
809fd128a3 Reset branch contents to only include README.md and dead.package. 2026-01-22 15:39:15 +00:00
6 changed files with 102 additions and 0 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

5
.gitignore vendored
View File

@ -0,0 +1,5 @@
/clevis-pin-trustee-0.0.1.tar.gz
/clevis-pin-trustee-0.0.1-vendor.tar.gz
/clevis-pin-trustee-0.0.1-vendor.tar.zstd
/clevis-pin-trustee-0.1.0-vendor.tar.zstd
/clevis-pin-trustee-0.1.0.tar.gz

11
ci_tests.fmf Normal file
View File

@ -0,0 +1,11 @@
/e2e_internal:
plan:
import:
url: https://github.com/RedHat-SP-Security/clevis-pin-trustee-plans.git
name: /generic/e2e_ci_internal
/rpmverify:
plan:
import:
url: https://github.com/RedHat-SP-Security/clevis-pin-trustee-plans.git
name: /generic/rpmverify

77
clevis-pin-trustee.spec Normal file
View File

@ -0,0 +1,77 @@
%if 0%{?rhel} || 0%{?epel}
# RHEL/EPEL: Use bundled deps as it doesn't ship Rust libraries
%global bundled_rust_deps 1
%else
# Fedora: Could use system Rust libraries, but we use vendored for simplicity
%global bundled_rust_deps 1
%endif
# GitHub tag doesn't use tilde, map it here
%global upstream_version 0.1.0
Name: clevis-pin-trustee
Version: %{upstream_version}
Release: %autorelease
Summary: Clevis PIN for Trustee attestation
License: MIT
URL: https://github.com/latchset/%{name}
Source0: https://github.com/latchset/%{name}/archive/refs/tags/v%{upstream_version}.tar.gz#/%{name}-%{upstream_version}.tar.gz
# The vendor tarball is created using cargo-vendor-filterer to remove Windows
# related files (https://github.com/cgwalters/cargo-vendor-filterer)
# tar xzf %%{name}-%%{version}.tar.gz
# cd %%{name}-%%{version}
# cargo vendor-filterer --platform x86_64-unknown-linux-gnu \
# --platform powerpc64le-unknown-linux-gnu \
# --platform aarch64-unknown-linux-gnu \
# --platform i686-unknown-linux-gnu \
# --platform s390x-unknown-linux-gnu
# --prefix=vendor --format=tar.zstd
# Rename the vendor.tar.zstd tarball to clevis-pin-trustee-%%{version}-vendor.tar.zstd
Source1: %{name}-%{version}-vendor.tar.zstd
%if 0%{?bundled_rust_deps}
BuildRequires: rust-toolset
%else
BuildRequires: rust-packaging >= 25
%endif
BuildRequires: openssl-devel
# Runtime dependencies
Requires: clevis
Requires: jose
%description
clevis-pin-trustee is a Clevis PIN that implements encryption and decryption
operations using remote attestation via a Trustee server. It enables automated
unlocking of LUKS-encrypted volumes in confidential computing environments by
fetching encryption keys from Trustee servers after successful attestation.
%prep
%autosetup -n %{name}-%{upstream_version} %{?bundled_rust_deps:-a1}
%if 0%{?bundled_rust_deps}
%cargo_prep -v vendor
%endif
%build
%cargo_build
%install
# Install the binary from the workspace
install -D -m 0755 target/release/clevis-pin-trustee %{buildroot}%{_bindir}/clevis-pin-trustee
# Install Clevis wrapper scripts
install -D -m 0755 clevis-encrypt-trustee %{buildroot}%{_bindir}/clevis-encrypt-trustee
install -D -m 0755 clevis-decrypt-trustee %{buildroot}%{_bindir}/clevis-decrypt-trustee
%check
%cargo_test
%files
%{_bindir}/%{name}
%{_bindir}/clevis-encrypt-trustee
%{_bindir}/clevis-decrypt-trustee
%changelog
%autochangelog

6
gating.yaml Normal file
View File

@ -0,0 +1,6 @@
--- !Policy
product_versions:
- rhel-10
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}

2
sources Normal file
View File

@ -0,0 +1,2 @@
SHA512 (clevis-pin-trustee-0.1.0-vendor.tar.zstd) = 785516176bed60782983ea5f36b4f24c4e15192c73ad5740ab996cdd4428ac7006c9c1200811458cb8c67455ba3dd23c7cd1fdb5f9758d2701c5580a0ff3aa36
SHA512 (clevis-pin-trustee-0.1.0.tar.gz) = 88177e06b2cd64f1e870fdf325ef9747a0382195d215f33868db0e379b7560a1008528e4b348d396c9dc2c4ef6c1b2e69417eb6151fbeefdb68c8e1056ee31cd