diff --git a/src/routes/reverseproxy.js b/src/routes/reverseproxy.js index 3fc686d8a..b31fa8236 100644 --- a/src/routes/reverseproxy.js +++ b/src/routes/reverseproxy.js @@ -28,6 +28,7 @@ async function setTrustedIps(req, res, next) { async function renewCerts(req, res, next) { if ('rebuild' in req.body && typeof req.body.rebuild !== 'boolean') return next(new HttpError(400, 'rebuild must be a boolean')); + if ('forceRenewal' in req.body && typeof req.body.forceRenewal !== 'boolean') return next(new HttpError(400, 'forceRenewal must be a boolean')); // ignored if the CA has ARI support const [error, taskId] = await safe(reverseProxy.startRenewCerts(req.body, AuditSource.fromRequest(req))); if (error) return next(BoxError.toHttpError(error));