1 Commits

Author SHA1 Message Date
truffle
93d24f776a fix(ssl): extend DISABLE_SSL_VERIFY coverage to codex provider and four embedding adapters
v1.3.10 added the `openai_http_client.disable_ssl_verify_enabled` helper
and applied it to the SDK paths (`openai_sdk` embedding,
`openai_compat_provider`, `azure_openai_provider`, tutorbot
`openai_compat_provider`). Five raw-httpx call sites still ignored the
flag:

- `provider_core/openai_codex_provider.py:79` hardcoded `verify=True` on
  the first attempt before falling back on `CERTIFICATE_VERIFY_FAILED`.
- `embedding/adapters/openai_compatible.py:193` constructed
  `httpx.AsyncClient(timeout=...)` with no `verify` kwarg.
- `embedding/adapters/jina.py:89`, `ollama.py:61`, `cohere.py:115` same.

Each site now consults the helper and passes `verify=not
disable_ssl_verify_enabled()`. The codex provider's
`CERTIFICATE_VERIFY_FAILED` retry path is preserved unchanged.

Tests:

- `tests/services/embedding/test_disable_ssl_verify.py` (5 adapter tests
  + 1 production-guard test) asserts each adapter passes `verify=False`
  when the flag is set and `verify=True` otherwise.
- `tests/services/llm/test_codex_disable_ssl_verify.py` covers the
  default-true case, flag-flip-to-false case, and the
  retry-on-cert-failure fallback.
2026-05-10 23:08:40 +00:00