Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
44bb08c
test(storage): cover denying a carried-over approval request
senamakel Nov 12, 2026
7deac7c
fix(approval): allow denying orphaned requests from earlier launches
senamakel Nov 12, 2026
b367957
feat(security): add orphaned approval engine cleanup
senamakel Nov 12, 2026
7a0a05d
feat(approval): add dismiss_orphan to the approval engine trait
senamakel Nov 12, 2026
1930793
feat(approval): allow default tenant to dismiss orphaned pending appr…
senamakel Nov 12, 2026
76adb41
style(approval): reformat native approval code to satisfy rustfmt
senamakel Nov 12, 2026
2f2037d
feat(approval): track and dismiss orphaned pending requests
senamakel Nov 12, 2026
094b7fb
test(approval): register orphan approval gate test module
senamakel Nov 12, 2026
baaae84
test(approval): relax orphan denial assertion and tidy module order
senamakel Nov 12, 2026
3191459
test(security): cover orphan review verification rules
senamakel Nov 12, 2026
1459660
docs(security): document engine_orphans module in approval overview
senamakel Nov 12, 2026
d931950
docs(security): document orphaned pending approval requests
senamakel Nov 12, 2026
17048b6
fix(update): create temp file before streaming download
senamakel Nov 12, 2026
c2a950f
fix(update): pass file by mutable reference when streaming downloads
senamakel Nov 12, 2026
2b1da74
chore(update): remove unused path import
senamakel Nov 12, 2026
3a8de39
test(rust-e2e): cover tinyeventqueues release in module path assertion
senamakel Nov 12, 2026
50020ac
fix(security): only list imported pending rows as orphaned approvals
senamakel Nov 12, 2026
d4e8e9e
test(auth): update e2e expectations for file keyring isolation
senamakel Nov 12, 2026
16413b7
test(auth): align e2e expectations with file-keyring storage
senamakel Nov 12, 2026
b833fc7
fix(update): include asset name in temp file creation error
senamakel Nov 12, 2026
5459c6e
test(approval): use a valid row id in the orphan verification test
senamakel Nov 12, 2026
5f7be3c
fix(approval): preserve live scope posture during history import
senamakel Nov 12, 2026
b6d70c8
chore: remove unused agent chat, sandbox, and web chat modules
senamakel Nov 12, 2026
92feca1
chore(ci): lower ignored test baseline for openhuman-core
senamakel Nov 12, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

4 changes: 3 additions & 1 deletion crates/openhuman-core/src/platform/update/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,9 @@ pub async fn download_and_stage_with_version(

// Stream to a temp file first, then rename for atomicity.
let tmp_path = dir.join(format!(".{asset_name}.tmp"));
let streamed = download::stream_to_file(response, &tmp_path, max_bytes).await;
let mut file = std::fs::File::create(&tmp_path)
.map_err(|e| format!("failed to create the download temp file for {asset_name}: {e}"))?;
let streamed = download::stream_to_file(response, &mut file, max_bytes).await;
let refusal = match streamed {
Ok((written, digest)) => {
log::info!("[update] downloaded {written} bytes");
Expand Down
10 changes: 4 additions & 6 deletions crates/openhuman-core/src/platform/update/download.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
//! bundles, so there is no signature to verify here.

use std::io::Write;
use std::path::Path;

use sha2::{Digest, Sha256};

Expand Down Expand Up @@ -88,19 +87,18 @@ pub(super) fn check_declared_length(
}
}

/// Stream `response` into a new file at `path`, hashing as it goes.
/// Stream `response` into `file` (a freshly created temp file), hashing as it
/// goes.
///
/// Stops reading once more than `max_bytes` arrive, without writing the
/// excess; the returned count then exceeds `max_bytes` and `verify` refuses
/// it. Returns the byte count and the SHA-256 digest of what was read. The
/// caller removes `path` on error.
/// caller creates the file and removes it on error.
pub(super) async fn stream_to_file(
mut response: reqwest::Response,
path: &Path,
file: &mut std::fs::File,
max_bytes: u64,
) -> Result<(u64, [u8; 32]), String> {
let mut file =
std::fs::File::create(path).map_err(|e| format!("failed to create temp file: {e}"))?;
let mut hasher = Sha256::new();
let mut read: u64 = 0;
while let Some(chunk) = response
Expand Down
223 changes: 0 additions & 223 deletions crates/openhuman-core/src/sandbox/untrusted.rs

This file was deleted.

Loading
Loading