Skip to content

Commit ba32f42

Browse files
authored
Adding keyttl and keycutofftime options to helm chart (#1610)
**Description of the change** Hi, this change adds the two following controller flags as options in the helm chart : - --key-ttl - --key-cutoff-time **Benefits** It allows specifying those options without having to override the default args list defined by the helm chart. Thus simplifying the early key renewal procedure when Sealed Secrets is deployed through ArgoCD for example. **Possible drawbacks** No drawback identified. **Applicable issues** Did not find an opened issue mentioning this. **Additional information** N/A Signed-off-by: rurod <[email protected]>
1 parent 91c908b commit ba32f42

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

helm/sealed-secrets/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ The command removes all the Kubernetes components associated with the chart and
9595
| `updateStatus` | Specifies whether the Sealed Secrets controller should update the status subresource | `true` |
9696
| `skipRecreate` | Specifies whether the Sealed Secrets controller should skip recreating removed secrets | `false` |
9797
| `keyrenewperiod` | Specifies key renewal period. Default 30 days | `""` |
98+
| `keyttl` | Specifies generated certificate validity duration. Default 10 years | `""` |
99+
| `keycutofftime` | Specifies a date at which the controller must generate a new key. Useful in early renewal scenarios. | `""` |
98100
| `rateLimit` | Number of allowed sustained request per second for verify endpoint | `""` |
99101
| `rateLimitBurst` | Number of requests allowed to exceed the rate limit per second for verify endpoint | `""` |
100102
| `additionalNamespaces` | List of namespaces used to manage the Sealed Secrets | `[]` |

helm/sealed-secrets/templates/deployment.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,14 @@ spec:
8282
- --key-renew-period
8383
- {{ .Values.keyrenewperiod | quote }}
8484
{{- end }}
85+
{{- if .Values.keyttl }}
86+
- --key-ttl
87+
- {{ .Values.keyttl | quote }}
88+
{{- end }}
89+
{{- if .Values.keycutofftime }}
90+
- --key-cutoff-time
91+
- {{ .Values.keycutofftime | quote }}
92+
{{- end }}
8593
{{- if .Values.rateLimit }}
8694
- --rate-limit
8795
- {{ .Values.rateLimit | quote }}

helm/sealed-secrets/values.yaml

+11
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,17 @@ skipRecreate: false
7777
## To disable use "0", with quotes!
7878
##
7979
keyrenewperiod: ""
80+
## @param keyttl Specifies the certificate validity duration. Default 10 years.
81+
## e.g for one year
82+
## keyttl: "8760h00m00s"
83+
##
84+
keyttl: ""
85+
## @param keycutofftime Specifies a date at which the controller should generate a new certificate. Useful in early key renewal scenarios.
86+
## Takes a date formated according to RFC1123. Can be obtained with the 'date -R' command on a unix system.
87+
## e.g
88+
## keycutofftime: "Mon, 14 Oct 2024 21:45:30 +0200"
89+
##
90+
keycutofftime: ""
8091
## @param rateLimit Number of allowed sustained request per second for verify endpoint
8192
##
8293
rateLimit: ""

0 commit comments

Comments
 (0)