Skip to content

fix(backend): trust self-signed CA cert for internal WebSocket connections (#4664)#4728

Merged
mrveiss merged 1 commit intoDev_new_guifrom
issue-4664
Apr 15, 2026
Merged

fix(backend): trust self-signed CA cert for internal WebSocket connections (#4664)#4728
mrveiss merged 1 commit intoDev_new_guifrom
issue-4664

Conversation

@mrveiss
Copy link
Copy Markdown
Owner

@mrveiss mrveiss commented Apr 15, 2026

Closes #4664

Summary

  • Enhanced _create_permissive_ssl_context() in slm_client.py with a 4-level SSL trust hierarchy:
    1. AUTOBOT_TLS_CA_PATH env var — explicit CA cert for production mTLS
    2. AUTOBOT_SKIP_TLS_VERIFY=true — disable verification for dev/test only
    3. Project CA fallback at certs/ca/ca-cert.pem — covers single-host installs with AutoBot-issued self-signed cert (fixes the production log flooding)
    4. System trust store — default Python SSL behaviour
  • Added slm_client_test.py with 11 tests covering the SSL trust hierarchy (6) and exponential backoff behaviour (5)

Tests

  • 11/11 new tests passed

🤖 Generated with Claude Code

…ns (#4664)

Enhance _create_permissive_ssl_context() with a 4-level trust hierarchy:
1. AUTOBOT_TLS_CA_PATH env var — load explicit CA cert (production mTLS)
2. AUTOBOT_SKIP_TLS_VERIFY=true — disable verification (dev/test only)
3. AutoBot project CA fallback (certs/ca/ca-cert.pem) — covers single-host
   installs where the SLM uses an AutoBot-issued self-signed cert
4. System trust store — default Python SSL behaviour

Add slm_client_test.py with 11 tests covering SSL trust hierarchy and
exponential backoff in the WebSocket reconnect loop.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@mrveiss mrveiss merged commit e0f2996 into Dev_new_gui Apr 15, 2026
3 of 4 checks passed
@mrveiss mrveiss deleted the issue-4664 branch April 15, 2026 17:49
@github-actions
Copy link
Copy Markdown

✅ SSOT Configuration Compliance: Passing

🎉 No hardcoded values detected that have SSOT config equivalents!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant