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
feat(searchengine): env-gated TLS skip verify for ES connections
Adds an opt-in tlsSkipVerify bool to searchengine.New, plumbed from
each service's config:
- search-service: SEARCH_TLS_SKIP_VERIFY (default false)
- search-sync-worker: SEARCH_TLS_SKIP_VERIFY (default false)
Default-off keeps prod safe; ops opts in per environment for
self-signed/internal ES clusters. When false, the factory uses the
standard ES client transport — same behavior as before this PR.
When true, clones http.DefaultTransport (preserving ProxyFromEnvironment,
dial/TLS-handshake timeouts, HTTP/2, idle-conn tuning) and overrides
only TLSClientConfig with InsecureSkipVerify=true and MinVersion=TLS 1.2,
guarding the type assertion on http.DefaultTransport so we error out
cleanly if a middleware (e.g. OTel) has replaced it.
Also enables gosec G402 narrowly in .golangci.yml so the //nolint:gosec
annotation in pkg/oidc and pkg/searchengine actually suppresses a real
rule, and any future unannotated InsecureSkipVerify is rejected at
lint time.
Includes a goimports-only struct alignment tweak in
room-worker/integration_test.go picked up while running make fmt — no
behavior change.
https://claude.ai/code/session_01UkLD7hpaypxjeh5zbEWTjp
0 commit comments