mirror of
https://github.com/taylanbakircioglu/haproxy-openmanager.git
synced 2026-09-18 08:35:28 +00:00
457fd28bb3
🐛 Bug Fix: - Fixed SSL certificate dropdown showing empty list in Backend Server edit - Backend Server SSL dropdown now loads certificates correctly 🔧 Technical Details: - Wrong API endpoint: /api/ssl-certificates (incorrect) - Correct endpoint: /api/ssl/certificates (same as Frontend) - Added cluster_id filtering and Authorization header - Added debug logging for troubleshooting ✅ Now Shows (Verified with Query Analysis): - Global SSL certificates (available to all clusters) - Cluster-specific SSL certificates for SELECTED cluster only - Other clusters' specific SSLs are NOT shown (correct behavior) 💡 SSL Enable Logic (HAProxy Standard): Current implementation is CORRECT per HAProxy syntax: server name addr:port ssl [verify required] The 'ssl' flag MUST be present before 'verify' can be used. Therefore: SSL Enable switch → SSL dropdown (correct behavior) Example HAProxy syntax: ✅ server es1 10.0.0.1:443 ssl verify required ca-file /path/cert.pem ❌ server es1 10.0.0.1:443 verify required (invalid - missing ssl flag) Query Logic (Line 173-176 backend/routers/ssl.py): Global: NOT EXISTS in ssl_certificate_clusters Cluster-specific: scc.cluster_id = selected_cluster_id