From 8695889861330eae657c5465e482688a6e376cec Mon Sep 17 00:00:00 2001 From: hive-bumblebee <278179999+hive-bumblebee@users.noreply.github.com> Date: Mon, 30 Nov 2026 10:02:51 +0000 Subject: [PATCH 1/2] feat: support agent file-search exclusions --- Cargo.lock | 10 +- Cargo.toml | 10 +- .../gvm-gateway-app/src/test_support/mocks.rs | 1 + crates/gvm-gateway-domain/src/agents.rs | 11 ++ crates/gvm-gateway-gvmd/src/conversions.rs | 2 + .../src/gvmd_adapter/ports/agents.rs | 5 + crates/gvm-gateway-gvmd/tests/architecture.rs | 3 +- crates/gvm-gateway-rest/src/agents.rs | 41 ++++++ crates/gvm-gateway-rest/src/agents_test.rs | 69 ++++++++++ crates/gvm-gateway-rest/src/openapi_test.rs | 45 +++++++ crates/gvm-gateway/tests/agents.rs | 120 ++++++++++++++++++ spec/rest-api/emerging.yaml | 10 ++ 12 files changed, 316 insertions(+), 11 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index c660ebf4..23f419d3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -724,7 +724,7 @@ dependencies = [ [[package]] name = "gvm-client" version = "0.12.0" -source = "git+https://github.com/greenbone/rust-gvm?rev=ab437cfaab51b636b0ef69bddde09103dbb16b92#ab437cfaab51b636b0ef69bddde09103dbb16b92" +source = "git+https://github.com/greenbone/rust-gvm?rev=a3d447a804e4e436023c461baba3426d6859e28d#a3d447a804e4e436023c461baba3426d6859e28d" dependencies = [ "async-trait", "gvm-connection", @@ -738,7 +738,7 @@ dependencies = [ [[package]] name = "gvm-connection" version = "0.12.0" -source = "git+https://github.com/greenbone/rust-gvm?rev=ab437cfaab51b636b0ef69bddde09103dbb16b92#ab437cfaab51b636b0ef69bddde09103dbb16b92" +source = "git+https://github.com/greenbone/rust-gvm?rev=a3d447a804e4e436023c461baba3426d6859e28d#a3d447a804e4e436023c461baba3426d6859e28d" dependencies = [ "async-trait", "gvm-protocol", @@ -882,7 +882,7 @@ dependencies = [ [[package]] name = "gvm-gmp" version = "0.12.0" -source = "git+https://github.com/greenbone/rust-gvm?rev=ab437cfaab51b636b0ef69bddde09103dbb16b92#ab437cfaab51b636b0ef69bddde09103dbb16b92" +source = "git+https://github.com/greenbone/rust-gvm?rev=a3d447a804e4e436023c461baba3426d6859e28d#a3d447a804e4e436023c461baba3426d6859e28d" dependencies = [ "base64 0.23.1", "gvm-protocol", @@ -896,7 +896,7 @@ dependencies = [ [[package]] name = "gvm-mock-server" version = "0.12.0" -source = "git+https://github.com/greenbone/rust-gvm?rev=ab437cfaab51b636b0ef69bddde09103dbb16b92#ab437cfaab51b636b0ef69bddde09103dbb16b92" +source = "git+https://github.com/greenbone/rust-gvm?rev=a3d447a804e4e436023c461baba3426d6859e28d#a3d447a804e4e436023c461baba3426d6859e28d" dependencies = [ "base64 0.23.1", "clap", @@ -916,7 +916,7 @@ dependencies = [ [[package]] name = "gvm-protocol" version = "0.12.0" -source = "git+https://github.com/greenbone/rust-gvm?rev=ab437cfaab51b636b0ef69bddde09103dbb16b92#ab437cfaab51b636b0ef69bddde09103dbb16b92" +source = "git+https://github.com/greenbone/rust-gvm?rev=a3d447a804e4e436023c461baba3426d6859e28d#a3d447a804e4e436023c461baba3426d6859e28d" dependencies = [ "quick-xml", "thiserror", diff --git a/Cargo.toml b/Cargo.toml index bfa15570..dceb2809 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,11 +25,11 @@ axum = "0.8.9" clap = { version = "4.6.1", features = ["derive"] } # Keep all five workspace components on one immutable rust-gvm commit so Cargo # resolves a coherent upstream snapshot. -gvm-client = { git = "https://github.com/greenbone/rust-gvm", rev = "ab437cfaab51b636b0ef69bddde09103dbb16b92" } -gvm-connection = { git = "https://github.com/greenbone/rust-gvm", rev = "ab437cfaab51b636b0ef69bddde09103dbb16b92" } -gvm-gmp = { git = "https://github.com/greenbone/rust-gvm", rev = "ab437cfaab51b636b0ef69bddde09103dbb16b92", features = ["serde"] } -gvm-mock-server = { git = "https://github.com/greenbone/rust-gvm", rev = "ab437cfaab51b636b0ef69bddde09103dbb16b92" } -gvm-protocol = { git = "https://github.com/greenbone/rust-gvm", rev = "ab437cfaab51b636b0ef69bddde09103dbb16b92" } +gvm-client = { git = "https://github.com/greenbone/rust-gvm", rev = "a3d447a804e4e436023c461baba3426d6859e28d" } +gvm-connection = { git = "https://github.com/greenbone/rust-gvm", rev = "a3d447a804e4e436023c461baba3426d6859e28d" } +gvm-gmp = { git = "https://github.com/greenbone/rust-gvm", rev = "a3d447a804e4e436023c461baba3426d6859e28d", features = ["serde"] } +gvm-mock-server = { git = "https://github.com/greenbone/rust-gvm", rev = "a3d447a804e4e436023c461baba3426d6859e28d" } +gvm-protocol = { git = "https://github.com/greenbone/rust-gvm", rev = "a3d447a804e4e436023c461baba3426d6859e28d" } http = "1.4.1" opentelemetry = { version = "0.33.0", features = ["trace"] } opentelemetry-otlp = { version = "0.33.0", features = ["grpc-tonic", "trace"] } diff --git a/crates/gvm-gateway-app/src/test_support/mocks.rs b/crates/gvm-gateway-app/src/test_support/mocks.rs index f07694d2..3b1be79c 100644 --- a/crates/gvm-gateway-app/src/test_support/mocks.rs +++ b/crates/gvm-gateway-app/src/test_support/mocks.rs @@ -1292,6 +1292,7 @@ impl AgentPort for MockAgentPort { interval_in_seconds: Some(60), miss_until_inactive: Some(3), }), + file_search: None, }), }) } diff --git a/crates/gvm-gateway-domain/src/agents.rs b/crates/gvm-gateway-domain/src/agents.rs index eb3c8545..e893d8cd 100644 --- a/crates/gvm-gateway-domain/src/agents.rs +++ b/crates/gvm-gateway-domain/src/agents.rs @@ -103,6 +103,17 @@ pub struct AgentConfig { /// Heartbeat settings. #[serde(skip_serializing_if = "Option::is_none")] pub heartbeat: Option, + /// File-search exclusions for updates; omitted settings remain unchanged. + #[serde(rename = "fileSearch", skip_serializing_if = "Option::is_none")] + pub file_search: Option, +} + +/// File-search settings for agent configuration updates. +#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] +pub struct AgentFileSearchConfig { + /// Paths sent verbatim; omission preserves exclusions and an empty list clears them. + #[serde(rename = "excludedPaths", skip_serializing_if = "Option::is_none")] + pub excluded_paths: Option>, } /// Agent-control settings. diff --git a/crates/gvm-gateway-gvmd/src/conversions.rs b/crates/gvm-gateway-gvmd/src/conversions.rs index fca9015e..03537bd0 100644 --- a/crates/gvm-gateway-gvmd/src/conversions.rs +++ b/crates/gvm-gateway-gvmd/src/conversions.rs @@ -137,6 +137,8 @@ fn agent_config_from_gmp(config: gvm_gmp::responses::AgentConfig) -> AgentConfig .agent_script_executor .map(agent_script_executor_config_from_gmp), heartbeat: config.heartbeat.map(agent_heartbeat_config_from_gmp), + // File-search support is write-only until upstream provides typed read-back. + file_search: None, } } diff --git a/crates/gvm-gateway-gvmd/src/gvmd_adapter/ports/agents.rs b/crates/gvm-gateway-gvmd/src/gvmd_adapter/ports/agents.rs index 40b1122a..9f441869 100644 --- a/crates/gvm-gateway-gvmd/src/gvmd_adapter/ports/agents.rs +++ b/crates/gvm-gateway-gvmd/src/gvmd_adapter/ports/agents.rs @@ -455,6 +455,11 @@ fn agent_config_opts_from_domain(input: AgentConfig) -> AgentConfigOpts { .agent_script_executor .map(agent_script_executor_config_opts_from_domain), heartbeat: input.heartbeat.map(agent_heartbeat_config_opts_from_domain), + file_search: input.file_search.map(|config| { + gvm_gmp::commands::agents::AgentFileSearchConfig { + excluded_paths: config.excluded_paths, + } + }), } } diff --git a/crates/gvm-gateway-gvmd/tests/architecture.rs b/crates/gvm-gateway-gvmd/tests/architecture.rs index 2664b8d0..4a4fa017 100644 --- a/crates/gvm-gateway-gvmd/tests/architecture.rs +++ b/crates/gvm-gateway-gvmd/tests/architecture.rs @@ -18,7 +18,8 @@ const RUST_GVM_COMPONENTS: &[&str] = &[ // v0.12.0 release commit. const RUST_GVM_DEPENDENCY_URL: &str = "https://github.com/greenbone/rust-gvm"; const RUST_GVM_DEPENDENCY_VERSION: &str = "0.12.0"; -const RUST_GVM_DEPENDENCY_REVISION: &str = "ab437cfaab51b636b0ef69bddde09103dbb16b92"; +// File-search write support is pinned independently of the release facade snapshot below. +const RUST_GVM_DEPENDENCY_REVISION: &str = "a3d447a804e4e436023c461baba3426d6859e28d"; // The v0.12.0 release retains the reviewed 270-helper feature-stack facade. // Advance the matching snapshot and disposition ledger to the release tag // without changing their deliberately reviewed classifications. diff --git a/crates/gvm-gateway-rest/src/agents.rs b/crates/gvm-gateway-rest/src/agents.rs index 5caf9886..33be339e 100644 --- a/crates/gvm-gateway-rest/src/agents.rs +++ b/crates/gvm-gateway-rest/src/agents.rs @@ -413,6 +413,42 @@ struct AgentConfigRequest { #[serde(rename = "agentScriptExecutor")] agent_script_executor: Option, heartbeat: Option, + /// Omit to leave file-search settings unchanged; null is not accepted. + #[serde( + rename = "fileSearch", + default, + deserialize_with = "deserialize_file_search" + )] + file_search: Option, +} + +#[derive(Clone, Debug, Default, Deserialize, JsonSchema)] +#[schemars(rename = "AgentFileSearchConfigUpdate")] +struct AgentFileSearchConfigRequest { + /// Paths are preserved verbatim. Omit to keep exclusions; use [] to clear them. + #[serde( + rename = "excludedPaths", + default, + deserialize_with = "deserialize_excluded_paths" + )] + excluded_paths: Option>, +} + +// Serde defaults handle omission, while present values must have the declared type. +fn deserialize_file_search<'de, D: serde::Deserializer<'de>>( + deserializer: D, +) -> Result, D::Error> { + // Struct deserialization also accepts sequences; require a JSON object explicitly. + let object = serde_json::Map::::deserialize(deserializer)?; + AgentFileSearchConfigRequest::deserialize(serde_json::Value::Object(object)) + .map(Some) + .map_err(serde::de::Error::custom) +} + +fn deserialize_excluded_paths<'de, D: serde::Deserializer<'de>>( + deserializer: D, +) -> Result>, D::Error> { + Vec::::deserialize(deserializer).map(Some) } impl ValidateInto for AgentConfigRequest { @@ -430,6 +466,11 @@ impl ValidateInto for AgentConfigRequest { .heartbeat .map(ValidateInto::validate_into) .transpose()?, + file_search: self + .file_search + .map(|config| gvm_gateway_domain::AgentFileSearchConfig { + excluded_paths: config.excluded_paths, + }), }) } } diff --git a/crates/gvm-gateway-rest/src/agents_test.rs b/crates/gvm-gateway-rest/src/agents_test.rs index 75c93a48..c28c8659 100644 --- a/crates/gvm-gateway-rest/src/agents_test.rs +++ b/crates/gvm-gateway-rest/src/agents_test.rs @@ -384,3 +384,72 @@ fn response_delay_observations_validate_without_write_range_truncation() { } } } + +#[test] +fn file_search_updates_preserve_omission_clearing_and_verbatim_paths() { + // Both update wrappers must preserve the distinction between no update and clearing. + let paths = vec![ + r"C:\Program Files\Agent", + r"C:\\doubled\\path", + r"\\server\share", + " /private & \t\n ", + ]; + for (config, expected) in [ + (json!({}), None), + (json!({"fileSearch": {}}), Some(None)), + ( + json!({"fileSearch": {"excludedPaths": []}}), + Some(Some(vec![])), + ), + ( + json!({"fileSearch": {"excludedPaths": paths}}), + Some(Some(paths.iter().map(|path| (*path).to_owned()).collect())), + ), + ] { + let agent: ModifyAgentRequest = serde_json::from_value(json!({"config": config})).unwrap(); + let controller: ModifyAgentControlScanConfigRequest = + serde_json::from_value(json!({"agentDefaults": config})).unwrap(); + for parsed in [ + agent.validate_into().unwrap().config.unwrap(), + controller.validate_into().unwrap().agent_defaults.unwrap(), + ] { + assert_eq!( + parsed.file_search.map(|section| section.excluded_paths), + expected + ); + } + } +} + +#[test] +fn file_search_updates_reject_null_and_invalid_shapes_in_both_wrappers() { + // Optional fields may be absent, but must not silently discard malformed updates. + for section in [ + json!(null), + json!([]), + json!([[]]), + json!("path"), + json!(42), + json!(false), + json!({"excludedPaths": null}), + json!({"excludedPaths": "/private"}), + json!({"excludedPaths": {"path": "/private"}}), + json!({"excludedPaths": 42}), + json!({"excludedPaths": [null]}), + json!({"excludedPaths": [42]}), + json!({"excludedPaths": ["/private", false]}), + ] { + let config = json!({"fileSearch": section}); + assert!( + serde_json::from_value::(json!({"config": config})).is_err(), + "{config}" + ); + assert!( + serde_json::from_value::( + json!({"agentDefaults": config}) + ) + .is_err(), + "{config}" + ); + } +} diff --git a/crates/gvm-gateway-rest/src/openapi_test.rs b/crates/gvm-gateway-rest/src/openapi_test.rs index faa3f196..05b13422 100644 --- a/crates/gvm-gateway-rest/src/openapi_test.rs +++ b/crates/gvm-gateway-rest/src/openapi_test.rs @@ -2353,3 +2353,48 @@ fn inventory_token_generated_and_curated_success_headers_forbid_caching() { expected ); } + +#[test] +fn file_search_update_schemas_preserve_optional_non_nullable_clearable_lists() { + // The generated and curated contracts must advertise clearing without accepting null. + let generated = build_openapi(); + let spec_path = root_spec_path(); + let curated = read_yaml(&spec_path.parent().unwrap().join("emerging.yaml")); + for document in [&generated, &curated] { + let schemas = &document["components"]["schemas"]; + let config = &schemas["AgentConfigUpdate"]; + let field = resolve_local_schema_ref(schemas, &config["properties"]["fileSearch"]); + assert_eq!(field, &schemas["AgentFileSearchConfigUpdate"]); + assert_eq!(field["type"], "object"); + assert!(!config["required"] + .as_array() + .is_some_and(|fields| fields.contains(&json!("fileSearch")))); + assert!(!field["required"] + .as_array() + .is_some_and(|fields| fields.contains(&json!("excludedPaths")))); + let list = &field["properties"]["excludedPaths"]; + assert_eq!(list["type"], "array"); + assert_eq!(list["items"]["type"], "string"); + let validator = jsonschema::validator_for(field).unwrap(); + for valid in [ + json!({}), + json!({"excludedPaths": []}), + json!({"excludedPaths": [r"\\server\share"]}), + ] { + assert!(validator.is_valid(&valid), "{valid}"); + } + for invalid in [ + Value::Null, + json!([]), + json!({"excludedPaths": null}), + json!({"excludedPaths": "path"}), + json!({"excludedPaths": [1]}), + ] { + assert!(!validator.is_valid(&invalid), "{invalid}"); + } + // Write support must not advertise unimplemented GET/read-back fields. + assert!(schemas["AgentConfig"]["properties"] + .get("fileSearch") + .is_none()); + } +} diff --git a/crates/gvm-gateway/tests/agents.rs b/crates/gvm-gateway/tests/agents.rs index 950bec59..de490375 100644 --- a/crates/gvm-gateway/tests/agents.rs +++ b/crates/gvm-gateway/tests/agents.rs @@ -613,3 +613,123 @@ async fn inventory_token_malformed_success_is_sanitized_502_and_never_cacheable( harness.shutdown().await; } } + +#[tokio::test] +async fn file_search_updates_reach_both_gmp_commands_without_losing_clear_semantics() { + // Exercise HTTP -> DTO -> domain -> typed GMP encoding, including the empty-list clear. + let harness = specialized_target_harness(seed_agent_resource).await; + let paths = [ + r"C:\Program Files\Agent", + r"C:\\doubled\\path", + r"\\server\share", + " /private & \t\n ", + ]; + for (config, expected) in [ + (json!({}), ""), + (json!({"fileSearch": {}}), ""), + ( + json!({"fileSearch": {"excludedPaths": []}}), + r#""#, + ), + ( + json!({"fileSearch": {"excludedPaths": paths}}), + concat!( + r#"C:\Program Files\Agent"#, + r"C:\\doubled\\path\\server\share", + " /private & <cache>\t\n " + ), + ), + ] { + for (path, key, command, wrapper, status) in [ + ( + format!("/gvm/public/v1/agents/{AGENT_ID}"), + "config", + "modify_agent", + "config", + StatusCode::OK, + ), + ( + format!("/gvm/public/v1/agent-control-scan-configs/{SCANNER_ID}"), + "agentDefaults", + "modify_agent_control_scan_config", + "agent_defaults", + StatusCode::NO_CONTENT, + ), + ] { + let response = harness + .client + .put(harness.url(&path)) + .bearer_auth(&harness.token) + .json(&json!({key: config})) + .send() + .await + .unwrap(); + assert_eq!( + response.status(), + status, + "{path}: {}", + response.text().await.unwrap() + ); + let history = harness.server.command_history(); + let record = history + .iter() + .rev() + .find(|record| record.command_name() == command) + .unwrap(); + let xml = String::from_utf8_lossy(record.raw_xml()); + let nested = if expected.is_empty() { + format!("<{wrapper}/>") + } else { + format!("<{wrapper}>{expected}") + }; + assert!(xml.contains(&nested), "{xml} lacks {nested}"); + if command == "modify_agent_control_scan_config" { + assert!( + xml.contains(&format!("{nested}")), + "{xml}" + ); + } + } + } + harness.shutdown().await; +} + +#[tokio::test] +async fn malformed_file_search_updates_never_reach_gmp() { + // Fail invalid public payloads with 400 before issuing either modification command. + let harness = specialized_target_harness(seed_agent_resource).await; + for section in [ + json!(null), + json!([]), + json!({"excludedPaths": null}), + json!({"excludedPaths": "path"}), + json!({"excludedPaths": ["/private", 1]}), + ] { + for (path, key) in [ + (format!("/gvm/public/v1/agents/{AGENT_ID}"), "config"), + ( + format!("/gvm/public/v1/agent-control-scan-configs/{SCANNER_ID}"), + "agentDefaults", + ), + ] { + let response = harness + .client + .put(harness.url(&path)) + .bearer_auth(&harness.token) + .json(&json!({key: {"fileSearch": section}})) + .send() + .await + .unwrap(); + assert_problem_status(response, StatusCode::BAD_REQUEST).await; + } + } + assert!(!harness + .server + .command_history() + .iter() + .any(|record| matches!( + record.command_name(), + "modify_agent" | "modify_agent_control_scan_config" + ))); + harness.shutdown().await; +} diff --git a/spec/rest-api/emerging.yaml b/spec/rest-api/emerging.yaml index 4d3bf460..960f89fd 100644 --- a/spec/rest-api/emerging.yaml +++ b/spec/rest-api/emerging.yaml @@ -763,6 +763,16 @@ components: agentControl: { $ref: "#/components/schemas/AgentControlConfigUpdate" } agentScriptExecutor: { $ref: "#/components/schemas/AgentScriptExecutorConfigUpdate" } heartbeat: { $ref: "#/components/schemas/AgentHeartbeatConfigUpdate" } + fileSearch: + $ref: "#/components/schemas/AgentFileSearchConfigUpdate" + description: Omit to leave file-search settings unchanged; null is not accepted. + AgentFileSearchConfigUpdate: + type: object + properties: + excludedPaths: + type: array + description: Paths are preserved verbatim. Omit to keep exclusions; use [] to clear them. Null is not accepted. + items: { type: string } AgentControlConfigUpdate: type: object properties: From e3e252a40cae0c60e6696e93509afc5fd38d34af Mon Sep 17 00:00:00 2001 From: hive-bumblebee <278179999+hive-bumblebee@users.noreply.github.com> Date: Mon, 30 Nov 2026 13:21:06 +0000 Subject: [PATCH 2/2] chore(deps): pin rust-gvm to merged file-search support --- Cargo.lock | 10 +++++----- Cargo.toml | 10 +++++----- crates/gvm-gateway-gvmd/tests/architecture.rs | 2 +- worklog.md | 6 ++++++ 4 files changed, 17 insertions(+), 11 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 23f419d3..826c57b0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -724,7 +724,7 @@ dependencies = [ [[package]] name = "gvm-client" version = "0.12.0" -source = "git+https://github.com/greenbone/rust-gvm?rev=a3d447a804e4e436023c461baba3426d6859e28d#a3d447a804e4e436023c461baba3426d6859e28d" +source = "git+https://github.com/greenbone/rust-gvm?rev=5b723fadc53660e7eafb642a13a5877b76b93558#5b723fadc53660e7eafb642a13a5877b76b93558" dependencies = [ "async-trait", "gvm-connection", @@ -738,7 +738,7 @@ dependencies = [ [[package]] name = "gvm-connection" version = "0.12.0" -source = "git+https://github.com/greenbone/rust-gvm?rev=a3d447a804e4e436023c461baba3426d6859e28d#a3d447a804e4e436023c461baba3426d6859e28d" +source = "git+https://github.com/greenbone/rust-gvm?rev=5b723fadc53660e7eafb642a13a5877b76b93558#5b723fadc53660e7eafb642a13a5877b76b93558" dependencies = [ "async-trait", "gvm-protocol", @@ -882,7 +882,7 @@ dependencies = [ [[package]] name = "gvm-gmp" version = "0.12.0" -source = "git+https://github.com/greenbone/rust-gvm?rev=a3d447a804e4e436023c461baba3426d6859e28d#a3d447a804e4e436023c461baba3426d6859e28d" +source = "git+https://github.com/greenbone/rust-gvm?rev=5b723fadc53660e7eafb642a13a5877b76b93558#5b723fadc53660e7eafb642a13a5877b76b93558" dependencies = [ "base64 0.23.1", "gvm-protocol", @@ -896,7 +896,7 @@ dependencies = [ [[package]] name = "gvm-mock-server" version = "0.12.0" -source = "git+https://github.com/greenbone/rust-gvm?rev=a3d447a804e4e436023c461baba3426d6859e28d#a3d447a804e4e436023c461baba3426d6859e28d" +source = "git+https://github.com/greenbone/rust-gvm?rev=5b723fadc53660e7eafb642a13a5877b76b93558#5b723fadc53660e7eafb642a13a5877b76b93558" dependencies = [ "base64 0.23.1", "clap", @@ -916,7 +916,7 @@ dependencies = [ [[package]] name = "gvm-protocol" version = "0.12.0" -source = "git+https://github.com/greenbone/rust-gvm?rev=a3d447a804e4e436023c461baba3426d6859e28d#a3d447a804e4e436023c461baba3426d6859e28d" +source = "git+https://github.com/greenbone/rust-gvm?rev=5b723fadc53660e7eafb642a13a5877b76b93558#5b723fadc53660e7eafb642a13a5877b76b93558" dependencies = [ "quick-xml", "thiserror", diff --git a/Cargo.toml b/Cargo.toml index dceb2809..7dacff5b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,11 +25,11 @@ axum = "0.8.9" clap = { version = "4.6.1", features = ["derive"] } # Keep all five workspace components on one immutable rust-gvm commit so Cargo # resolves a coherent upstream snapshot. -gvm-client = { git = "https://github.com/greenbone/rust-gvm", rev = "a3d447a804e4e436023c461baba3426d6859e28d" } -gvm-connection = { git = "https://github.com/greenbone/rust-gvm", rev = "a3d447a804e4e436023c461baba3426d6859e28d" } -gvm-gmp = { git = "https://github.com/greenbone/rust-gvm", rev = "a3d447a804e4e436023c461baba3426d6859e28d", features = ["serde"] } -gvm-mock-server = { git = "https://github.com/greenbone/rust-gvm", rev = "a3d447a804e4e436023c461baba3426d6859e28d" } -gvm-protocol = { git = "https://github.com/greenbone/rust-gvm", rev = "a3d447a804e4e436023c461baba3426d6859e28d" } +gvm-client = { git = "https://github.com/greenbone/rust-gvm", rev = "5b723fadc53660e7eafb642a13a5877b76b93558" } +gvm-connection = { git = "https://github.com/greenbone/rust-gvm", rev = "5b723fadc53660e7eafb642a13a5877b76b93558" } +gvm-gmp = { git = "https://github.com/greenbone/rust-gvm", rev = "5b723fadc53660e7eafb642a13a5877b76b93558", features = ["serde"] } +gvm-mock-server = { git = "https://github.com/greenbone/rust-gvm", rev = "5b723fadc53660e7eafb642a13a5877b76b93558" } +gvm-protocol = { git = "https://github.com/greenbone/rust-gvm", rev = "5b723fadc53660e7eafb642a13a5877b76b93558" } http = "1.4.1" opentelemetry = { version = "0.33.0", features = ["trace"] } opentelemetry-otlp = { version = "0.33.0", features = ["grpc-tonic", "trace"] } diff --git a/crates/gvm-gateway-gvmd/tests/architecture.rs b/crates/gvm-gateway-gvmd/tests/architecture.rs index 4a4fa017..01502c66 100644 --- a/crates/gvm-gateway-gvmd/tests/architecture.rs +++ b/crates/gvm-gateway-gvmd/tests/architecture.rs @@ -19,7 +19,7 @@ const RUST_GVM_COMPONENTS: &[&str] = &[ const RUST_GVM_DEPENDENCY_URL: &str = "https://github.com/greenbone/rust-gvm"; const RUST_GVM_DEPENDENCY_VERSION: &str = "0.12.0"; // File-search write support is pinned independently of the release facade snapshot below. -const RUST_GVM_DEPENDENCY_REVISION: &str = "a3d447a804e4e436023c461baba3426d6859e28d"; +const RUST_GVM_DEPENDENCY_REVISION: &str = "5b723fadc53660e7eafb642a13a5877b76b93558"; // The v0.12.0 release retains the reviewed 270-helper feature-stack facade. // Advance the matching snapshot and disposition ledger to the release tag // without changing their deliberately reviewed classifications. diff --git a/worklog.md b/worklog.md index 39d8814c..d99e4c46 100644 --- a/worklog.md +++ b/worklog.md @@ -177,3 +177,9 @@ Validation (source /workspace/api-agent-env; CARGO_TARGET_DIR=/workspace/.cache/ - Added the open NVT type to full/summary E2E DTOs and a regression that preserves the EPSS-free summary boundary. - Regenerated minimal cargo-vet exemptions. `cargo vet --locked`, formatting, diff hygiene, strict workspace/all-target/all-feature Clippy, both focused regressions, and the complete all-feature workspace test suite pass. Rebase onto the current PR base completed cleanly; signed commit, push, and exact-head CI are pending. - Exact-head CI run 45171334880 exposed that the new E2E DTO regression was missing from the mandatory evidence inventory. Added it under the existing `rest.dto.summary-nvt-boundary` contract. The full evidence gate now passes with 46 inventoried Rust tests; publishing a signed follow-up commit before monitoring replacement CI. + +## PR #779 merged-upstream dependency follow-up +- Verified rust-gvm PR #891 merged at 5b723fadc53660e7eafb642a13a5877b76b93558. +- Updated all five rust-gvm pins, lockfile source revisions, and the architecture pin assertion; preserved historical release snapshots and unrelated dependency versions/edges. +- The API dependency graph does not include curve25519-dalek; the upstream lockfile is not inherited by dependent repositories. Running API regression, lint, audit and vet checks on the merged revision. +- Validation on final lockfile passed: workspace/all-feature tests (778 passed, 32 ignored), fmt, strict workspace/all-target/all-feature Clippy, Cargo Audit and Cargo Vet --locked. Existing informational/manifest warnings unchanged.