diff --git a/Cargo.lock b/Cargo.lock index 9c82b4969..102a15157 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -487,9 +487,9 @@ dependencies = [ [[package]] name = "async-trait" -version = "0.1.80" +version = "0.1.82" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c6fa2087f2753a7da8cc1c0dbfcf89579dd57458e36769de5ac750b4671737ca" +checksum = "a27b8a3a6e1a44fa4c8baf1f653e4172e81486d4941f2237e20dc2d0cf4ddff1" dependencies = [ "proc-macro2", "quote", @@ -499,7 +499,7 @@ dependencies = [ [[package]] name = "attestation-agent" version = "0.1.0" -source = "git+https://github.com/confidential-containers/guest-components.git?rev=cd16b445291ad401b4b53664266983f4927a370e#cd16b445291ad401b4b53664266983f4927a370e" +source = "git+https://github.com/confidential-containers/guest-components.git?rev=1db6c3a87665dde58d0efa56f4e4af5fcd19620e#1db6c3a87665dde58d0efa56f4e4af5fcd19620e" dependencies = [ "anyhow", "async-trait", @@ -507,12 +507,13 @@ dependencies = [ "base64 0.22.1", "config", "const_format", + "crypto", "kbs-types", "log", "serde", "serde_json", "sha2", - "strum", + "strum 0.26.3", "tempfile", "thiserror", "tokio", @@ -549,7 +550,7 @@ dependencies = [ "serial_test", "sha2", "shadow-rs", - "strum", + "strum 0.25.0", "testing_logger", "thiserror", "time", @@ -563,12 +564,12 @@ dependencies = [ [[package]] name = "attester" version = "0.1.0" -source = "git+https://github.com/confidential-containers/guest-components.git?rev=cd16b445291ad401b4b53664266983f4927a370e#cd16b445291ad401b4b53664266983f4927a370e" +source = "git+https://github.com/confidential-containers/guest-components.git?rev=1db6c3a87665dde58d0efa56f4e4af5fcd19620e#1db6c3a87665dde58d0efa56f4e4af5fcd19620e" dependencies = [ "anyhow", "async-trait", - "az-snp-vtpm 0.6.0", - "az-tdx-vtpm 0.6.0", + "az-snp-vtpm", + "az-tdx-vtpm", "base64 0.22.1", "codicon", "csv-rs", @@ -586,7 +587,7 @@ dependencies = [ "serde_with", "sev 3.1.1", "sha2", - "strum", + "strum 0.26.3", "tdx-attest-rs", "tempfile", "thiserror", @@ -655,26 +656,6 @@ dependencies = [ "tower-service", ] -[[package]] -name = "az-cvm-vtpm" -version = "0.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1940b5a30bbaa585acd365e329c8c4c5c119345fef81830bd5f38f2360caa7d6" -dependencies = [ - "bincode", - "jsonwebkey", - "memoffset", - "openssl", - "serde", - "serde-big-array", - "serde_json", - "sev 3.1.1", - "sha2", - "thiserror", - "tss-esapi", - "zerocopy", -] - [[package]] name = "az-cvm-vtpm" version = "0.7.0" @@ -695,28 +676,13 @@ dependencies = [ "zerocopy", ] -[[package]] -name = "az-snp-vtpm" -version = "0.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a276bcc39a8cf650ebc32941409f89c751cf8266c67f233872ac8c50ffa5405" -dependencies = [ - "az-cvm-vtpm 0.6.0", - "bincode", - "clap 4.5.4", - "serde", - "sev 3.1.1", - "thiserror", - "ureq", -] - [[package]] name = "az-snp-vtpm" version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "49473355e76f066300f14aa56c6df23b1a037bea179dbb1b582ecefc8f6fd37c" dependencies = [ - "az-cvm-vtpm 0.7.0", + "az-cvm-vtpm", "bincode", "clap 4.5.4", "openssl", @@ -726,29 +692,13 @@ dependencies = [ "ureq", ] -[[package]] -name = "az-tdx-vtpm" -version = "0.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb795802e685a153ea4906349c86f5760012478a72e349538dd47012409465de" -dependencies = [ - "az-cvm-vtpm 0.6.0", - "base64-url", - "bincode", - "serde", - "serde_json", - "thiserror", - "ureq", - "zerocopy", -] - [[package]] name = "az-tdx-vtpm" version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "55802d75ce5ef102b03f687b220dab76a626e0ca4c79e3f4af3c544734152356" dependencies = [ - "az-cvm-vtpm 0.7.0", + "az-cvm-vtpm", "base64-url", "bincode", "serde", @@ -1043,7 +993,7 @@ dependencies = [ "num-traits", "serde", "wasm-bindgen", - "windows-targets 0.52.5", + "windows-targets 0.52.6", ] [[package]] @@ -1365,7 +1315,7 @@ checksum = "7a81dae078cea95a014a339291cec439d2f232ebe854a9d672b796c6afafa9b7" [[package]] name = "crypto" version = "0.1.0" -source = "git+https://github.com/confidential-containers/guest-components.git?rev=cd16b445291ad401b4b53664266983f4927a370e#cd16b445291ad401b4b53664266983f4927a370e" +source = "git+https://github.com/confidential-containers/guest-components.git?rev=1db6c3a87665dde58d0efa56f4e4af5fcd19620e#1db6c3a87665dde58d0efa56f4e4af5fcd19620e" dependencies = [ "aes-gcm", "anyhow", @@ -1377,7 +1327,7 @@ dependencies = [ "serde", "serde_json", "sha2", - "strum", + "strum 0.26.3", "zeroize", ] @@ -2738,7 +2688,7 @@ dependencies = [ "semver", "serde", "serde_json", - "strum", + "strum 0.25.0", "tempfile", "thiserror", "time", @@ -2778,7 +2728,7 @@ dependencies = [ [[package]] name = "kbs_protocol" version = "0.1.0" -source = "git+https://github.com/confidential-containers/guest-components.git?rev=cd16b445291ad401b4b53664266983f4927a370e#cd16b445291ad401b4b53664266983f4927a370e" +source = "git+https://github.com/confidential-containers/guest-components.git?rev=1db6c3a87665dde58d0efa56f4e4af5fcd19620e#1db6c3a87665dde58d0efa56f4e4af5fcd19620e" dependencies = [ "anyhow", "async-trait", @@ -2802,7 +2752,7 @@ dependencies = [ [[package]] name = "kms" version = "0.1.0" -source = "git+https://github.com/confidential-containers/guest-components.git?rev=cd16b445291ad401b4b53664266983f4927a370e#cd16b445291ad401b4b53664266983f4927a370e" +source = "git+https://github.com/confidential-containers/guest-components.git?rev=1db6c3a87665dde58d0efa56f4e4af5fcd19620e#1db6c3a87665dde58d0efa56f4e4af5fcd19620e" dependencies = [ "anyhow", "async-trait", @@ -2822,7 +2772,7 @@ dependencies = [ "serde", "serde_json", "sha2", - "strum", + "strum 0.26.3", "thiserror", "tokio", "toml 0.8.19", @@ -2878,7 +2828,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0c2a198fb6b0eada2a8df47933734e6d35d350665a33a3593d7164fa52c75c19" dependencies = [ "cfg-if", - "windows-targets 0.52.5", + "windows-targets 0.52.6", ] [[package]] @@ -3454,7 +3404,7 @@ dependencies = [ "libc", "redox_syscall 0.5.1", "smallvec", - "windows-targets 0.52.5", + "windows-targets 0.52.6", ] [[package]] @@ -4120,7 +4070,7 @@ dependencies = [ "sha2", "shadow-rs", "sled", - "strum", + "strum 0.25.0", "tempfile", "tokio", "tonic 0.11.0", @@ -4277,7 +4227,7 @@ dependencies = [ [[package]] name = "resource_uri" version = "0.1.0" -source = "git+https://github.com/confidential-containers/guest-components.git?rev=cd16b445291ad401b4b53664266983f4927a370e#cd16b445291ad401b4b53664266983f4927a370e" +source = "git+https://github.com/confidential-containers/guest-components.git?rev=1db6c3a87665dde58d0efa56f4e4af5fcd19620e#1db6c3a87665dde58d0efa56f4e4af5fcd19620e" dependencies = [ "anyhow", "serde", @@ -4894,7 +4844,6 @@ dependencies = [ "iocuddle", "lazy_static", "libc", - "openssl", "serde", "serde-big-array", "serde_bytes", @@ -5139,7 +5088,16 @@ version = "0.25.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "290d54ea6f91c969195bdbcd7442c8c2a2ba87da8bf60a7ee86a235d4bc1e125" dependencies = [ - "strum_macros", + "strum_macros 0.25.3", +] + +[[package]] +name = "strum" +version = "0.26.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8fec0f0aef304996cf250b31b5a10dee7980c85da9d759361292b8bca5a18f06" +dependencies = [ + "strum_macros 0.26.4", ] [[package]] @@ -5155,6 +5113,19 @@ dependencies = [ "syn 2.0.60", ] +[[package]] +name = "strum_macros" +version = "0.26.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4c6bee85a5a24955dc440386795aa378cd9cf82acd5f764469152d2270e581be" +dependencies = [ + "heck 0.5.0", + "proc-macro2", + "quote", + "rustversion", + "syn 2.0.60", +] + [[package]] name = "subtle" version = "2.5.0" @@ -5250,7 +5221,7 @@ checksum = "e1fc403891a21bcfb7c37834ba66a547a8f402146eba7265b5a6d88059c9ff2f" [[package]] name = "tdx-attest-rs" version = "0.1.2" -source = "git+https://github.com/intel/SGXDataCenterAttestationPrimitives?tag=DCAP_1.20#621a0850fccf531a8d8131f9293a760925f55730" +source = "git+https://github.com/intel/SGXDataCenterAttestationPrimitives?tag=DCAP_1.21#e945c58bff60bb96e4daca57b73c93f96b14418a" dependencies = [ "tdx-attest-sys", ] @@ -5258,21 +5229,22 @@ dependencies = [ [[package]] name = "tdx-attest-sys" version = "0.1.0" -source = "git+https://github.com/intel/SGXDataCenterAttestationPrimitives?tag=DCAP_1.20#621a0850fccf531a8d8131f9293a760925f55730" +source = "git+https://github.com/intel/SGXDataCenterAttestationPrimitives?tag=DCAP_1.21#e945c58bff60bb96e4daca57b73c93f96b14418a" dependencies = [ "bindgen 0.59.2", ] [[package]] name = "tempfile" -version = "3.10.1" +version = "3.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85b77fafb263dd9d05cbeac119526425676db3784113aa9295c88498cbf8bff1" +checksum = "04cbcdd0c794ebb0d4cf35e88edd2f7d2c4c3e9a5a6dab322839b321c6a87a64" dependencies = [ "cfg-if", "fastrand", + "once_cell", "rustix", - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] @@ -5944,8 +5916,8 @@ dependencies = [ "asn1-rs", "assert-json-diff", "async-trait", - "az-snp-vtpm 0.7.0", - "az-tdx-vtpm 0.7.0", + "az-snp-vtpm", + "az-tdx-vtpm", "base64 0.22.1", "bincode", "byteorder", @@ -5971,7 +5943,7 @@ dependencies = [ "sev 4.0.0", "sha2", "shadow-rs", - "strum", + "strum 0.25.0", "thiserror", "tokio", "tonic-build 0.11.0", @@ -6179,7 +6151,7 @@ version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "33ab640c8d7e35bf8ba19b884ba838ceb4fba93a4e8c65a9059d08afcfc683d9" dependencies = [ - "windows-targets 0.52.5", + "windows-targets 0.52.6", ] [[package]] @@ -6197,7 +6169,16 @@ version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" dependencies = [ - "windows-targets 0.52.5", + "windows-targets 0.52.6", +] + +[[package]] +name = "windows-sys" +version = "0.59.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b" +dependencies = [ + "windows-targets 0.52.6", ] [[package]] @@ -6217,18 +6198,18 @@ dependencies = [ [[package]] name = "windows-targets" -version = "0.52.5" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6f0713a46559409d202e70e28227288446bf7841d3211583a4b53e3f6d96e7eb" +checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" dependencies = [ - "windows_aarch64_gnullvm 0.52.5", - "windows_aarch64_msvc 0.52.5", - "windows_i686_gnu 0.52.5", + "windows_aarch64_gnullvm 0.52.6", + "windows_aarch64_msvc 0.52.6", + "windows_i686_gnu 0.52.6", "windows_i686_gnullvm", - "windows_i686_msvc 0.52.5", - "windows_x86_64_gnu 0.52.5", - "windows_x86_64_gnullvm 0.52.5", - "windows_x86_64_msvc 0.52.5", + "windows_i686_msvc 0.52.6", + "windows_x86_64_gnu 0.52.6", + "windows_x86_64_gnullvm 0.52.6", + "windows_x86_64_msvc 0.52.6", ] [[package]] @@ -6239,9 +6220,9 @@ checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8" [[package]] name = "windows_aarch64_gnullvm" -version = "0.52.5" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7088eed71e8b8dda258ecc8bac5fb1153c5cffaf2578fc8ff5d61e23578d3263" +checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" [[package]] name = "windows_aarch64_msvc" @@ -6251,9 +6232,9 @@ checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc" [[package]] name = "windows_aarch64_msvc" -version = "0.52.5" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9985fd1504e250c615ca5f281c3f7a6da76213ebd5ccc9561496568a2752afb6" +checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" [[package]] name = "windows_i686_gnu" @@ -6263,15 +6244,15 @@ checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e" [[package]] name = "windows_i686_gnu" -version = "0.52.5" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "88ba073cf16d5372720ec942a8ccbf61626074c6d4dd2e745299726ce8b89670" +checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" [[package]] name = "windows_i686_gnullvm" -version = "0.52.5" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "87f4261229030a858f36b459e748ae97545d6f1ec60e5e0d6a3d32e0dc232ee9" +checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" [[package]] name = "windows_i686_msvc" @@ -6281,9 +6262,9 @@ checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406" [[package]] name = "windows_i686_msvc" -version = "0.52.5" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "db3c2bf3d13d5b658be73463284eaf12830ac9a26a90c717b7f771dfe97487bf" +checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" [[package]] name = "windows_x86_64_gnu" @@ -6293,9 +6274,9 @@ checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e" [[package]] name = "windows_x86_64_gnu" -version = "0.52.5" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4e4246f76bdeff09eb48875a0fd3e2af6aada79d409d33011886d3e1581517d9" +checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" [[package]] name = "windows_x86_64_gnullvm" @@ -6305,9 +6286,9 @@ checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc" [[package]] name = "windows_x86_64_gnullvm" -version = "0.52.5" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "852298e482cd67c356ddd9570386e2862b5673c85bd5f88df9ab6802b334c596" +checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" [[package]] name = "windows_x86_64_msvc" @@ -6317,9 +6298,9 @@ checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" [[package]] name = "windows_x86_64_msvc" -version = "0.52.5" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bec47e5bfd1bff0eeaf6d8b485cc1074891a197ab4225d504cb7a1ab88b02bf0" +checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" [[package]] name = "winnow" diff --git a/Cargo.toml b/Cargo.toml index 0dee36d52..6492d4667 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -29,9 +29,9 @@ config = "0.13.3" env_logger = "0.10.0" hex = "0.4.3" jwt-simple = "0.11" -kbs_protocol = { git = "https://github.com/confidential-containers/guest-components.git", rev="cd16b445291ad401b4b53664266983f4927a370e", default-features = false } +kbs_protocol = { git = "https://github.com/confidential-containers/guest-components.git", rev="1db6c3a87665dde58d0efa56f4e4af5fcd19620e", default-features = false } kbs-types = "0.7.0" -kms = { git = "https://github.com/confidential-containers/guest-components.git", rev="cd16b445291ad401b4b53664266983f4927a370e", default-features = false } +kms = { git = "https://github.com/confidential-containers/guest-components.git", rev="1db6c3a87665dde58d0efa56f4e4af5fcd19620e", default-features = false } jsonwebtoken = { version = "9", default-features = false } log = "0.4.17" prost = "0.12"