fix(dcrouter): guard auto certificate reprovisioning against unnamed routes
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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.'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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}`);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -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.'
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user