Skip to content

Commit b104d67

Browse files
committed
fix(windows): restore CI after dependency updates
Signed-off-by: Akber Raza <akberr@nvidia.com>
1 parent 69cdb81 commit b104d67

3 files changed

Lines changed: 7 additions & 9 deletions

File tree

‎Cargo.lock‎

Lines changed: 1 addition & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎crates/openshell-sandbox/Cargo.toml‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ anyhow = { workspace = true }
4444
hmac = "0.12"
4545
sha2 = { workspace = true }
4646
hex = "0.4"
47-
russh = { version = "0.57", default-features = false, features = ["flate2", "ring", "rsa"] }
48-
rand_core = "0.6"
4947

5048
# Unix ownership for Kubernetes sidecar init setup
5149
nix = { workspace = true }

‎crates/openshell-supervisor-network/src/proxy.rs‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9529,15 +9529,16 @@ network_policies:
95299529
// Allow the current test binary — the in-process client's
95309530
// `/proc/<pid>/exe` — to reach the endpoint. Matching is by path.
95319531
let exe = std::env::current_exe().expect("current_exe");
9532+
let exe_yaml = serde_json::to_string(&exe.display().to_string())
9533+
.expect("serialize current executable path");
95329534
let data = format!(
95339535
r#"network_policies:
95349536
test_allow:
95359537
name: test_allow
95369538
endpoints:
95379539
{endpoint_yaml} binaries:
9538-
- {{ path: "{exe}" }}
9540+
- {{ path: {exe_yaml} }}
95399541
"#,
9540-
exe = exe.display(),
95419542
);
95429543
let engine = Arc::new(OpaEngine::from_strings(POLICY_REGO, &data).expect("load policy"));
95439544

@@ -9605,15 +9606,16 @@ network_policies:
96059606
const POLICY_REGO: &str = include_str!("../data/sandbox-policy.rego");
96069607

96079608
let exe = std::env::current_exe().expect("current_exe");
9609+
let exe_yaml = serde_json::to_string(&exe.display().to_string())
9610+
.expect("serialize current executable path");
96089611
let data = format!(
96099612
r#"network_policies:
96109613
test_allow:
96119614
name: test_allow
96129615
endpoints:
96139616
{endpoint_yaml} binaries:
9614-
- {{ path: "{exe}" }}
9617+
- {{ path: {exe_yaml} }}
96159618
"#,
9616-
exe = exe.display(),
96179619
);
96189620
let engine = Arc::new(OpaEngine::from_strings(POLICY_REGO, &data).expect("load policy"));
96199621

0 commit comments

Comments
 (0)