importfsfrom'node:fs/promises';exportasyncfunctionreadSecret(name,path){console.log(`[SECRET] Reading secret "${name}" from path: ${path}`);if(!path){thrownewError(`Path to secret file is required: ${name}`);}constcontent=awaitfs.readFile(path,'utf8');returncontent.trim();}