Primary finding
Synchronous exec calls block the event loop and degrade concurrency
- dashboard/app/api/secrets/route.ts:32-38
- dashboard/app/api/secrets/route.ts:41-47
- dashboard/app/api/secrets/route.ts:95-99
- dashboard/app/api/secrets/route.ts:118-120
execSync/execFileSync block the Node.js event loop thread handling the request, reducing throughput and increasing latency under concurrent load.
Recommendation
Use non-blocking child process APIs (spawn/exec with callbacks or promise wrappers like execa) and await their completion, or offload to a worker/thread pool or queue if operations are long-running.