From 03af8783c303a79d5e770d2604115980d42a2672364267334e5d8e7cb1a39b65 Mon Sep 17 00:00:00 2001 From: Caleb Crane Date: Fri, 13 Sep 2024 03:06:15 +0000 Subject: [PATCH] - Update to version 0.7.1: * Fixing clippy version bug * Fixing case sensitivity bug * Reflect 0.7.0 update in Cargo.lock * Update to 0.7.0 * README: Clarify fetch ca documentation * Upgrade MSRV to 1.80 * Upgrade MSRV to 1.74 * Remove strict versioning on clap dependency * Update the README.md: fix the uncomplete description of the fetch ca command. * Added build dependencies for openSUSE (#64) * bumping version * Adding preattestation functionality to snpguest (#63) * rust: Patching for latest rust update * Update to 0.5.1 * Update to 0.5.0 * fix: remove subcommand trait on ok command * clap-migration: Moving from StructOpt to Clap * Fix the context message for failing to open SEV firmware. * Adding SNPHOST workflows to SNPGUEST * Additional Features * Adding snpguest ok * vlek: Missing some logic during verify for vlek. * Bump mio from 0.8.10 to 0.8.11 - Service: Remove deprecated cargo_config and cargo_audit services, both are now handled by the cargo_vendor service - Spec: Remove pre-release tag from version string - Fix build failure after update to Rust 1.80 (bsc#1228972) OBS-URL: https://build.opensuse.org/package/show/Virtualization/snpguest?expand=0&rev=6 --- .gitattributes | 23 +++++++ .gitignore | 1 + _service | 24 +++++++ _servicedata | 4 ++ cargo_config | 5 ++ snpguest-0.3.2~0.obscpio | 3 + snpguest-0.3.2~0.tar.gz | 3 + snpguest-0.7.1.obscpio | 3 + snpguest-0.7.1.tar.gz | 3 + snpguest.changes | 133 +++++++++++++++++++++++++++++++++++++++ snpguest.obsinfo | 4 ++ snpguest.spec | 54 ++++++++++++++++ vendor.tar.gz | 3 + 13 files changed, 263 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _service create mode 100644 _servicedata create mode 100644 cargo_config create mode 100644 snpguest-0.3.2~0.obscpio create mode 100644 snpguest-0.3.2~0.tar.gz create mode 100644 snpguest-0.7.1.obscpio create mode 100644 snpguest-0.7.1.tar.gz create mode 100644 snpguest.changes create mode 100644 snpguest.obsinfo create mode 100644 snpguest.spec create mode 100644 vendor.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..c5b1e03 --- /dev/null +++ b/_service @@ -0,0 +1,24 @@ + + + https://github.com/virtee/snpguest.git + @PARENT_TAG@ + git + v0.7.1 + * + v(\d+\.\d+\.\d+) + \1 + enable + Caleb Crane (caleb.crane@suse.com) + + + + *.tar + gz + + + + snpguest + gz + true + + diff --git a/_servicedata b/_servicedata new file mode 100644 index 0000000..ec683df --- /dev/null +++ b/_servicedata @@ -0,0 +1,4 @@ + + + https://github.com/virtee/snpguest.git + 636e734d94a4643fe577d1f0cc707d4c64bd839e \ No newline at end of file diff --git a/cargo_config b/cargo_config new file mode 100644 index 0000000..6fb4ff4 --- /dev/null +++ b/cargo_config @@ -0,0 +1,5 @@ +[source.crates-io] +replace-with = "vendored-sources" + +[source.vendored-sources] +directory = "vendor" \ No newline at end of file diff --git a/snpguest-0.3.2~0.obscpio b/snpguest-0.3.2~0.obscpio new file mode 100644 index 0000000..c5762da --- /dev/null +++ b/snpguest-0.3.2~0.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ca759b696dfce24d39e1173514aa61005c42c89e0dd9c942a110adcb98b4a072 +size 142347 diff --git a/snpguest-0.3.2~0.tar.gz b/snpguest-0.3.2~0.tar.gz new file mode 100644 index 0000000..fcb07a3 --- /dev/null +++ b/snpguest-0.3.2~0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d05a4e6b7ff733d98884a7830d43f2b6d535afcacabad6e4d7e453a81f611986 +size 35378 diff --git a/snpguest-0.7.1.obscpio b/snpguest-0.7.1.obscpio new file mode 100644 index 0000000..7e4d033 --- /dev/null +++ b/snpguest-0.7.1.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9ba81ea857db84d162bb0e5470573a64cf1031f85a6aae11bb963db490da9a8d +size 330251 diff --git a/snpguest-0.7.1.tar.gz b/snpguest-0.7.1.tar.gz new file mode 100644 index 0000000..5f328fa --- /dev/null +++ b/snpguest-0.7.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:74a054ef617df6b3b625c83a299469d7d9f88e17c7de655c547cb97ca4fb0793 +size 159900 diff --git a/snpguest.changes b/snpguest.changes new file mode 100644 index 0000000..878d1e0 --- /dev/null +++ b/snpguest.changes @@ -0,0 +1,133 @@ +------------------------------------------------------------------- +Fri Sep 13 02:48:37 UTC 2024 - Caleb Crane (caleb.crane@suse.com) + +- Update to version 0.7.1: + * Fixing clippy version bug + * Fixing case sensitivity bug + * Reflect 0.7.0 update in Cargo.lock + * Update to 0.7.0 + * README: Clarify fetch ca documentation + * Upgrade MSRV to 1.80 + * Upgrade MSRV to 1.74 + * Remove strict versioning on clap dependency + * Update the README.md: fix the uncomplete description of the fetch ca command. + * Added build dependencies for openSUSE (#64) + +------------------------------------------------------------------- +Mon Aug 12 20:54:48 UTC 2024 - Caleb Crane (caleb.crane@suse.com) + +- Service: Remove deprecated cargo_config and cargo_audit services, both + are now handled by the cargo_vendor service +- Spec: Remove pre-release tag from version string +- Fix build failure after update to Rust 1.80 (bsc#1228972) +- Update to version 0.6.0: + * bumping version + * Adding preattestation functionality to snpguest (#63) + * rust: Patching for latest rust update + * Update to 0.5.1 + * Update to 0.5.0 + * fix: remove subcommand trait on ok command + * clap-migration: Moving from StructOpt to Clap + * Fix the context message for failing to open SEV firmware. + * Adding SNPHOST workflows to SNPGUEST + * Additional Features + * Adding snpguest ok + * vlek: Missing some logic during verify for vlek. + * Bump mio from 0.8.10 to 0.8.11 + * URL: Fixing URL breakage + * Fix typo in verify_attestation() function + * Bumping required Rust version to 1.70 + * VLEK: Adding ASVK Support + * hyperv: Missing closure for boolean state. + * Fetch: Adding status check to HTTP response + * VLEK: Adding VLEK support to tooling + * fetch: Adding Siena and Bergamo support + * Adding DCO and auto-assign + * Update README.md + * Dependencies: Updating Cargo.toml + * Update Readme + * CI test1- Create rust.yml + * cert: Fixing minor bug with certificates + * Updating README.md + * Adding Extended and Regular Attestation Flowcharts + * Fixing report request serialization + * hyperv: Adding feature flag for hyperv + * VCEK: Patching for x509 error + * 9: Adding Cargo.lock for dependency tracking + * 9: Adding Rust Minimum Version + * Auto Assign: Adding yml files + +------------------------------------------------------------------- +Mon Jan 22 15:29:35 UTC 2024 - Caleb Crane (caleb.crane@suse.com) + +- Update to version 0.3.2~0: + * crates.io: Updating crates.io for publishing + * cert: Fixing minor bug with certificates + * Fixing report request serialization + * hyperv: Adding feature flag for hyperv + * VCEK: Patching for x509 error + * 9: Adding Cargo.lock for dependency tracking + * 9: Adding Rust Minimum Version + * Auto Assign: Adding yml files + * Update docs/snpguest.1.adoc + * Change false to hv in main + * Fixing comments on PR, added code to main, and fixed flag ambiguity + * Adding Derived Key Feature + * azure: Use mutable variable instead of consistently recreating + * docs: Document report --platform flag + * report: Add --platform flag for Hyper-V + * hyperv: Require VMPL 0 for attestation report + * hyperv: Check for hypervisor guest + Hyper-V functions + * hyperv: Fetch attestation report from Azure vTPM + * hyperv: Detect if in a Hyper-V SEV-SNP guest + * Reformat with cargo fmt + * verify: Fix clippy warning + * Fixing clippy Errors + * Changed Attestation workflow to always require a bin Attestation Report. Fixed requested changes. + * Adding new write_cert function. Organizing code. + * Adding proctype enum + * Attestation Report requested when used. New fetch command. Continuity fixes. + * Fixing dependencies + +------------------------------------------------------------------- +Mon Jul 10 17:18:03 UTC 2023 - larry.j.dewey@gmail.com + +- Update to version 0.2.2~0: + * Update to 0.2.2 + * Update Cargo.toml readme field + * Update to 0.2.1 + +------------------------------------------------------------------- +Tue Jun 06 15:51:36 UTC 2023 - larry.j.dewey@gmail.com + +- Update to version 0.2.0~0: + * Fixing dependencies + * Changed VMPL to use updated SEV library + * Convert README to Markdown + * .gitignore: Add Cargo.lock + * Reformat + * Made certificate path and proc model required. Changed Cargo.toml. Shortened verify commands. + * Restrucuted project. Using updated SEV library. Adressed comments. + * Changed identification to enum + * Fixed request module with comments. Now using new virtee library + * Added verify-TCB, attestation signture verification and quiet flag + +------------------------------------------------------------------- +Tue Jun 06 15:28:17 UTC 2023 - larry.j.dewey@gmail.com + +- Update to version 0.2.0~0: + * Fixing dependencies + * Changed VMPL to use updated SEV library + * Convert README to Markdown + * .gitignore: Add Cargo.lock + * Reformat + * Made certificate path and proc model required. Changed Cargo.toml. Shortened verify commands. + * Restrucuted project. Using updated SEV library. Adressed comments. + * Changed identification to enum + * Fixed request module with comments. Now using new virtee library + * Added verify-TCB, attestation signture verification and quiet flag + +------------------------------------------------------------------- +Tue May 23 14:50:12 UTC 2023 - Larry Dewey + +- Initial Release v0.2.0 diff --git a/snpguest.obsinfo b/snpguest.obsinfo new file mode 100644 index 0000000..dbadb14 --- /dev/null +++ b/snpguest.obsinfo @@ -0,0 +1,4 @@ +name: snpguest +version: 0.7.1 +mtime: 1726083690 +commit: 636e734d94a4643fe577d1f0cc707d4c64bd839e diff --git a/snpguest.spec b/snpguest.spec new file mode 100644 index 0000000..bdd4466 --- /dev/null +++ b/snpguest.spec @@ -0,0 +1,54 @@ +# +# spec file for package snpguest +# +# Copyright (c) 2024 SUSE LLC +# Copyright (C) 2023 VirTEE +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: snpguest +Version: 0.7.1 +Release: 0 +Summary: A Rust command-line tool for interacting with the AMD Secure Processor +License: Apache-2.0 +Group: Productivity/Security +URL: https://github.com/virtee/snpguest +Source0: %{name}-%{version}.tar.gz +Source1: vendor.tar.gz +BuildRequires: cargo-packaging +ExclusiveArch: x86_64 + +%description +snpguest is a command line utility for interacting with the AMD Secure Encrypted Virtualization - Secure Nested Paging (SEV-SNP) guest environment (via the /dev/sev-guest device). + +%prep +# The number passed to -a (a stands for "after") should be equivalent to the Source tag number +# of the vendor tarball, 1 in this case (from Source1). +%autosetup -a1 + +%build +%{cargo_build} + +%install +%{cargo_install} + +%check +%{cargo_test} + +%files +%license LICENSE +%doc README.md +%{_bindir}/%{name} + +%changelog diff --git a/vendor.tar.gz b/vendor.tar.gz new file mode 100644 index 0000000..0e1e245 --- /dev/null +++ b/vendor.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:57b071645840662732beca67fc89178ffbf83af6f012e7f925c0bdd4b2c899e4 +size 58455306