Bug 1428476 - Password visible in docker pull logs
Summary: Password visible in docker pull logs
Keywords:
Status: CLOSED DUPLICATE of bug 1366795
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: ImageStreams
Version: 3.4.0
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
: ---
Assignee: Ben Parees
QA Contact: Dongbo Yan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-03-02 16:21 UTC by Vladislav Walek
Modified: 2020-12-14 08:17 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-03-03 14:44:42 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Vladislav Walek 2017-03-02 16:21:04 UTC
Description of problem:

Hello, when the pulling image in openshift using proxy, you can see the password used for that proxy.

On building a container, these credentials are shown in clear text including the password in the logfile.
This should be hidden due to security reasons.

Using HTTP proxy http://user:password@inhproxy:80 and HTTPS proxy https://user:password@inhproxy:80 for script download
Pulling image "registry.access.redhat.com/jboss-webserver-3/webserver30-tomcat8-openshift@sha256:af61377003ae10156bab89724cd16947565ce4a4f50386a2e5d57ab9f50caa22" ...
Pulling image "registry.access.redhat.com/jboss-webserver-3/webserver30-tomcat8-openshift@sha256:af61377003ae10156bab89724cd16947565ce4a4f50386a2e5d57ab9f50caa22" ...
Cloning "https://github.com/jboss-openshift/openshift-quickstarts.git" ...
	Commit:	caec20220374804b2cb3d3622a754f9091af7c57 (Fixed bug: summary is displayed instead of description (cherry picked from com..)
	Author:	...
	Date:	Tue Feb 9 22:55:09 2016 +0100

Version-Release number of selected component (if applicable):
OpenShift Container Platform 3.4.0


Additional info:

is there way to hide the password from the logs?

Comment 1 Ben Parees 2017-03-02 16:34:14 UTC
no, there is no way to prevent this output but the password is also visible in your build object and i imagine the same people who can see the build logs can see the build object.

Comment 2 Vladislav Walek 2017-03-03 07:18:41 UTC
Hello Ben,
thank you for reply. If the proxy is set up for whole environment by sysadmin and if the admin of certain project (just his project) can see the password, then it causes the security risk. Customer many times provides his environment to 3rd party, when he set up the cluster settings and leave the project to their customers.
Probably, the bug should be changed then as RFE. What do you think?
Thank you

Comment 3 Ben Parees 2017-03-03 14:44:42 UTC

*** This bug has been marked as a duplicate of bug 1366795 ***


Note You need to log in before you can comment on or make changes to this bug.