We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 37f1651 + 377a935 commit 55ffb15Copy full SHA for 55ffb15
1 file changed
cmd/main.go
@@ -90,14 +90,14 @@ func main() {
90
// Rapid Reset CVEs. For more information see:
91
// - https://github.com/advisories/GHSA-qppj-fm5r-hxr3
92
// - https://github.com/advisories/GHSA-4374-p667-p6c8
93
- disableHTTP2 := func(c *tls.Config) {
94
- setupLog.Info("disabling http/2")
95
- c.NextProtos = []string{"http/1.1"}
96
- }
97
-
98
- if !enableHTTP2 {
99
- tlsOpts = append(tlsOpts, disableHTTP2)
100
+ tlsOpts = append(tlsOpts, func(c *tls.Config) {
+ setupLog.Info("enforcing minimum TLS version 1.3")
+ c.MinVersion = tls.VersionTLS13
+ if !enableHTTP2 {
+ setupLog.Info("disabling http/2")
+ c.NextProtos = []string{"http/1.1"}
+ }
+ })
101
102
webhookServer := webhook.NewServer(webhook.Options{
103
TLSOpts: tlsOpts,
0 commit comments