diff --git a/external/opensearch/opensearch.go b/external/opensearch/opensearch.go index ba210c0..fd8d419 100644 --- a/external/opensearch/opensearch.go +++ b/external/opensearch/opensearch.go @@ -7,6 +7,7 @@ import ( "io" "net/http" "strconv" + "crypto/tls" ) var ErrNotFound = errors.New("Resource not found") @@ -17,8 +18,12 @@ type Client struct { } func NewClient(host string) *Client { + tr := &http.Transport{ + TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, + } + client := &http.Client{Transport: tr} return &Client{ - httpClient: http.DefaultClient, + httpClient: client, Host: host, } }