Skip to content

Commit

Permalink
[NVSHAS-9576] Clear password field for registry data when user use co…
Browse files Browse the repository at this point in the history
…ntoller mode with Jenkins to scan
  • Loading branch information
pohanhuangtw committed Oct 24, 2024
1 parent ec59d7a commit f8b22d1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions controller/rest/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,8 @@ func handlerScanRepositoryReq(w http.ResponseWriter, r *http.Request, ps httprou
w.WriteHeader(http.StatusNotModified)
} else {
ret := result.(*repoScanResult)
// Clear password field for registry data
data.Request.Password = ""
if ret.errCode == api.RESTErrClusterRPCError {
restRespError(w, http.StatusInternalServerError, ret.errCode)
} else if ret.errCode != 0 {
Expand Down

0 comments on commit f8b22d1

Please sign in to comment.