Skip to content

Commit

Permalink
Merge pull request #448 from yast/safer_logging
Browse files Browse the repository at this point in the history
Safer logging
  • Loading branch information
jreidinger committed Oct 20, 2016
2 parents 242bd8b + 8ed9784 commit 5b140ae
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
7 changes: 7 additions & 0 deletions package/yast2-installation.changes
@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Oct 20 09:52:00 UTC 2016 - jreidinger@suse.com

- more robust password filtering in y2start.log
(bsc#798966)
- 3.2.5

-------------------------------------------------------------------
Thu Oct 13 14:15:23 UTC 2016 - igonzalezsosa@suse.com

Expand Down
2 changes: 1 addition & 1 deletion package/yast2-installation.spec
Expand Up @@ -17,7 +17,7 @@


Name: yast2-installation
Version: 3.2.4
Version: 3.2.5
Release: 0

BuildRoot: %{_tmppath}/%{name}-%{version}-build
Expand Down
4 changes: 1 addition & 3 deletions startup/common/misc.sh
Expand Up @@ -263,9 +263,7 @@ function log_export()
IFS="
"
for i in `export` ; do
i=${i//Password=*/Password=\"<Password> (sensitive information)\"}
i=${i//RepoURL=*/RepoURL=\"<RepoURL (may contain sensitive information)>\"}
i=${i//ZyppRepoURL=*/ZyppRepoURL=\"<ZyppRepoURL (may contain sensitive information)>\"}
i=$(sed 's/\([^[:space:]]*\(repourl\|password\)\)=.*/\1="<\1 may contain sensitive information>"/i' <<< $i)
log "\t$i"
done
IFS=$IFS_SAVE
Expand Down

0 comments on commit 5b140ae

Please sign in to comment.