You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browse filesBrowse the repository at this point in the historyBrowse files
authored
fix: remove automatic InsecureSkipVerify=true for HTTPS connections (CWE-295) (#359)
* fix: remove automatic InsecureSkipVerify=true for HTTPS connections (CWE-295)
- Remove URL-scheme-based logic that unconditionally disabled TLS
certificate verification for every HTTPS URL
- Add InsecureSkipVerify bool to AppConfig and ConnectConfig as an
explicit opt-in (defaults to false / secure)
- Propagate the flag through ConnectConfig in abs.go, async.go, sync.go
- Add a second singleton transport for the insecure case so secure and
insecure connections are isolated
- Fix defer res.Body.Close() inside retry loop (resource leak)
- Update HTTPS unit test to explicitly set InsecureSkipVerify: true
Agent-Logs-Url: https://github.com/apolloconfig/agollo/sessions/64e40f20-b4d3-4bd9-bca1-229ede403e51
Co-authored-by: zouyx <3828072+zouyx@users.noreply.github.com>
* Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* restore url.Parse and HTTPS scheme auto-detection; read InsecureSkipVerify from config
* reorder nil check before scheme check for consistency
* fix: use exact scheme equality for HTTPS detection, remove unused strings import
* test: add TLS verification regression coverage
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: zouyx <3828072+zouyx@users.noreply.github.com>
Co-authored-by: Joe Zou <yixian.zou@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
0 commit comments