fix: re-enable http-outbound plugin permission (#3087)

The HTTP_OUTBOUND permission was wired up correctly in #2128, gating
whether a plugin's outbound HTTP requests are allowed via
wasi_http_hooks.allow_outbound. That block was accidentally dropped in
8ce513ff89 ("feat: more plugin features") when unrelated changes
overwrote the same permission-checking region in
wasm_host/mod.rs, leaving allow_outbound permanently false regardless
of the plugin's declared permissions.

This restores the check so a plugin granted http-outbound in its
manifest can actually make outbound HTTP calls again.
This commit is contained in:
Stilldrop1
2026-08-27 10:52:37 -05:00
committed by GitHub
parent 8d2a9d0979
commit 7034b698d0

View File

@@ -277,6 +277,10 @@ impl WasmPlugin {
builder.inherit_network();
}
if has_permission(permissions::HTTP_OUTBOUND) {
store.data_mut().wasi_http_hooks.allow_outbound = true;
}
// --- System Permissions & Environment Variables ---
// Environment Variables