Skip to content

Commit

Permalink
Set TLS minimum version to 1.2 (#180)
Browse files Browse the repository at this point in the history
ref: https://issues.redhat.com/browse/ACM-6233

Signed-off-by: Dale Haiducek <19750917+dhaiducek@users.noreply.github.com>
Co-authored-by: Dale Haiducek <19750917+dhaiducek@users.noreply.github.com>
  • Loading branch information
openshift-cherrypick-robot and dhaiducek authored Jul 20, 2023
1 parent 691b02a commit 8709d2f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion charts/gatekeeper/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ controllerManager:
livenessTimeout: 1
priorityClassName: system-cluster-critical
disableCertRotation: false
tlsMinVersion: 1.3
tlsMinVersion: 1.2
clientCertName: ""
affinity:
podAntiAffinity:
Expand Down
2 changes: 1 addition & 1 deletion cmd/build/helmify/static/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ controllerManager:
livenessTimeout: 1
priorityClassName: system-cluster-critical
disableCertRotation: false
tlsMinVersion: 1.3
tlsMinVersion: 1.2
clientCertName: ""
affinity:
podAntiAffinity:
Expand Down
2 changes: 1 addition & 1 deletion manifest_staging/charts/gatekeeper/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ controllerManager:
livenessTimeout: 1
priorityClassName: system-cluster-critical
disableCertRotation: false
tlsMinVersion: 1.3
tlsMinVersion: 1.2
clientCertName: ""
affinity:
podAntiAffinity:
Expand Down
2 changes: 1 addition & 1 deletion pkg/webhook/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ var (
disableEnforcementActionValidation = flag.Bool("disable-enforcementaction-validation", false, "disable validation of the enforcementAction field of a constraint")
logDenies = flag.Bool("log-denies", false, "log detailed info on each deny")
emitAdmissionEvents = flag.Bool("emit-admission-events", false, "(alpha) emit Kubernetes events in gatekeeper namespace for each admission violation")
tlsMinVersion = flag.String("tls-min-version", "1.3", "minimum version of TLS supported")
tlsMinVersion = flag.String("tls-min-version", "1.2", "minimum version of TLS supported")
serviceaccount = fmt.Sprintf("system:serviceaccount:%s:%s", util.GetNamespace(), serviceAccountName)
clientCAName = flag.String("client-ca-name", "", "name of the certificate authority bundle to authenticate the Kubernetes API server requests against")
certCNName = flag.String("client-cn-name", "kube-apiserver", "expected CN name on the client certificate attached by apiserver in requests to the webhook")
Expand Down
2 changes: 1 addition & 1 deletion pkg/webhook/common_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func (w chanWriter) Write(p []byte) (n int, err error) {

func TestCongifureWebhookServer(t *testing.T) {
expectedServer := &webhook.Server{
TLSMinVersion: "1.3",
TLSMinVersion: "1.2",
}

if *clientCAName != "" {
Expand Down

0 comments on commit 8709d2f

Please sign in to comment.