Skip to content

Commit

Permalink
config: update minimum TLS version for server
Browse files Browse the repository at this point in the history
The config is used both when setting up the HTTP API and
for the notifier's Deliverer.

Backports: #1945
Signed-off-by: Hank Donnay <[email protected]>
Signed-off-by: crozzy <[email protected]>
(cherry picked from commit 18aa1b3)
  • Loading branch information
crozzy authored and hdonnay committed Feb 26, 2024
1 parent 9517c7b commit 6ba3213
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions config/tls.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ func (t *TLS) Config() (*tls.Config, error) {
return nil, fmt.Errorf("failed to read x509 cert and key pair: %w", err)
}
cfg.Certificates = append(cfg.Certificates, cert)
cfg.MinVersion = tls.VersionTLS12

return &cfg, nil
}
Expand Down

0 comments on commit 6ba3213

Please sign in to comment.