Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
fix(helm): make updatedAt rollout annotation opt-out and fix its date format
Devin AIb7a5ec1a5edd
diff --git a/docs/self-hosting/deployment-options/kubernetes-helm.mdx b/docs/self-hosting/deployment-options/kubernetes-helm.mdxindex ad31851ef3..98713b4fa5 100644--- a/docs/self-hosting/deployment-options/kubernetes-helm.mdx+++ b/docs/self-hosting/deployment-options/kubernetes-helm.mdx@@ -247,6 +247,8 @@ infisical:podAnnotations: {}# -- Custom annotations for Infisical deploymentdeploymentAnnotations: {}+ # -- Adds an `updatedAt` timestamp annotation to the Deployment and pods, so every render (each `helm upgrade` or GitOps sync) rolls the pods and picks up changes to `kubeSecretRef`. Set to `false` for GitOps tools like Argo CD, and restart with `kubectl rollout restart` after changing the secret.+ rolloutOnEveryRender: true# -- Number of pod replicas for high availabilityreplicaCount: 2diff --git a/helm-charts/infisical-standalone-postgres/CHANGELOG.md b/helm-charts/infisical-standalone-postgres/CHANGELOG.mdindex be239c58c4..92b74fbdda 100644--- a/helm-charts/infisical-standalone-postgres/CHANGELOG.md+++ b/helm-charts/infisical-standalone-postgres/CHANGELOG.md@@ -1,3 +1,9 @@+## 1.12.0 (Unreleased)+Changes:+* Added `infisical.rolloutOnEveryRender` (default `true`) to control the `updatedAt` annotation on the Infisical Deployment and pod template. The annotation is set to the render time, so every `helm upgrade`, and every Argo CD or Flux sync, rolls all pods even when nothing changed, and GitOps tools show the release as permanently out of sync. Set it to `false` to keep the pod spec stable between renders. After changing the `infisical.kubeSecretRef` secret, restart the pods with `kubectl rollout restart`.+* Fixed the `updatedAt` date format, which printed the month in place of the day of the month.+* Backwards compatible. The default keeps the current behavior. Setting the flag to `false` triggers a one-time pod rollout.+## 1.11.1 (Unreleased)Changes:* Updated the default `infisical.image.tag` value from `v0.158.0` to `v0.167.0`.diff --git a/helm-charts/infisical-standalone-postgres/Chart.yaml b/helm-charts/infisical-standalone-postgres/Chart.yamlindex 05a9f22540..c6627397fa 100644--- a/helm-charts/infisical-standalone-postgres/Chart.yaml+++ b/helm-charts/infisical-standalone-postgres/Chart.yaml@@ -7,7 +7,7 @@ type: application# This is the chart version. This version number should be incremented each time you make changes# to the chart and its templates, including the app version.# Versions are expected to follow Semantic Versioning (https://semver.org/)-version: 1.11.1+version: 1.12.0# This is the version number of the application being deployed. This version number should be# incremented each time you make changes to the application. Versions are not expected todiff --git a/helm-charts/infisical-standalone-postgres/README.md b/helm-charts/infisical-standalone-postgres/README.mdindex 613fd46bac..44ff2e8df3 100644--- a/helm-charts/infisical-standalone-postgres/README.md+++ b/helm-charts/infisical-standalone-postgres/README.md@@ -41,6 +41,7 @@ A helm chart to deploy Infisical| infisical.replicaCount | int | `2` | Number of pod replicas for high availability || infisical.resources.limits.memory | string | `"600Mi"` | Memory limit for Infisical container || infisical.resources.requests.cpu | string | `"350m"` | CPU request for Infisical container |+| infisical.rolloutOnEveryRender | bool | `true` | Adds an `updatedAt` timestamp annotation to the Deployment and pods, so every render (each `helm upgrade` or GitOps sync) rolls the pods and picks up changes to `kubeSecretRef`. Set to `false` for GitOps tools like Argo CD, and restart with `kubectl rollout restart` after changing the secret. || infisical.service.annotations | object | `{}` | Custom annotations for Infisical service || infisical.service.nodePort | string | `""` | Optional node port for service when using NodePort type || infisical.service.type | string | `"ClusterIP"` | Service type, can be changed based on exposure needs (e.g., LoadBalancer) |diff --git a/helm-charts/infisical-standalone-postgres/templates/infisical.yaml b/helm-charts/infisical-standalone-postgres/templates/infisical.yamlindex 5fbb024aca..3bed10dff8 100644--- a/helm-charts/infisical-standalone-postgres/templates/infisical.yaml+++ b/helm-charts/infisical-standalone-postgres/templates/infisical.yaml@@ -3,11 +3,15 @@ apiVersion: apps/v1kind: Deploymentmetadata:name: {{ include "infisical.fullname" . }}+ {{- if or $infisicalValues.rolloutOnEveryRender $infisicalValues.deploymentAnnotations }}annotations:- updatedAt: {{ now | date "2006-01-01 MST 15:04:05" | quote }}+ {{- if $infisicalValues.rolloutOnEveryRender }}+ updatedAt: {{ now | date "2006-01-02 MST 15:04:05" | quote }}+ {{- end }}{{- with $infisicalValues.deploymentAnnotations }}{{- toYaml . | nindent 4 }}{{- end }}+ {{- end }}labels:{{- include "infisical.labels" . | nindent 4 }}spec:@@ -19,11 +23,15 @@ spec:metadata:labels:{{- include "infisical.matchLabels" . | nindent 8 }}+ {{- if or $infisicalValues.rolloutOnEveryRender $infisicalValues.podAnnotations }}annotations:- updatedAt: {{ now | date "2006-01-01 MST 15:04:05" | quote }}+ {{- if $infisicalValues.rolloutOnEveryRender }}+ updatedAt: {{ now | date "2006-01-02 MST 15:04:05" | quote }}+ {{- end }}{{- with $infisicalValues.podAnnotations }}{{- toYaml . | nindent 8 }}{{- end }}+ {{- end }}spec:serviceAccountName: {{ include "infisical.serviceAccountName" . }}{{- with $infisicalValues.podSecurityContext }}diff --git a/helm-charts/infisical-standalone-postgres/values.yaml b/helm-charts/infisical-standalone-postgres/values.yamlindex 9b2b72c66f..248de23991 100644--- a/helm-charts/infisical-standalone-postgres/values.yaml+++ b/helm-charts/infisical-standalone-postgres/values.yaml@@ -58,6 +58,8 @@ infisical:podAnnotations: {}# -- Custom annotations for Infisical deploymentdeploymentAnnotations: {}+ # -- Adds an `updatedAt` timestamp annotation to the Deployment and pods, so every render (each `helm upgrade` or GitOps sync) rolls the pods and picks up changes to `kubeSecretRef`. Set to `false` for GitOps tools like Argo CD, and restart with `kubectl rollout restart` after changing the secret.+ rolloutOnEveryRender: true# -- Number of pod replicas for high availabilityreplicaCount: 2