From 77b33032e374bb5a0d656da0be2ae443f2595f11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa=20Aubert?= Date: Thu, 15 Feb 2018 12:24:26 +0100 Subject: [PATCH] Do not expose sensible info about users (database credentials) --- batch/models/job_base.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/batch/models/job_base.js b/batch/models/job_base.js index b2143ac0..27e666c2 100644 --- a/batch/models/job_base.js +++ b/batch/models/job_base.js @@ -107,7 +107,13 @@ JobBase.prototype.validate = function () { JobBase.prototype.serialize = function () { var data = JSON.parse(JSON.stringify(this.data)); + delete data.host; + delete data.dbuser; + delete data.dbport; + delete data.dbname; + delete data.dbhost; + delete data.dbpass; return data; };