Skip to content

Commit

Permalink
[tls] update CA/cert default duration
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
stuggi committed Apr 26, 2024
1 parent ab4f6ff commit e342f44
Show file tree
Hide file tree
Showing 7 changed files with 61 additions and 41 deletions.
16 changes: 8 additions & 8 deletions apis/bases/core.openstack.org_openstackcontrolplanes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17103,27 +17103,27 @@ spec:
default:
ingress:
ca:
duration: 43800h
duration: 87600h
cert:
duration: 8760h
duration: 10950h
enabled: true
podLevel:
enabled: true
internal:
ca:
duration: 43800h
duration: 87600h
cert:
duration: 8760h
duration: 10950h
libvirt:
ca:
duration: 43800h
duration: 87600h
cert:
duration: 17520h
duration: 43800h
ovn:
ca:
duration: 43800h
duration: 87600h
cert:
duration: 8760h
duration: 10950h
properties:
caBundleSecretName:
type: string
Expand Down
2 changes: 1 addition & 1 deletion apis/core/v1beta1/openstackcontrolplane_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ type OpenStackControlPlaneSpec struct {

// +kubebuilder:validation:Optional
// +operator-sdk:csv:customresourcedefinitions:type=spec
// +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"}}}}
// +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"}}}}
// TLS - Parameters related to the TLS
TLS TLSSection `json:"tls"`

Expand Down
16 changes: 8 additions & 8 deletions config/crd/bases/core.openstack.org_openstackcontrolplanes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17103,27 +17103,27 @@ spec:
default:
ingress:
ca:
duration: 43800h
duration: 87600h
cert:
duration: 8760h
duration: 10950h
enabled: true
podLevel:
enabled: true
internal:
ca:
duration: 43800h
duration: 87600h
cert:
duration: 8760h
duration: 10950h
libvirt:
ca:
duration: 43800h
duration: 87600h
cert:
duration: 17520h
duration: 43800h
ovn:
ca:
duration: 43800h
duration: 87600h
cert:
duration: 8760h
duration: 10950h
properties:
caBundleSecretName:
type: string
Expand Down
17 changes: 11 additions & 6 deletions tests/kuttl/common/assert-sample-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -174,22 +174,27 @@ spec:
tls:
ingress:
ca:
duration: 43800h0m0s
duration: 87600h0m0s
cert:
duration: 8760h0m0s
duration: 10950h0m0s
enabled: true
podLevel:
enabled: true
internal:
ca:
duration: 43800h0m0s
duration: 87600h0m0s
cert:
duration: 8760h0m0s
ovn:
duration: 10950h0m0s
libvirt:
ca:
duration: 87600h0m0s
cert:
duration: 43800h0m0s
ovn:
ca:
duration: 87600h0m0s
cert:
duration: 8760h0m0s
duration: 10950h0m0s
status:
conditions:
- message: Setup complete
Expand Down
17 changes: 11 additions & 6 deletions tests/kuttl/tests/collapsed/01-assert-collapsed-cell.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -127,22 +127,27 @@ spec:
tls:
ingress:
ca:
duration: 43800h0m0s
duration: 87600h0m0s
cert:
duration: 8760h0m0s
duration: 10950h0m0s
enabled: true
podLevel:
enabled: true
internal:
ca:
duration: 43800h0m0s
duration: 87600h0m0s
cert:
duration: 8760h0m0s
ovn:
duration: 10950h0m0s
libvirt:
ca:
duration: 87600h0m0s
cert:
duration: 43800h0m0s
ovn:
ca:
duration: 87600h0m0s
cert:
duration: 8760h0m0s
duration: 10950h0m0s
status:
conditions:
- message: Setup complete
Expand Down
17 changes: 11 additions & 6 deletions tests/kuttl/tests/galera-3replicas/01-assert-galera-3replicas.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -130,22 +130,27 @@ spec:
tls:
ingress:
ca:
duration: 43800h0m0s
duration: 87600h0m0s
cert:
duration: 8760h0m0s
duration: 10950h0m0s
enabled: true
podLevel:
enabled: true
internal:
ca:
duration: 43800h0m0s
duration: 87600h0m0s
cert:
duration: 8760h0m0s
ovn:
duration: 10950h0m0s
libvirt:
ca:
duration: 87600h0m0s
cert:
duration: 43800h0m0s
ovn:
ca:
duration: 87600h0m0s
cert:
duration: 8760h0m0s
duration: 10950h0m0s
status:
conditions:
- message: Setup complete
Expand Down
17 changes: 11 additions & 6 deletions tests/kuttl/tests/galera-basic/01-assert-galera.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -149,22 +149,27 @@ spec:
tls:
ingress:
ca:
duration: 43800h0m0s
duration: 87600h0m0s
cert:
duration: 8760h0m0s
duration: 10950h0m0s
enabled: true
podLevel:
enabled: true
internal:
ca:
duration: 43800h0m0s
duration: 87600h0m0s
cert:
duration: 8760h0m0s
ovn:
duration: 10950h0m0s
libvirt:
ca:
duration: 87600h0m0s
cert:
duration: 43800h0m0s
ovn:
ca:
duration: 87600h0m0s
cert:
duration: 8760h0m0s
duration: 10950h0m0s
status:
conditions:
- message: Setup complete
Expand Down

0 comments on commit e342f44

Please sign in to comment.