diff --git a/Cargo.lock b/Cargo.lock index 48413d80..f758f120 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -159,6 +159,45 @@ version = "1.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dde20b3d026af13f561bdd0f15edf01fc734f0dafcedbaf42bba506a9517f223" +[[package]] +name = "asn1-rs" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5493c3bedbacf7fd7382c6346bbd66687d12bbaad3a89a2d2c303ee6cf20b048" +dependencies = [ + "asn1-rs-derive", + "asn1-rs-impl", + "displaydoc", + "nom", + "num-traits", + "rusticata-macros", + "thiserror 1.0.69", + "time", +] + +[[package]] +name = "asn1-rs-derive" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "965c2d33e53cb6b267e148a4cb0760bc01f4904c1cd4bb4002a085bb016d1490" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.90", + "synstructure", +] + +[[package]] +name = "asn1-rs-impl" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7b18050c2cd6fe86c3a76584ef5e0baf286d038cda203eb6223df2cc413565f7" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.90", +] + [[package]] name = "assert_cmd" version = "2.0.16" @@ -426,7 +465,7 @@ checksum = "79296716171880943b8470b5f8d03aa55eb2e645a4874bdbb28adb49162e012c" [[package]] name = "burrego" version = "0.3.4" -source = "git+https://github.com/kubewarden/policy-evaluator?tag=v0.19.5#7816d45e759df504595f47bc7746e8ed29fab1ae" +source = "git+https://github.com/kubewarden/policy-evaluator?tag=v0.19.6#b0eeb5c5c0ddafc1e2df8385f2340e2fb3067ccc" dependencies = [ "base64 0.22.1", "chrono", @@ -1054,6 +1093,12 @@ dependencies = [ "syn 2.0.90", ] +[[package]] +name = "data-encoding" +version = "2.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e8566979429cf69b49a5c740c60791108e86440e8be149bbea4fe54d2c32d6e2" + [[package]] name = "debugid" version = "0.8.0" @@ -1082,6 +1127,20 @@ dependencies = [ "zeroize", ] +[[package]] +name = "der-parser" +version = "9.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5cd0a5c643689626bec213c4d8bd4d96acc8ffdb4ad4bb6bc16abf27d5f4b553" +dependencies = [ + "asn1-rs", + "displaydoc", + "nom", + "num-bigint", + "num-traits", + "rusticata-macros", +] + [[package]] name = "der_derive" version = "0.7.3" @@ -2747,7 +2806,7 @@ dependencies = [ [[package]] name = "kwctl" -version = "1.19.0" +version = "1.20.0-rc1" dependencies = [ "anyhow", "assert_cmd", @@ -2767,7 +2826,7 @@ dependencies = [ "pulldown-cmark", "pulldown-cmark-mdcat", "regex", - "reqwest 0.12.9", + "reqwest 0.11.27", "rstest", "rustls-pki-types", "semver", @@ -3022,6 +3081,12 @@ dependencies = [ "unicase", ] +[[package]] +name = "minimal-lexical" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a" + [[package]] name = "miniz_oxide" version = "0.8.0" @@ -3054,6 +3119,16 @@ version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "27b02d87554356db9e9a873add8782d4ea6e3e58ea071a9adb9a2e8ddb884a8b" +[[package]] +name = "nom" +version = "7.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a" +dependencies = [ + "memchr", + "minimal-lexical", +] + [[package]] name = "normalize-line-endings" version = "0.3.0" @@ -3227,9 +3302,9 @@ dependencies = [ [[package]] name = "oci-client" -version = "0.12.1" +version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0f5098b86f972ac3484f7c9011bbbbd64aaa7e21d10d2c1a91fefb4ad0ba2ad9" +checksum = "474675fdc023fbcc9dcf4782e938a3a1ae5fd469c728d8db40599bd25c77e1ba" dependencies = [ "bytes", "chrono", @@ -3238,6 +3313,7 @@ dependencies = [ "http-auth", "jwt", "lazy_static", + "oci-spec", "olpc-cjson", "regex", "reqwest 0.12.9", @@ -3300,6 +3376,15 @@ dependencies = [ "serde", ] +[[package]] +name = "oid-registry" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a8d8034d9489cdaf79228eb9f6a3b8d7bb32ba00d6645ebd48eef4077ceb5bd9" +dependencies = [ + "asn1-rs", +] + [[package]] name = "olpc-cjson" version = "0.1.4" @@ -3763,8 +3848,8 @@ dependencies = [ [[package]] name = "policy-evaluator" -version = "0.19.5" -source = "git+https://github.com/kubewarden/policy-evaluator?tag=v0.19.5#7816d45e759df504595f47bc7746e8ed29fab1ae" +version = "0.19.6" +source = "git+https://github.com/kubewarden/policy-evaluator?tag=v0.19.6#b0eeb5c5c0ddafc1e2df8385f2340e2fb3067ccc" dependencies = [ "anyhow", "base64 0.22.1", @@ -3804,8 +3889,8 @@ dependencies = [ [[package]] name = "policy-fetcher" -version = "0.8.12" -source = "git+https://github.com/kubewarden/policy-fetcher?tag=v0.8.12#55b6d8506f99d29fbd4895286b6a7122322e3d9d" +version = "0.8.13" +source = "git+https://github.com/kubewarden/policy-fetcher?tag=v0.8.13#c031bb4126c8be24f8f8c3e1dfe122291e4b7989" dependencies = [ "async-trait", "base64 0.22.1", @@ -3815,22 +3900,23 @@ dependencies = [ "lazy_static", "oci-client", "path-slash", - "pem", "rayon", "regex", "reqwest 0.12.9", "rustls 0.23.19", "rustls-pki-types", "serde", + "serde_bytes", "serde_json", "serde_yaml", "sha2", "sigstore", - "thiserror 1.0.69", + "thiserror 2.0.6", "tokio", "tracing", "url", "walkdir", + "x509-parser", ] [[package]] @@ -4375,6 +4461,7 @@ dependencies = [ "percent-encoding", "pin-project-lite", "rustls 0.21.12", + "rustls-native-certs 0.6.3", "rustls-pemfile 1.0.4", "serde", "serde_json", @@ -4419,7 +4506,6 @@ dependencies = [ "pin-project-lite", "quinn", "rustls 0.23.19", - "rustls-native-certs 0.8.1", "rustls-pemfile 2.2.0", "rustls-pki-types", "serde", @@ -4535,6 +4621,15 @@ dependencies = [ "semver", ] +[[package]] +name = "rusticata-macros" +version = "4.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "faf0c4a6ece9950b9abdb62b1cfcf2a68b3b67a10ba445b3bb85be2a293d0632" +dependencies = [ + "nom", +] + [[package]] name = "rustix" version = "0.38.42" @@ -4577,6 +4672,18 @@ dependencies = [ "zeroize", ] +[[package]] +name = "rustls-native-certs" +version = "0.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a9aace74cb666635c918e9c12bc0d348266037aa8eb599b5cba565709a8dff00" +dependencies = [ + "openssl-probe", + "rustls-pemfile 1.0.4", + "schannel", + "security-framework 2.11.1", +] + [[package]] name = "rustls-native-certs" version = "0.7.3" @@ -7173,6 +7280,23 @@ dependencies = [ "tls_codec", ] +[[package]] +name = "x509-parser" +version = "0.16.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fcbc162f30700d6f3f82a24bf7cc62ffe7caea42c0b2cba8bf7f3ae50cf51f69" +dependencies = [ + "asn1-rs", + "data-encoding", + "der-parser", + "lazy_static", + "nom", + "oid-registry", + "rusticata-macros", + "thiserror 1.0.69", + "time", +] + [[package]] name = "xattr" version = "1.3.1" diff --git a/Cargo.toml b/Cargo.toml index bdd2ece0..9193c6d9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "kwctl" description = "Tool to manage Kubewarden policies" -version = "1.19.0" +version = "1.20.0-rc1" authors = ["Kubewarden Developers "] edition = "2021" @@ -23,7 +23,7 @@ pem = "3" pulldown-cmark-mdcat = { version = "2.5.0", default-features = false, features = [ "regex-fancy", ] } -policy-evaluator = { git = "https://github.com/kubewarden/policy-evaluator", tag = "v0.19.5" } +policy-evaluator = { git = "https://github.com/kubewarden/policy-evaluator", tag = "v0.19.6" } rustls-pki-types = { version = "1", features = ["alloc"] } prettytable-rs = "^0.10" pulldown-cmark = { version = "0.12.1", default-features = false }