DC-023: operational fixes — DNS, rate limiter, version sync
- VERSION: bump from 1.14.4 to 1.14.6 to match package.json (HEAD had stale value) - middleware.js: apply existing totpLimiter (10/15min) to /totp/setup endpoint (was previously unmetered, allowing secret enumeration) - dashcaddy-update.sh: hook post-deploy-patches.sh into the update flow so the container can survive transitions between broken → fixed tarballs - start.sh: add --add-host flags for get.dashcaddy.net and get2.dashcaddy.net so the container can resolve the release server (was failing with ENOTFOUND)
This commit is contained in:
@@ -473,6 +473,11 @@ module.exports = function configureMiddleware(app, {
|
||||
});
|
||||
app.use('/api/v1/totp/verify', totpLimiter);
|
||||
app.use('/api/v1/totp/verify-setup', totpLimiter);
|
||||
// /totp/setup was previously unmetered — an attacker could enumerate
|
||||
// secrets or DoS the QR generator. Apply the same 10/15min limit as the
|
||||
// other TOTP endpoints. The standardHeaders config above emits
|
||||
// RateLimit-Limit / RateLimit-Remaining for clients to see.
|
||||
app.use('/api/v1/totp/setup', totpLimiter);
|
||||
|
||||
// ── Audit logging middleware (logs non-GET API requests) ──
|
||||
app.use(auditLogger.middleware());
|
||||
|
||||
Reference in New Issue
Block a user