fix(security): sanitize verbose error in system update service

This commit is contained in:
LuisMIguelFurlanettoSousa 2026-03-25 21:32:26 -03:00
parent 07348c293e
commit 9d7e7cbf4c

View File

@ -47,10 +47,10 @@ export class SystemUpdateService {
message: 'System update initiated. The admin container will restart during the process.', message: 'System update initiated. The admin container will restart during the process.',
} }
} catch (error) { } catch (error) {
logger.error('[SystemUpdateService]: Failed to request system update:', error) logger.error({ err: error }, '[SystemUpdateService] Failed to request system update')
return { return {
success: false, success: false,
message: `Failed to request update: ${error.message}`, message: 'Failed to request system update. Check server logs for details.',
} }
} }
} }