public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/trustee-guest-components] rawhide: Address PR#12 review comments
@ 2026-10-25 12:45 Attila Lakatos
  0 siblings, 0 replies; only message in thread
From: Attila Lakatos @ 2026-10-25 12:45 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/trustee-guest-components
            Branch : rawhide
            Commit : ce7d0f418fcabd93bb7e414067e512f6f3debc62
            Author : Attila Lakatos <atttila.lakatos@gmail.com>
            Date   : 2026-10-22T08:38:45+02:00
            Stats  : +111/-33 in 9 file(s)
            URL    : https://src.fedoraproject.org/rpms/trustee-guest-components/c/ce7d0f418fcabd93bb7e414067e512f6f3debc62?branch=rawhide

            Log:
            Address PR#12 review comments

License (spec):
- Add three missing license expressions: Apache-2.0 OR ISC OR MIT,
  BSD-3-Clause, CDLA-Permissive-2.0

Patch (attester/Cargo.toml):
- Fix commit message: remove "(built in COPR)" annotation
- Remove optional deps used only by disabled attesters; pv/s390_pv
  (se-attester), sha2 (unused), csv-rs/codicon/ hyper/hyper-tls
(csv-attester), num-traits/tss-esapi/picky-asn1* (tpm-attester), p384
(nvidia-dpu-attester)
- Stub dependent features: se-attester, csv-attester, hygon,
  hygon-dcu-attester, tpm-attester, nvidia-dpu-attester, cca-attester

Patch (Cargo.toml):
- Remove protobuf = "3.7.2" from workspace deps; it is only used by
  ttrpc which is already removed by this patch

Patch11 (attester/Cargo.toml):
- Update hunk context: sha2.workspace = true was removed in Patch4, use
  strum.workspace = true as context instead

Patches 0001-0006, 0008 (carried-over):
- Restore Signed-off-by lines from original authors that were dropped
  during the rebase to 0.22.0: Signed-off-by: Uri Lublin
<uril@redhat.com> Signed-off-by: Yan Fu <yafu@redhat.com>

Signed-off-by: Attila Lakatos <atttila.lakatos@gmail.com>

---
diff --git a/0001-Fedora-Remove-workspace-members-which-are-not-built-.patch b/0001-Fedora-Remove-workspace-members-which-are-not-built-.patch
index 07fe1a7..7a5eff2 100644
--- a/0001-Fedora-Remove-workspace-members-which-are-not-built-.patch
+++ b/0001-Fedora-Remove-workspace-members-which-are-not-built-.patch
@@ -10,6 +10,8 @@ shipped. Removing the remaining workspace members avoids pulling in
 their dependencies, many of which are unavailable in Fedora.
 
 Signed-off-by: Attila Lakatos <atttila.lakatos@gmail.com>
+Signed-off-by: Uri Lublin <uril@redhat.com>
+Signed-off-by: Yan Fu <yafu@redhat.com>
 ---
  Cargo.toml | 9 ---------
  1 file changed, 9 deletions(-)

diff --git a/0002-Fedora-AA-deps-crypto-use-system-openssl-remove-pure.patch b/0002-Fedora-AA-deps-crypto-use-system-openssl-remove-pure.patch
index dfd74cb..9a84a0a 100644
--- a/0002-Fedora-AA-deps-crypto-use-system-openssl-remove-pure.patch
+++ b/0002-Fedora-AA-deps-crypto-use-system-openssl-remove-pure.patch
@@ -15,6 +15,8 @@ ctr, p256, p521, rsa, rand_08).
   rust-crypto feature set so it compiles as a no-op
 
 Signed-off-by: Attila Lakatos <atttila.lakatos@gmail.com>
+Signed-off-by: Uri Lublin <uril@redhat.com>
+Signed-off-by: Yan Fu <yafu@redhat.com>
 ---
  Cargo.toml                               |  4 ----
  attestation-agent/deps/crypto/Cargo.toml | 25 +++---------------------

