From 36b8b3210df5c43880fcf71df68dd015114ad5e0 Mon Sep 17 00:00:00 2001 From: anupamme Date: Sat, 5 Sep 2026 22:23:40 +0000 Subject: [PATCH] fix: V-001 security vulnerability Automated security fix generated by OrbisAI Security --- src/index.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/index.js b/src/index.js index 0b1f0d29..0f9eeda0 100644 --- a/src/index.js +++ b/src/index.js @@ -58,6 +58,13 @@ export function run() { serverOptions = mergeDeep({}, serverOptions, commandOptions); + if (!serverOptions.secretKey) { + console.error( + 'Erro: nenhuma "secretKey" foi definida. Configure --secretKey ou informe "secretKey" no arquivo de configuração para habilitar a autenticação da API.' + ); + process.exit(1); + } + const { app } = initServer(serverOptions); if (commandOptions.frontend) {