Skip to content

Commit fc28122

Browse files
committed
tls, flags, config: Set default version to TLS 1.3
Set the TLS minimal version default value to 1.3. Remove redundent the flag occurances in manifests. Signed-off-by: Or Mergi <ormergi@redhat.com>
1 parent 2bc3ed8 commit fc28122

File tree

4 files changed

+4
-7
lines changed

4 files changed

+4
-7
lines changed

cmd/manager/main.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,12 +158,12 @@ func runKubemacpoolManager() {
158158
flag.StringVar(&metricsAddr, "metrics-addr", ":8443", "The address the metric endpoint binds to.")
159159
flag.StringVar(&logType, "v", "production", "Log type (debug/production).")
160160
flag.IntVar(&waitingTime, names.WAIT_TIME_ARG, 600, "waiting time to release the mac if object was not created")
161-
flag.StringVar(&tlsMinVersion, "tls-min-version", "", "Minimum TLS version. "+
161+
flag.StringVar(&tlsMinVersion, "tls-min-version", "VersionTLS13", "Minimum TLS version. "+
162162
"Supported values are tls package constants names (e.g. VersionTLS13), please see "+
163-
"https://pkg.go.dev/crypto/tls#pkg-constants")
164-
flag.StringVar(&tlsCiphers, "tls-cipher-suites", "", "Comma-separated list of TLS cipher suite names."+
163+
"https://pkg.go.dev/crypto/tls#pkg-constants.")
164+
flag.StringVar(&tlsCiphers, "tls-cipher-suites", "", "Comma-separated list of TLS cipher suite names. "+
165165
"Supported values are tls package constants names (e.g. TLS_AES_128_GCM_SHA256), please see "+
166-
"https://pkg.go.dev/crypto/tls#pkg-constants"+
166+
"https://pkg.go.dev/crypto/tls#pkg-constants. "+
167167
"When 'min-tls-version' is 'VersionTLS13', cipher suites are selected by the runtime.")
168168
flag.Parse()
169169

config/default/manager/manager.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ spec:
8585
args:
8686
- "--v=production"
8787
- "--wait-time=300"
88-
- "--tls-min-version=VersionTLS13"
8988
securityContext:
9089
allowPrivilegeEscalation: false
9190
capabilities:

config/release/kubemacpool.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,6 @@ spec:
275275
- args:
276276
- --v=production
277277
- --wait-time=300
278-
- --tls-min-version=VersionTLS13
279278
command:
280279
- /manager
281280
env:

config/test/kubemacpool.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,6 @@ spec:
276276
- args:
277277
- --v=debug
278278
- --wait-time=300
279-
- --tls-min-version=VersionTLS13
280279
command:
281280
- /manager
282281
env:

0 commit comments

Comments
 (0)