Skip to content

Commit

Permalink
Merge pull request k8snetworkplumbingwg#67 from s1061123/cipher-harde…
Browse files Browse the repository at this point in the history
…ning

Update cipher for security hardenings
  • Loading branch information
dougbtv authored Oct 18, 2023
2 parents 5aa3c00 + 6b7eabd commit adb8e47
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions cmd/webhook/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,12 @@ func main() {
Addr: fmt.Sprintf("%s:%d", *address, *port),
TLSConfig: &tls.Config{
GetCertificate: keyPair.GetCertificateFunc(),
MinVersion: tls.VersionTLS12,
CipherSuites: []uint16{
tls.TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,
tls.TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,
tls.TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256,
},
},
}

Expand Down
2 changes: 1 addition & 1 deletion deployments/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ spec:
args:
- --logtostderr
- --secure-listen-address=0.0.0.0:8443
- --tls-cipher-suites=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_RSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256
- --tls-cipher-suites=TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305
- --upstream=http://127.0.0.1:9091/
- --tls-private-key-file=/etc/webhook/key.pem
- --tls-cert-file=/etc/webhook/cert.pem
Expand Down

0 comments on commit adb8e47

Please sign in to comment.