From: Anil Belur Date: Sun, 9 Jul 2017 23:55:19 +0000 (+1000) Subject: Filter creds before writing to logs. X-Git-Tag: v0.6.0~9 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=a4c019e1f9ce8434f56ed5c6086877e5a8862ca5;p=releng%2Flftools.git Filter creds before writing to logs. Remove any credentials possibily set as evnironment variables when running the job. Change-Id: I8e6daa19bb76152944e54be454fc83adbb9221fc Signed-off-by: Anil Belur --- diff --git a/shell/deploy b/shell/deploy index e330a95a..6fd66b1c 100755 --- a/shell/deploy +++ b/shell/deploy @@ -207,7 +207,7 @@ deploy_logs() { { echo "build-url: ${build_url}" } 2>&1 | tee -a "_build-details.log" - env | grep -v PASSWORD | sort > "_build-enviroment-variables.log" + env | grep -v -E "SSH|HUDSON|COOKIE|TOKEN|DOCKER|PASSWORD" | sort > "_build-enviroment-variables.log" # Print system info before collecting logs touch "_sys-info.log"