mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-24 01:27:49 +01:00
Fix the vulnerability issues in the job service code
'Errors unhandled' in 'jobservice/job/impl/logger/job_logger.go' 'TLS InsecureSkipVerify set true' in 'jobservice/opm/hook_client.go'
This commit is contained in:
parent
75e6b5d91c
commit
b5b728bee3
@ -34,7 +34,7 @@ func New(logPath string, level string) *JobLogger {
|
||||
//Implements logger.Closer interface
|
||||
func (jl *JobLogger) Close() error {
|
||||
if jl.streamRef != nil {
|
||||
jl.streamRef.Close()
|
||||
return jl.streamRef.Close()
|
||||
}
|
||||
|
||||
return nil
|
||||
|
@ -3,7 +3,6 @@
|
||||
package opm
|
||||
|
||||
import (
|
||||
"crypto/tls"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
@ -38,9 +37,6 @@ func NewHookClient() *HookClient {
|
||||
Transport: &http.Transport{
|
||||
MaxIdleConns: maxIdleConnections,
|
||||
IdleConnTimeout: idleConnectionTimeout,
|
||||
TLSClientConfig: &tls.Config{
|
||||
InsecureSkipVerify: true,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user