Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion authority/config/tls_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ func (t *TLSOptions) TLSConfig() *tls.Config {
rs = tls.RenegotiateNever
}

//nolint:gosec // default MinVersion 1.2, if defined but empty 1.3 is used
return &tls.Config{
CipherSuites: t.CipherSuites.Value(),
MinVersion: t.MinVersion.Value(),
Expand Down
4 changes: 2 additions & 2 deletions authority/poolhttp/poolhttp.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ func (c *Client) Get(u string) (resp *http.Response, err error) {
// as redirects, cookies, auth) as configured on the client.
func (c *Client) Do(req *http.Request) (resp *http.Response, err error) {
if hc := c.getClient(); hc != nil {
resp, err = hc.Do(req) //nolint:gosec // intentional HTTP request to configured endpoint
resp, err = hc.Do(req)
c.pool.Put(hc)
} else {
resp, err = http.DefaultClient.Do(req) //nolint:gosec // intentional HTTP request to configured endpoint
resp, err = http.DefaultClient.Do(req)
}

return
Expand Down
2 changes: 1 addition & 1 deletion ca/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func enforceRequestID(r *http.Request) {
func (c *uaClient) Do(req *http.Request) (*http.Response, error) {
req.Header.Set("User-Agent", UserAgent)
enforceRequestID(req)
return c.Client.Do(req) //nolint:gosec // request to user-configured CA server
return c.Client.Do(req)
}

// RetryFunc defines the method used to retry a request. If it returns true, the
Expand Down
Loading