feat(sources): add sources and workflows to the backend BE-12919 (#2666)
This commit is contained in:
@@ -120,9 +120,8 @@ func (handler *Handler) stackAssociate(w http.ResponseWriter, r *http.Request) *
|
||||
|
||||
stack.ResourceControl = resourceControl
|
||||
|
||||
if stack.GitConfig != nil && stack.GitConfig.Authentication != nil && stack.GitConfig.Authentication.Password != "" {
|
||||
// sanitize password in the http response to minimise possible security leaks
|
||||
stack.GitConfig.Authentication.Password = ""
|
||||
if err := fillStackGitConfig(handler.DataStore, stack); err != nil {
|
||||
return httperror.InternalServerError("Unable to load git config for stack", err)
|
||||
}
|
||||
|
||||
return response.JSON(w, stack)
|
||||
|
||||
Reference in New Issue
Block a user