fix: director ConfigMap name, CSRF, ServerSetScale replicas + error handling

- Fix ConfigMap name derivation (strip funcom-seabass- prefix from namespace)
- Fix CSRF token missing on all 6 director POST handlers (fetch -> csrfFetch)
- Add ServerSetScale replicas management to director map cards
- Merge webOverrideCfg into cfg so UI shows active runtime overrides
- Auto-refresh after Apply and reset button state on all handlers
- Surface JSON error bodies in error banner instead of silent fail
- Fix SSL SAN handling for IP vs DNS common name
- Fix Let's Encrypt certbot paths to use project-root certbot/ dir
- Fix deploys_ok to reflect actual K8s availability
- Add active server deployment matching with restart buttons
This commit is contained in:
Reditus committed 2026-05-29 11:55:57 +01:00
1 parent 0f173dc107
commit 4a94bf68ce
8 files changed
+321 -57

No files matched your search

+6 -1
View File
@@ -108,7 +108,12 @@ def generate_cert(cert_path, key_path, ca_cert_path=None, ca_key_path=None,
])
# Build SAN entries
san_entries = [x509.DNSName(common_name)]
san_entries = []
# Add common_name as the appropriate SAN type
try:
san_entries.append(x509.IPAddress(ipaddress.ip_address(common_name)))
except ValueError:
san_entries.append(x509.DNSName(common_name))
if san_ips:
for ip in san_ips:
try: