Add ProxiFyre firewall rule management and bump version to 1.1.0

This commit is contained in:
2026-07-22 16:17:00 +03:00
parent 67792f245f
commit 90ec4ca086
17 changed files with 289 additions and 22 deletions
@@ -18,6 +18,35 @@ fn accepts_matching_managed_install_and_returns_packet_filter_ownership() {
assert!(ownership.remove_packet_filter);
}
#[test]
fn accepts_windows_powershell_utf8_bom_marker() {
let fixture = ManagedInstallFixture::new("utf8-bom");
let marker = json!({
"manager": "ProxyWarden",
"component": "proxifyre",
"serviceName": "ProxiFyreService",
"installRoot": fixture.install_dir,
"packetFilterInstalledByProxyWarden": false
});
let mut marker_bytes = vec![0xEF, 0xBB, 0xBF];
marker_bytes.extend(serde_json::to_vec_pretty(&marker).expect("marker should serialize"));
fs::write(
fixture.install_dir.join("proxywarden-component.json"),
marker_bytes,
)
.expect("BOM marker should be written");
let ownership = verify_managed_proxifyre_install(
&fixture.install_dir,
&fixture.executable_path,
&fixture.install_dir,
)
.expect("Windows PowerShell BOM marker should prove ownership");
assert_eq!(ownership.service_name, "ProxiFyreService");
assert!(!ownership.remove_packet_filter);
}
#[test]
fn rejects_install_outside_expected_managed_directory() {
let fixture = ManagedInstallFixture::new("unexpected-root");