Bug 1366795
| Summary: | Build Logs Proxy Usernames and Passwords that might be sensitive | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Eric Rich <erich> |
| Component: | ImageStreams | Assignee: | Ben Parees <bparees> |
| Status: | CLOSED ERRATA | QA Contact: | Wang Haoran <haowang> |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | 3.2.1 | CC: | aos-bugs, bparees, dmoessne, dyan, hhorak, jokerman, mbarrett, mmccomas, smunilla, stwalter, vwalek |
| Target Milestone: | --- | Keywords: | Reopened |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: |
Cause: Proxy values are logged during builds.
Consequence: Proxy values that contain user credentials are exposed to anyone who can view build logs.
Fix: Credentials that are part of proxy values(e.g. http://user:password@proxy.com) will be redacted from the proxy value being logged.
Result: Proxy credentials will no longer be exposed in build logs.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-08-10 05:15:47 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Eric Rich
2016-08-12 20:43:01 UTC
if you have access to the build, you have access to the proxy configuration, whether via logs or just looking at the build pod definition, it's not possible to hide that information. *** Bug 1428476 has been marked as a duplicate of this bug. *** changes to s2i are here: https://github.com/openshift/source-to-image/pull/721 will need to bump into origin and probably make additional changes in origin to complete this. PR for origin: https://github.com/openshift/origin/pull/13751 Verified openshift v3.6.88 kubernetes v1.6.1+5115d708d7 # oc new-build openshift/nodejs:4\~https://github.com/openshift/nodejs-ex -e http_proxy\=http://user:passwd@172.30.207.77:3128 -e https_proxy\=http://user:passwd@172.30.207.77:3128 -e HTTP_PROXY\=http://user:passwd@172.30.207.77:3128 -e HTTPS_PROXY\=http://user:passwd@172.30.207.77:3128 # oc logs -f bc/nodejs-ex Cloning "https://github.com/openshift/nodejs-ex" ... Commit: 3d44de3ba8fef0b2baca4ddd001c0db286ea4cd3 (Merge pull request #117 from openshift/revert-112-revert-111-nodejs6) Author: Ben Parees <bparees.github.com> Date: Tue May 23 15:54:29 2017 -0400 Using HTTP proxy http://redacted@172.30.207.77:3128 and HTTPS proxy http://redacted@172.30.207.77:3128 for script download doesn't show user and password in build log, so move to verified But like comment13 mentioned, should also update language images, otherwise it will still show proxy user and password Hi, Honza please check comment13 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2017:1716 |