Skip to content

Commit 493cd3e

Browse files
authored
Merge branch 'staging' into fix/memory-injection-scanning
2 parents 709528e + b639760 commit 493cd3e

3 files changed

Lines changed: 10 additions & 16 deletions

File tree

crates/ironclaw_engine/src/workspace/filesystem.rs

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,7 @@ mod tests {
331331
assert!(matches!(err, MountError::InvalidPath { .. }));
332332
}
333333

334+
#[cfg(unix)]
334335
#[tokio::test]
335336
async fn rejects_symlink_escapes() {
336337
// Set up: backend root is a tempdir; create a symlink inside that
@@ -340,20 +341,13 @@ mod tests {
340341
let outside = tempfile::tempdir().unwrap();
341342
std::fs::write(outside.path().join("secret"), b"oops").unwrap();
342343
// best effort — symlink may not work on all platforms; skip if it fails
343-
#[cfg(unix)]
344-
{
345-
let link = dir.path().join("escape");
346-
std::os::unix::fs::symlink(outside.path(), &link).unwrap();
347-
let err = backend
348-
.read(Path::new("escape/secret"))
349-
.await
350-
.expect_err("symlink escape must be rejected");
351-
assert!(matches!(err, MountError::InvalidPath { .. }));
352-
}
353-
#[cfg(not(unix))]
354-
{
355-
let _ = dir; // unused on non-unix
356-
}
344+
let link = dir.path().join("escape");
345+
std::os::unix::fs::symlink(outside.path(), &link).unwrap();
346+
let err = backend
347+
.read(Path::new("escape/secret"))
348+
.await
349+
.expect_err("symlink escape must be rejected");
350+
assert!(matches!(err, MountError::InvalidPath { .. }));
357351
}
358352

359353
#[tokio::test]

registry/channels/feishu.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "feishu",
33
"display_name": "Feishu / Lark Channel",
44
"kind": "channel",
5-
"version": "0.2.1",
5+
"version": "0.2.2",
66
"wit_version": "0.3.0",
77
"description": "Talk to your agent through a Feishu or Lark bot",
88
"keywords": [

registry/channels/slack.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "slack",
33
"display_name": "Slack Channel",
44
"kind": "channel",
5-
"version": "0.3.0",
5+
"version": "0.3.1",
66
"wit_version": "0.3.0",
77
"description": "Talk to your agent in Slack",
88
"keywords": [

0 commit comments

Comments
 (0)