On this page

0166: Outbound HTTPS through curl; native TLS deferred

Status: Accepted by maintainer 2026-11-07; superseded by 0247 (accepted 2026-11-15; preserves no Harness crypto and serving TLS via proxy)

Context

The target app calls an external HTTPS API. Harness has no TLS and must never implement crypto. The agent provider path already speaks HTTPS through curl (plugins/agent/transport.hn, curl_send): config travels on stdin (--config -), so no secrets go in argv; --proto =https, no redirects, proxies or ambient config; raw errors are discarded. Process.run_input exists only on the agent platform (plugins/agent/platform.toml); the C (hrt_proc_run_input) and interpreter (interp_process::run_input) implementations are shared.

Decision

Consequences

HTTPS works in v1 with zero crypto code. Costs: one process spawn per request (milliseconds), curl must be on PATH, behavior depends on the curl version (minimum to be pinned in the docs), and outbound host limits are advisory. Tests use a canned Runner and a fake curl on PATH; live calls are a manual smoke test (ADR-0112).

Alternatives