Files
haproxy-openmanager/frontend
taylanbakircioglu 457fd28bb3 Fix: Backend Server SSL certificate dropdown not loading
🐛 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
2025-11-07 11:51:14 +03:00
..
2025-10-27 12:14:03 +03:00
2025-10-27 12:14:03 +03:00
2025-10-27 12:14:03 +03:00
2025-10-27 12:14:03 +03:00
2025-10-27 12:14:03 +03:00