mirror of
https://github.com/nearai/ironclaw.git
synced 2026-09-03 08:06:01 +08:00
fix(sandbox): preserve failed Railway audit appends
This commit is contained in:
@@ -117,7 +117,7 @@ drain_proxy_audit() {
|
||||
rm -f "$audit_append" "$audit_capture"
|
||||
return 1
|
||||
fi
|
||||
cat "$audit_append" >> "$audit_log"
|
||||
cat "$audit_append" >> "$audit_log" || return 1
|
||||
chmod 600 "$audit_log"
|
||||
rm -f "$audit_append" "$audit_capture"
|
||||
if [ -n "$last_record" ]; then
|
||||
|
||||
@@ -694,7 +694,9 @@ async fn ephemeral_worker_uses_managed_proxy_and_hardened_private_network() {
|
||||
&& RAILWAY_MANAGED_EGRESS_WRAPPER
|
||||
.contains("for audit_file in \"$material\"/audit/proxy.log*; do")
|
||||
&& RAILWAY_MANAGED_EGRESS_WRAPPER
|
||||
.contains("if [ \"$audit_total\" -gt 268435456 ]; then"),
|
||||
.contains("if [ \"$audit_total\" -gt 268435456 ]; then")
|
||||
&& RAILWAY_MANAGED_EGRESS_WRAPPER
|
||||
.contains("cat \"$audit_append\" >> \"$audit_log\" || return 1"),
|
||||
"Railway audit append must fail closed before aggregate retained evidence exceeds 256 MiB"
|
||||
);
|
||||
assert!(
|
||||
|
||||
Reference in New Issue
Block a user