fix(dcrouter): guard auto certificate reprovisioning against unnamed routes

This commit is contained in:
2026-03-27 19:28:55 +00:00
parent 3d443fa147
commit dcd75f5e47
4 changed files with 9 additions and 3 deletions

View File

@@ -1,5 +1,11 @@
# Changelog # Changelog
## 2026-03-27 - 11.12.2 - fix(dcrouter)
guard auto certificate reprovisioning against unnamed routes
- Only re-triggers certificate provisioning for auto-cert routes when a route name is present.
- Prevents reprovision attempts from running with an undefined route name and reduces warning noise.
## 2026-03-27 - 11.12.1 - fix(dcrouter) ## 2026-03-27 - 11.12.1 - fix(dcrouter)
retry auto certificate provisioning after SmartAcme becomes ready retry auto certificate provisioning after SmartAcme becomes ready

View File

@@ -3,6 +3,6 @@
*/ */
export const commitinfo = { export const commitinfo = {
name: '@serve.zone/dcrouter', name: '@serve.zone/dcrouter',
version: '11.12.1', version: '11.12.2',
description: 'A multifaceted routing service handling mail and SMS delivery functions.' description: 'A multifaceted routing service handling mail and SMS delivery functions.'
} }

View File

@@ -410,7 +410,7 @@ export class DcRouter {
const routes = this.smartProxy.routeManager.getRoutes(); const routes = this.smartProxy.routeManager.getRoutes();
for (const route of routes) { for (const route of routes) {
const tls = (route as any).action?.tls; const tls = (route as any).action?.tls;
if (tls && tls.certificate === 'auto') { if (tls && tls.certificate === 'auto' && route.name) {
this.smartProxy.provisionCertificate(route.name).catch((err: any) => { this.smartProxy.provisionCertificate(route.name).catch((err: any) => {
logger.log('warn', `Re-provision for route '${route.name}' failed: ${err?.message || err}`); logger.log('warn', `Re-provision for route '${route.name}' failed: ${err?.message || err}`);
}); });

View File

@@ -3,6 +3,6 @@
*/ */
export const commitinfo = { export const commitinfo = {
name: '@serve.zone/dcrouter', name: '@serve.zone/dcrouter',
version: '11.12.1', version: '11.12.2',
description: 'A multifaceted routing service handling mail and SMS delivery functions.' description: 'A multifaceted routing service handling mail and SMS delivery functions.'
} }