mirror of
https://github.com/taylanbakircioglu/haproxy-openmanager.git
synced 2026-09-19 17:15:12 +00:00
22bbd17a0c
COMPLETE FRONTEND SSL AUTO-MATCHING FIX:
Two Critical Fixes:
1. Parser SSL Path Storage (haproxy_config_parser.py Line 267):
Added: frontend.ssl_cert_path = cert_paths[0]
Before:
Extracted SSL paths but didn't store
Bulk import had no path to extract name from
After:
Stores first cert path
Bulk import can extract name and match
2. UI SSL Display (BulkConfigImport.js Line 188-209):
Replaced static "No SSL (Bulk Import)" with dynamic display
Shows:
- SSL Enabled + Auto-matched (X cert) [Green]
- SSL (No Match) [Orange]
- No SSL [Gray]
Complete Flow Verified:
1. Config: bind :443 ssl crt /etc/ssl/certs/demo-cert.pem
2. Parser: ssl_cert_path stored ✓
3. Bulk import: Extracts demo-cert ✓
4. Matches: SSL Management has demo-cert SYNCED ✓
5. Response: ssl_enabled=True, ssl_certificate_ids=[3] ✓
6. UI Parse: Shows [SSL Enabled] Auto-matched ✓
7. Create: INSERT with ssl_certificate_ids ✓
8. Edit modal: SSL enabled + demo-cert selected ✓
9. Apply: Config with SSL path generated ✓
10. HAProxy: Validation PASS ✓
Both frontend and backend SSL auto-matching now complete!