Skip to content

Port sandbox web HTTP transport to guarded Rust client - #1222

Open
PurpleCHOIms wants to merge 2 commits into
feat/sandbox-web-learningfrom
feat/sandbox-web-transport
Open

PurpleCHOIms wants to merge 2 commits into
feat/sandbox-web-learningfrom
feat/sandbox-web-transport

Conversation

@PurpleCHOIms

Copy link
Copy Markdown
Member

Why

Decepticon OSS's sandbox web engine still uses Python curl_cffi. This stacked step ports its HTTP GET and checked redirect transport to the standalone Rust crate before replacing the active engine.

What

  • Add pinned wreq/wreq-util browser profiles, cookie reuse, explicit HTTP/1.1 for cleartext requests and manual redirects.
  • Check each canonical URL with address policy and an optional RoE predicate before requesting it.
  • Reject private IP literals and private/reserved DNS answers in the default unmanaged mode, with system proxies disabled there.
  • Add fake-response parity cases and real loopback redirect, cookie and connection-blocking tests.
  • Update CHAGELOG.md and verification record.

Scope and limits

Stacked on #1221, which is stacked on #1220. The active Python sandbox engine and Docker image are unchanged. Per-host pooling, warmup, browser cookie injection, fetch chain and fallback remain for subsequent ports. No live target fingerprint or success-rate equivalence is claimed.

Local verification

  • Rust 1.100 fmt and git diff --check: pass.
  • Shared-slot cargo test --locked --offline --all-targets: 32 library, 5 learning and 9 transport tests passed.
  • Shared-slot cargo clippy --locked --offline --all-targets -- -D warnings: pass.
  • WSL BoringSSL build used extracted Ubuntu libclang/LLVM in /dev/shm; no system package change. GitHub Actions are unavailable due account billing, so no hosted CI result is claimed.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant