Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Safer logging #448

Merged
merged 2 commits into from Oct 20, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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