diff --git a/0003-Fedora-kbs_protocol-default-to-system-openssl.patch b/0003-Fedora-kbs_protocol-default-to-system-openssl.patch
index 35d1003..8bf1125 100644
--- a/0003-Fedora-kbs_protocol-default-to-system-openssl.patch
+++ b/0003-Fedora-kbs_protocol-default-to-system-openssl.patch
@@ -12,6 +12,8 @@ Empty the rust-crypto feature; it is kept as a name only for source
 compatibility.
 
 Signed-off-by: Attila Lakatos <atttila.lakatos@gmail.com>
+Signed-off-by: Uri Lublin <uril@redhat.com>
+Signed-off-by: Yan Fu <yafu@redhat.com>
 ---
  attestation-agent/kbs_protocol/Cargo.toml | 6 +++---
  1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/0004-Fedora-attester-pick-attesters-for-Fedora-fix-git-on.patch b/0004-Fedora-attester-pick-attesters-for-Fedora-fix-git-on.patch
index 10712c3..ef37625 100644
--- a/0004-Fedora-attester-pick-attesters-for-Fedora-fix-git-on.patch
+++ b/0004-Fedora-attester-pick-attesters-for-Fedora-fix-git-on.patch
@@ -10,8 +10,8 @@ csv, hygon-dcu, cca, se, tpm) are removed from the default set; their
 feature names are kept as stubs for source compatibility.
 
 Version changes:
-  az-snp-vtpm  0.8.1 -> 0.8.2  (built in COPR)
-  az-tdx-vtpm  0.8.1 -> 0.8.2  (built in COPR)
+  az-snp-vtpm  0.8.1 -> 0.8.2
+  az-tdx-vtpm  0.8.1 -> 0.8.2
   iocuddle     0.3.0 -> 0.1.1  (Fedora ships 0.1.1)
 
 Replace git-sourced deps with crates.io versions:
@@ -25,18 +25,36 @@ git deps offline in RPM builds):
   nv-attestation-sdk (nvidia-attester)     -> stub feature [], remove
                                               [target.x86_64] section
 
-All other deps and feature definitions are left untouched.
+Remove optional deps that are only needed by disabled attesters
+(optional deps still appear in Cargo.lock and require presence in the
+vendor tarball, even when never compiled):
+  pv/s390_pv    (se-attester)         -> removed; se-attester = []
+  sha2           (unused in active    -> removed
+                  attesters)
+  csv-rs         (csv-attester via    -> removed; hygon/csv-attester = []
+                  hygon feature)
+  codicon        (csv-attester)       -> removed
+  hyper          (csv-attester)       -> removed
+  hyper-tls      (csv-attester)       -> removed
+  num-traits     (tpm-attester)       -> removed
+  p384           (nvidia-dpu)         -> removed; nvidia-dpu-attester = []
+  tss-esapi      (tpm-attester)       -> removed; tpm-attester = []
+  picky-asn1     (tpm-attester)       -> removed
+  picky-asn1-der (tpm-attester)       -> removed
+  picky-asn1-x509 (tpm-attester)      -> removed
 
 Signed-off-by: Attila Lakatos <atttila.lakatos@gmail.com>
+Signed-off-by: Uri Lublin <uril@redhat.com>
+Signed-off-by: Yan Fu <yafu@redhat.com>
 ---
- attestation-agent/attester/Cargo.toml | 32 +++++++--------------------
- 1 file changed, 8 insertions(+), 24 deletions(-)
+ attestation-agent/attester/Cargo.toml | 57 ++++++++-------------------
+ 1 file changed, 15 insertions(+), 42 deletions(-)
 
 diff --git a/attestation-agent/attester/Cargo.toml b/attestation-agent/attester/Cargo.toml
-index 5827f79..cdfd75d 100644
+index 5827f79..9815709 100644
 --- a/attestation-agent/attester/Cargo.toml
 +++ b/attestation-agent/attester/Cargo.toml
-@@ -9,22 +9,21 @@ license = "Apache-2.0"
+@@ -9,24 +9,22 @@ license = "Apache-2.0"
  [dependencies]
  anyhow.workspace = true
  async-trait.workspace = true
