mirror of
https://github.com/taylanbakircioglu/haproxy-openmanager.git
synced 2026-09-18 08:35:28 +00:00
3e2f3e3d9f
Critical fixes for SSL advanced options (alpn, npn, ciphers, ciphersuites, min-ver, max-ver, strict-sni): 1. Frontend GET API (backend/routers/frontend.py) - Added all 7 SSL advanced option fields to response - Frontend Edit modal will now display these fields - Prevents NULL overwrite when user edits frontend 2. Bulk Import Frontend UPDATE (backend/routers/config.py) - Added all 7 SSL advanced option fields to UPDATE statement - Previously skipped with comment 'MVP: DON'T update SSL settings' - Now bulk import re-runs preserve SSL settings 3. Backend Server GET API (backend/routers/backend.py) - Added 4 server SSL fields (ssl_sni, ssl_min_ver, ssl_max_ver, ssl_ciphers) - SQL SELECT query updated - Response object updated - Backend Server Edit modal will now display these fields Root cause: GET APIs were not returning SSL advanced options, causing: - UI forms to show empty fields - User edits to overwrite with NULL - Data loss on subsequent updates All other endpoints (POST, PUT, INSERT) were already correct. Impact: - No more accidental data loss when editing frontends/servers - Bulk import now preserves SSL advanced options - UI will correctly display all SSL parameters Test: Deploy backend, run bulk import, verify ssl_alpn appears in database