Block patch on deleted secrets

This commit is contained in:
Dotta committed 2026-05-09 15:48:21 -05:00
1 parent a4fc95860b
commit e9e4908d9e
1 file changed
+4
+4
View File
@@ -348,6 +348,10 @@ export function secretRoutes(db: Db) {
return;
}
assertCompanyAccess(req, existing.companyId);
if (existing.status === "deleted") {
res.status(404).json({ error: "Secret not found" });
return;
}
const rotated = await svc.rotate(
id,