@@ -62,20 +80,38 @@ index 5827f79..cdfd75d 100644
  kbs-types.workspace = true
 -occlum_dcap = { git = "https://github.com/occlum/occlum", tag = "v0.29.7", optional = true }
  pem-rfc7468 = { version = "1", optional = true, features = ["alloc"] }
- pv = { version = "0.12.0", package = "s390_pv", optional = true }
+-pv = { version = "0.12.0", package = "s390_pv", optional = true }
  scroll = { version = "0.13.0", default-features = false, features = [
-@@ -39,7 +38,6 @@ sev = { version = "6.3.1", default-features = false, features = [
+     "derive",
+     "std",
+@@ -37,36 +35,18 @@ serde_with.workspace = true
+ sev = { version = "6.3.1", default-features = false, features = [
+     "snp",
  ], optional = true }
- sha2.workspace = true
+-sha2.workspace = true
  strum.workspace = true
 -tdx-attest-rs = { git = "https://github.com/intel/confidential-computing.tee.dcap", tag = "DCAP_1.27.101", optional = true }
  thiserror.workspace = true
- csv-rs = { version = "0.1.0", optional = true }
- codicon = { version = "3.0", optional = true }
-@@ -61,12 +59,6 @@ zerocopy = { version = "0.8.54", optional = true, features = ["derive"] }
+-csv-rs = { version = "0.1.0", optional = true }
+-codicon = { version = "3.0", optional = true }
+-hyper = { version = "0.14", features = ["full"], optional = true }
+-hyper-tls = { version = "0.5", optional = true }
+ tokio = { workspace = true, features = ["rt", "macros", "fs", "io-util"] }
+ tempfile = { workspace = true, optional = true }
+ tracing.workspace = true
+ tracing-subscriber = { workspace = true, optional = true }
+-num-traits = { version = "0.2" }
+-p384 = { version = "0.13", features = ["ecdsa"], optional = true }
+-picky-asn1 = { version = "0.10.1", optional = true }
+-picky-asn1-der = { version = "0.5.6", optional = true }
+-picky-asn1-x509 = { version = "0.15.4", optional = true }
+-tss-esapi = { version = "7.5", optional = true }
+ zerocopy = { version = "0.8.54", optional = true, features = ["derive"] }
+
+ [dev-dependencies]
  tokio.workspace = true
  rstest.workspace = true
- 
+
 -[target.'cfg(target_arch = "x86_64")'.dependencies]
 -# When bumping this tag, check the crate's release notes on GitHub for its
 -# corresponding libnvat/libnvat-dev version, and update the `version` input
@@ -85,8 +121,8 @@ index 5827f79..cdfd75d 100644
  [[bin]]
  name = "evidence_getter"
  required-features = ["bin"]
-@@ -76,17 +68,9 @@ default = ["all-attesters"]
- 
+@@ -76,17 +56,9 @@ default = ["all-attesters"]
+
  all-attesters = [
      "tdx-attester",
 -    "sgx-attester",
@@ -101,21 +137,41 @@ index 5827f79..cdfd75d 100644
 -    "nvidia-attester",
 -    "nvidia-dpu-attester",
  ]
- 
+
  # tsm-report enables a module that helps attesters to use Linux TSM_REPORTS for generating
-@@ -94,9 +78,9 @@ all-attesters = [
+@@ -94,10 +66,10 @@ all-attesters = [
  # generate TDX quotes with upstream kernels.
  tsm-report = ["tempfile"]
  tdx-attester = ["scroll", "tsm-report", "iocuddle", "zerocopy"]
 -tdx-attest-dcap-ioctls = ["tdx-attest-rs"]
 -sgx-attester = ["occlum_dcap"]
 -nvidia-attester = ["nv-attestation-sdk"]
+-nvidia-dpu-attester = ["p384"]
 +tdx-attest-dcap-ioctls = []
 +sgx-attester = []
 +nvidia-attester = []
- nvidia-dpu-attester = ["p384"]
++nvidia-dpu-attester = []
  az-snp-vtpm-attester = ["az-snp-vtpm", "pem-rfc7468", "azure-tpm"]
  az-tdx-vtpm-attester = [
--- 
-2.55.0
+     "az-snp-vtpm-attester",
+@@ -106,12 +78,12 @@ az-tdx-vtpm-attester = [
+     "zerocopy",
+ ]
+ snp-attester = ["sev", "tsm-report"]
+-csv-attester = ["hygon", "codicon", "hyper", "hyper-tls"]
+-hygon-dcu-attester = ["hygon"]
+-hygon = ["csv-rs"]
+-cca-attester = ["tsm-report"]
+-se-attester = ["pv"]
+-tpm-attester = ["tss-esapi", "picky-asn1", "picky-asn1-x509", "picky-asn1-der"]
++csv-attester = []
++hygon-dcu-attester = []
++hygon = []
++cca-attester = []
++se-attester = []
++tpm-attester = []
 
+
+ bin = ["clap", "tracing-subscriber"]
+--
+2.55.0

diff --git a/0005-Fedora-remove-ttrpc-dependency.patch b/0005-Fedora-remove-ttrpc-dependency.patch
index 208aa9a..bc8d4ab 100644
--- a/0005-Fedora-remove-ttrpc-dependency.patch
+++ b/0005-Fedora-remove-ttrpc-dependency.patch
@@ -12,16 +12,26 @@ Empty the aa_ttrpc feature so existing references to it compile cleanly
 without pulling in the missing crates.
 
 Signed-off-by: Attila Lakatos <atttila.lakatos@gmail.com>
+Signed-off-by: Uri Lublin <uril@redhat.com>
+Signed-off-by: Yan Fu <yafu@redhat.com>
 ---
- Cargo.toml                                | 2 --
+ Cargo.toml                                | 3 ---
  attestation-agent/kbs_protocol/Cargo.toml | 5 +----
- 2 files changed, 1 insertion(+), 6 deletions(-)
+ 2 files changed, 1 insertion(+), 7 deletions(-)
 
 diff --git a/Cargo.toml b/Cargo.toml
-index 01246f4..1c8b753 100644
+index 01246f4..ebf97fd 100644
 --- a/Cargo.toml
 +++ b/Cargo.toml
-@@ -63,8 +63,6 @@ tonic-prost = "0.14"
+@@ -39,7 +39,6 @@ kbs-types = "0.18.0"
+ nix = "0.31"
+ openssl = "0.10"
+ prost = "0.14"
+-protobuf = "3.7.2"
+ rand = "0.10.1"
+ reqwest = { version = "0.13", default-features = false }
+ resource_uri = { path = "attestation-agent/deps/resource_uri" }
+@@ -63,8 +62,6 @@ tonic-prost = "0.14"
  tonic-prost-build = "0.14"
  tracing = "0.1.44"
  tracing-subscriber = { version = "0.3.22", features = ["env-filter"] }
@@ -50,16 +60,15 @@ index 08308ed..6e38a09 100644
 -ttrpc = { workspace = true, optional = true }
  url.workspace = true
  zeroize.workspace = true
- 
+
 @@ -59,7 +56,7 @@ default = ["background_check", "passport", "openssl", "all-attesters", "bin"]
- 
+
  passport = []
  # Allow to connect Attestation-Agent with TTRPC to get evidence, token, etc.
 -aa_ttrpc = ["passport", "ttrpc/async", "protos/ttrpc"]
 +aa_ttrpc = []
- 
+
  background_check = ["tokio/time", "serde_json_canonicalizer"]
  all-attesters = ["attester/all-attesters"]
--- 
+--
 2.55.0
-

diff --git a/0006-Fedora-remove-jwt-simple-replace-time-checks-with-st.patch b/0006-Fedora-remove-jwt-simple-replace-time-checks-with-st.patch
index f1cf92b..d8475fe 100644
--- a/0006-Fedora-remove-jwt-simple-replace-time-checks-with-st.patch
+++ b/0006-Fedora-remove-jwt-simple-replace-time-checks-with-st.patch
@@ -13,6 +13,8 @@ Replace jwt_simple::{JWTClaims, Clock, UnixTimeStamp} with:
   * plain u64 (Unix seconds) for exp/nbf fields
 
 Signed-off-by: Attila Lakatos <atttila.lakatos@gmail.com>
+Signed-off-by: Uri Lublin <uril@redhat.com>
+Signed-off-by: Yan Fu <yafu@redhat.com>
 ---
  Cargo.toml                                    |  3 ---
  attestation-agent/kbs_protocol/Cargo.toml     |  1 -

diff --git a/0008-Fedora-remove-testcontainers-dependency.patch b/0008-Fedora-remove-testcontainers-dependency.patch
index 78bca5b..9bf55e1 100644
--- a/0008-Fedora-remove-testcontainers-dependency.patch
+++ b/0008-Fedora-remove-testcontainers-dependency.patch
@@ -11,6 +11,8 @@ Gate the Docker-based test module with #[cfg(any())] so it is excluded
 from compilation without losing the source.
 
 Signed-off-by: Attila Lakatos <atttila.lakatos@gmail.com>
+Signed-off-by: Uri Lublin <uril@redhat.com>
+Signed-off-by: Yan Fu <yafu@redhat.com>
 ---
  Cargo.toml                                               | 1 -
  attestation-agent/kbs_protocol/Cargo.toml                | 1 -

diff --git a/0011-Fedora-backport-sev-7.1.0-API-fixes-upstream-PR-1743.patch b/0011-Fedora-backport-sev-7.1.0-API-fixes-upstream-PR-1743.patch
index 436441d..2983edc 100644
--- a/0011-Fedora-backport-sev-7.1.0-API-fixes-upstream-PR-1743.patch
+++ b/0011-Fedora-backport-sev-7.1.0-API-fixes-upstream-PR-1743.patch
@@ -22,10 +22,10 @@ Signed-off-by: Attila Lakatos <atttila.lakatos@gmail.com>
  3 files changed, 5 insertions(+), 2 deletions(-)
 
 diff --git a/attestation-agent/attester/Cargo.toml b/attestation-agent/attester/Cargo.toml
-index cdfd75d..16bf236 100644
+index 9815709..16bf236 100644
 --- a/attestation-agent/attester/Cargo.toml
 +++ b/attestation-agent/attester/Cargo.toml
-@@ -33,8 +33,9 @@ scroll = { version = "0.13.0", default-features = false, features = [
+@@ -32,8 +32,9 @@ scroll = { version = "0.13.0", default-features = false, features = [
  serde.workspace = true
  serde_json.workspace = true
  serde_with.workspace = true
@@ -34,8 +34,8 @@ index cdfd75d..16bf236 100644
      "snp",
 +    "serde",
  ], optional = true }
- sha2.workspace = true
  strum.workspace = true
+ thiserror.workspace = true
 diff --git a/attestation-agent/attester/src/snp/hostdata.rs b/attestation-agent/attester/src/snp/hostdata.rs
 index c33ab3d..1bda1e5 100644
 --- a/attestation-agent/attester/src/snp/hostdata.rs

diff --git a/trustee-guest-components.spec b/trustee-guest-components.spec
index d16dbdc..bbff41c 100644
--- a/trustee-guest-components.spec
+++ b/trustee-guest-components.spec
@@ -29,6 +29,9 @@ License:        %{shrink:
   (Apache-2.0 OR Apache-2.0 WITH LLVM-exception OR MIT) AND
   (Apache-2.0 OR BSD-2-Clause OR MIT) AND
   (Apache-2.0 OR BSL-1.0) AND
+  (Apache-2.0 OR ISC OR MIT) AND
+  BSD-3-Clause AND
+  CDLA-Permissive-2.0 AND
   ISC AND
   MIT AND
   (MIT OR Unlicense) AND

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-25 12:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-25 12:45 [rpms/trustee-guest-components] rawhide: Address PR#12 review comments Attila Lakatos

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox