Skip to content

fix(proxy): honour secure flag — reject secure=false, support HTTPS upstreams - #58

Merged
alshdavid merged 2 commits into
mainfrom
agent/auto-flash/cb77d41423e6
Oct 19, 2026
Merged

alshdavid merged 2 commits into
mainfrom
agent/auto-flash/cb77d41423e6

Conversation

@alshdavid

Copy link
Copy Markdown
Owner

Problem

--proxy ...&secure=false was parsed and stored but never enforced — the proxy client only spoke plain HTTP via HttpConnector, so TLS verification was effectively always on (and HTTPS targets could not be reached at all).

Fix

  • Proxy client now uses an HTTPS-capable connector (hyper-rustls with native roots, HTTP/1), so HTTPS upstreams actually work.
  • secure=false is now rejected at startup with a clear error instead of silently doing nothing — disabling certificate verification is not supported.
  • Added a test covering the rejection.

Fixes #24

Wire the proxy client to an HTTPS-capable connector and fail fast when a
route opts out of certificate verification, which was never honoured.
@alshdavid
alshdavid merged commit b6fd0dc into main Oct 19, 2026
4 checks passed
@alshdavid
alshdavid deleted the agent/auto-flash/cb77d41423e6 branch October 19, 2026 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

--proxy secure=false is parsed but never enforced

1 participant