Skip to content

Commit 9bb7f2a

Browse files
committed
[tls] update CA/cert default duration
* CAs to be valid for 10 years * libvirt certs valid for 5 years * all other certs valid for 15months. Default renewBefore is 90days With 15monts the certs start to get rotated after one year. Jira: OSPRH-6552
1 parent ab4f6ff commit 9bb7f2a

7 files changed

Lines changed: 61 additions & 41 deletions

File tree

‎apis/bases/core.openstack.org_openstackcontrolplanes.yaml‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17103,27 +17103,27 @@ spec:
1710317103
default:
1710417104
ingress:
1710517105
ca:
17106-
duration: 43800h
17106+
duration: 87600h
1710717107
cert:
17108-
duration: 8760h
17108+
duration: 10950h
1710917109
enabled: true
1711017110
podLevel:
1711117111
enabled: true
1711217112
internal:
1711317113
ca:
17114-
duration: 43800h
17114+
duration: 87600h
1711517115
cert:
17116-
duration: 8760h
17116+
duration: 10950h
1711717117
libvirt:
1711817118
ca:
17119-
duration: 43800h
17119+
duration: 87600h
1712017120
cert:
17121-
duration: 17520h
17121+
duration: 43800h
1712217122
ovn:
1712317123
ca:
17124-
duration: 43800h
17124+
duration: 87600h
1712517125
cert:
17126-
duration: 8760h
17126+
duration: 10950h
1712717127
properties:
1712817128
caBundleSecretName:
1712917129
type: string

