Skip to content

Commit 8fe75b4

Browse files
authored
conceal http/s proxy value for logging when credential is present in the proxy (#310)
1 parent af62125 commit 8fe75b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

imagetool/src/main/java/com/oracle/weblogic/imagetool/cli/menu/CommonOptions.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ BuildCommand getInitialBuildCmd(String contextFolder) {
125125
.tag(imageTag)
126126
.network(buildNetwork)
127127
.pull(buildPull)
128-
.buildArg("http_proxy", httpProxyUrl)
129-
.buildArg("https_proxy", httpsProxyUrl)
128+
.buildArg("http_proxy", httpProxyUrl, httpProxyUrl != null && httpProxyUrl.contains("@"))
129+
.buildArg("https_proxy", httpsProxyUrl, httpsProxyUrl != null && httpsProxyUrl.contains("@"))
130130
.buildArg("no_proxy", nonProxyHosts);
131131

132132
if (dockerPath != null && Files.isExecutable(dockerPath)) {

0 commit comments

Comments
 (0)