CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Check (pull_request) Successful in 5m59s
#256 checked a tenant-chosen address before connecting. That left two gaps: the client resolved the name again when connecting (DNS rebinding), and redirects were never checked. The git path never resolved the name at all, so a public-looking host pointing at 10.x or the metadata address was cloned. - `compliance_core::guarded_net` (feature `net`): - `guarded_client_builder` gives reqwest a resolver that *is* the guard: it returns only approved addresses, so the connection goes where the check said. It also re-checks every redirect hop (at most 5; a refusal names the hop) and sets no_proxy. - `resolve_approved` does the same for raw TCP callers. - `Lookup` is a trait, so tests use a stub resolver instead of live DNS. - Git: `GitOps::check_remote` resolves and requires public addresses right before every clone, and again on every fetch (it re-reads origin). libgit2 redirects are off. A refused clone leaves no empty checkout behind. The unused `test_access` is removed. Full pinning for git is #320 (chosen deliberately). - Gitea tracker (its base URL is the tenant's git host), the DAST orchestrator, the pentest tool registry and the cookie analyzer use guarded clients. The TLS analyzer and the ICS probes connect to the approved IP. - The soft-PLC WebVisu DAST scans a platform-started container, so it uses an allow-private guard. The browser (external Chrome) cannot be pinned from here: #321. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
42 lines
921 B
TOML
42 lines
921 B
TOML
[package]
|
|
name = "compliance-dast"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
compliance-core = { workspace = true, features = ["net"] }
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
chrono = { workspace = true }
|
|
thiserror = { workspace = true }
|
|
tracing = { workspace = true }
|
|
uuid = { workspace = true }
|
|
tokio = { workspace = true }
|
|
mongodb = { workspace = true }
|
|
reqwest = { workspace = true }
|
|
|
|
# HTML parsing
|
|
scraper = "0.25"
|
|
|
|
# Browser automation
|
|
chromiumoxide = { version = "0.7", features = ["tokio-runtime"], default-features = false }
|
|
|
|
# Docker sandboxing
|
|
bollard = "0.18"
|
|
|
|
# TLS analysis
|
|
native-tls = "0.2"
|
|
tokio-native-tls = "0.3"
|
|
|
|
# CDP WebSocket (browser tool)
|
|
tokio-tungstenite = { version = "0.26", features = ["rustls-tls-webpki-roots"] }
|
|
futures-util = "0.3"
|
|
base64 = "0.22"
|
|
|
|
# Serialization
|
|
bson = { version = "2", features = ["chrono-0_4"] }
|
|
url = "2"
|