‎apis/core/v1beta1/openstackcontrolplane_types.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ type OpenStackControlPlaneSpec struct {
8080

8181
// +kubebuilder:validation:Optional
8282
// +operator-sdk:csv:customresourcedefinitions:type=spec
83-
// +kubebuilder:default={ingress: {enabled: true, ca: {duration: "43800h"}, cert: {duration: "8760h"}}, podLevel: {enabled: true, internal:{ca: {duration: "43800h"}, cert: {duration: "8760h"}}, libvirt: {ca: {duration: "43800h"}, cert: {duration: "17520h"}}, ovn: {ca: {duration: "43800h"}, cert: {duration: "8760h"}}}}
83+
// +kubebuilder:default={ingress: {enabled: true, ca: {duration: "87600h"}, cert: {duration: "10950h"}}, podLevel: {enabled: true, internal:{ca: {duration: "87600h"}, cert: {duration: "10950h"}}, libvirt: {ca: {duration: "87600h"}, cert: {duration: "43800h"}}, ovn: {ca: {duration: "87600h"}, cert: {duration: "10950h"}}}}
8484
// TLS - Parameters related to the TLS
8585
TLS TLSSection `json:"tls"`
8686

‎config/crd/bases/core.openstack.org_openstackcontrolplanes.yaml‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17103,27 +17103,27 @@ spec:
1710317103
default:
1710417104
ingress:
1710517105
ca:
17106-
duration: 43800h
17106+
duration: 87600h
1710717107
cert:
17108-
duration: 8760h
17108+
duration: 10950h
1710917109
enabled: true
1711017110
podLevel:
1711117111
enabled: true
1711217112
internal:
1711317113
ca:
17114-
duration: 43800h
17114+
duration: 87600h
1711517115
cert:
17116-
duration: 8760h
17116+
duration: 10950h
1711717117
libvirt:
1711817118
ca:
17119-
duration: 43800h
17119+
duration: 87600h
1712017120
cert:
17121-
duration: 17520h
17121+
duration: 43800h
1712217122
ovn:
1712317123
ca:
17124-
duration: 43800h
17124+
duration: 87600h
1712517125
cert:
17126-
duration: 8760h
17126+
duration: 10950h
1712717127
properties:
1712817128
caBundleSecretName:
1712917129
type: string

‎tests/kuttl/common/assert-sample-deployment.yaml‎

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -174,22 +174,27 @@ spec:
174174
tls:
175175
ingress:
176176
ca:
177-
duration: 43800h0m0s
177+
duration: 87600h0m0s
178178
cert:
179-
duration: 8760h0m0s
179+
duration: 10950h0m0s
180180
enabled: true
181181
podLevel:
182182
enabled: true
183183
internal:
184184
ca:
185-
duration: 43800h0m0s
185+
duration: 87600h0m0s
186186
cert:
187-
duration: 8760h0m0s
188-
ovn:
187+
duration: 10950h0m0s
188+
libvirt:
189189
ca:
190+
duration: 87600h0m0s
191+
cert:
190192
duration: 43800h0m0s
193+
ovn:
194+
ca:
195+
duration: 87600h0m0s
191196
cert:
192-
duration: 8760h0m0s
197+
duration: 10950h0m0s
193198
status:
194199
conditions:
195200
- message: Setup complete

‎tests/kuttl/tests/collapsed/01-assert-collapsed-cell.yaml‎

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -127,22 +127,27 @@ spec:
127127
tls:
128128
ingress:
129129
ca:
130-
duration: 43800h0m0s
130+
duration: 87600h0m0s
131131
cert:
132-
duration: 8760h0m0s
132+
duration: 10950h0m0s
133133
enabled: true
134134
podLevel:
135135
enabled: true
136136
internal:
137137
ca:
138-
duration: 43800h0m0s
138+
duration: 87600h0m0s
139139
cert:
140-
duration: 8760h0m0s
141-
ovn:
140+
duration: 10950h0m0s
141+
libvirt:
142142
ca:
143+
duration: 87600h0m0s
144+
cert:
143145
duration: 43800h0m0s
146+
ovn:
147+
ca:
148+
duration: 87600h0m0s
144149
cert:
145-
duration: 8760h0m0s
150+
duration: 10950h0m0s
146151
status:
147152
conditions:
148153
- message: Setup complete

‎tests/kuttl/tests/galera-3replicas/01-assert-galera-3replicas.yaml‎

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -130,22 +130,27 @@ spec:
130130
tls:
131131
ingress:
132132
ca:
133-
duration: 43800h0m0s
133+
duration: 87600h0m0s
134134
cert:
135-
duration: 8760h0m0s
135+
duration: 10950h0m0s
136136
enabled: true
137137
podLevel:
138138
enabled: true
139139
internal:
140140
ca:
141-
duration: 43800h0m0s
141+
duration: 87600h0m0s
142142
cert:
143-
duration: 8760h0m0s
144-
ovn:
143+
duration: 10950h0m0s
144+
libvirt:
145145
ca:
146+
duration: 87600h0m0s
147+
cert:
146148
duration: 43800h0m0s
149+
ovn:
150+
ca:
151+
duration: 87600h0m0s
147152
cert:
148-
duration: 8760h0m0s
153+
duration: 10950h0m0s
149154
status:
150155
conditions:
151156
- message: Setup complete

‎tests/kuttl/tests/galera-basic/01-assert-galera.yaml‎

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -149,22 +149,27 @@ spec:
149149
tls:
150150
ingress:
151151
ca:
152-
duration: 43800h0m0s
152+
duration: 87600h0m0s
153153
cert:
154-
duration: 8760h0m0s
154+
duration: 10950h0m0s
155155
enabled: true
156156
podLevel:
157157
enabled: true
158158
internal:
159159
ca:
160-
duration: 43800h0m0s
160+
duration: 87600h0m0s
161161
cert:
162-
duration: 8760h0m0s
163-
ovn:
162+
duration: 10950h0m0s
163+
libvirt:
164164
ca:
165+
duration: 87600h0m0s
166+
cert:
165167
duration: 43800h0m0s
168+
ovn:
169+
ca:
170+
duration: 87600h0m0s
166171
cert:
167-
duration: 8760h0m0s
172+
duration: 10950h0m0s
168173
status:
169174
conditions:
170175
- message: Setup complete

0 commit comments

Comments
 (0)