Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

chore: update security context documentation and defaults for Infisical chart

Victor Hugo dos Santosbd029d74c4b8
diff --git a/helm-charts/infisical-standalone-postgres/CHANGELOG.md b/helm-charts/infisical-standalone-postgres/CHANGELOG.md
index cebe8ba0f6..994140b923 100644
--- a/helm-charts/infisical-standalone-postgres/CHANGELOG.md
+++ b/helm-charts/infisical-standalone-postgres/CHANGELOG.md
@@ -1,10 +1,10 @@
## 1.10.0 (July 3, 2026)
Changes:
-* Added configurable `securityContext` for the Infisical app pod and container via `infisical.podSecurityContext` and `infisical.containerSecurityContext`. This allows the chart to run under the Kubernetes Pod Security "restricted" standard without external mutation.
-* The same `infisical.podSecurityContext` / `infisical.containerSecurityContext` values are also applied to the auto-bootstrap Job (`infisical.autoBootstrap.enabled`) and its init container, so a full install (including auto-bootstrap) is admitted in a `restricted`-enforced namespace.
-* Both keys ship with hardened, secure-by-default values that match the image's non-root `USER 1001`: pod defaults set `runAsNonRoot: true`, `runAsUser: 1001`, `fsGroup: 1001`, `seccompProfile.type: RuntimeDefault`; container defaults set `allowPrivilegeEscalation: false`, `capabilities.drop: ["ALL"]`, `runAsNonRoot: true`, `runAsUser: 1001`.
-* `containerSecurityContext.readOnlyRootFilesystem` is kept `false` by default because the Node.js app writes temporary files. To enable it, mount `emptyDir` volumes for the app's writable paths (e.g. `/tmp`) via `infisical.extraVolumes` / `infisical.extraVolumeMounts`.
-* This change is backwards compatible, but the pod-spec change triggers a one-time rollout on upgrade. Set either key to `null` to render a pod spec without that security context block.
+* Added configurable `securityContext` via `infisical.podSecurityContext` and `infisical.containerSecurityContext`, with secure defaults so the Infisical Deployment and the auto-bootstrap Job run under the Kubernetes Pod Security "restricted" standard out of the box.
+* All hardening required by `restricted` lives in `containerSecurityContext`, so it applies only to Infisical's own containers. `podSecurityContext` sets just `fsGroup: 1001`, so your `extraContainers` and `extraInitContainers` keep their original user and are not forced to UID 1001.
+* `readOnlyRootFilesystem` stays `false` by default since the app writes temporary files. To enable it, mount `emptyDir` volumes for writable paths like `/tmp` via `infisical.extraVolumes` and `infisical.extraVolumeMounts`.
+* The bundled `ingress-nginx` subchart is not `restricted`-compliant by default. To run the whole release under `restricted`, disable it, move it to another namespace, or add your own restricted-safe controller overrides.
+* Backwards compatible. Upgrading triggers a one-time pod rollout. Set either key to `null` to omit its security context block.
## 1.9.0 (May 28, 2026)
Changes:
diff --git a/helm-charts/infisical-standalone-postgres/README.md b/helm-charts/infisical-standalone-postgres/README.md
index 8808eec555..d64e4455f2 100644
--- a/helm-charts/infisical-standalone-postgres/README.md
+++ b/helm-charts/infisical-standalone-postgres/README.md
@@ -18,7 +18,7 @@ A helm chart to deploy Infisical
|-----|------|---------|-------------|
| fullnameOverride | string | `""` | Overrides the full name of the release, affecting resource names |
| infisical.affinity | object | `{}` | Node affinity settings for pod placement |
-| infisical.containerSecurityContext | object | `{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":false,"runAsNonRoot":true,"runAsUser":1001}` | Container-level security context applied to the Infisical container. Secure by default. `readOnlyRootFilesystem` is kept `false` because the Node.js app writes temporary files; to enable it, mount `emptyDir` volumes for the app's writable paths via `infisical.extraVolumes` / `infisical.extraVolumeMounts`. Set to `null` to omit the block. |
+| infisical.containerSecurityContext | object | `{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":false,"runAsNonRoot":true,"runAsUser":1001,"seccompProfile":{"type":"RuntimeDefault"}}` | Container-level security context for Infisical's containers, including the bootstrap Job. Secure by default and compliant with the Pod Security "restricted" standard on its own. `readOnlyRootFilesystem` stays `false` because the app writes temporary files; to enable it, mount `emptyDir` volumes for writable paths like `/tmp` via `infisical.extraVolumes` and `infisical.extraVolumeMounts`. Set to `null` to omit. |
| infisical.databaseSchemaMigrationJob.image.pullPolicy | string | `"IfNotPresent"` | Pulls image only if not present on the node |
| infisical.databaseSchemaMigrationJob.image.repository | string | `"ghcr.io/groundnuty/k8s-wait-for"` | Image repository for migration wait job |
| infisical.databaseSchemaMigrationJob.image.tag | string | `"no-root-v2.0"` | Image tag version |
@@ -37,7 +37,7 @@ A helm chart to deploy Infisical
| infisical.kubeSecretRef | string | `"infisical-secrets"` | Kubernetes Secret reference containing Infisical root credentials |
| infisical.name | string | `"infisical"` | |
| infisical.podAnnotations | object | `{}` | Custom annotations for Infisical pods |
-| infisical.podSecurityContext | object | `{"fsGroup":1001,"runAsNonRoot":true,"runAsUser":1001,"seccompProfile":{"type":"RuntimeDefault"}}` | Pod-level security context applied to the Infisical pod. Secure by default; matches the image's non-root `USER 1001`. Set to `null` to omit the block. |
+| infisical.podSecurityContext | object | `{"fsGroup":1001}` | Pod-level security context for the Infisical pod. Sets only `fsGroup` so mounted volumes are writable by the non-root user. Other hardening lives in `containerSecurityContext`, so `extraContainers` and `extraInitContainers` keep their original user. Set to `null` to omit. |
| 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 |
diff --git a/helm-charts/infisical-standalone-postgres/values.yaml b/helm-charts/infisical-standalone-postgres/values.yaml
index 1b54c51c3b..90b38de28d 100644
--- a/helm-charts/infisical-standalone-postgres/values.yaml
+++ b/helm-charts/infisical-standalone-postgres/values.yaml
@@ -99,24 +99,24 @@ infisical:
# -- value: /etc/ssl/certs/ca-certificates.crt
extraEnv: []
- # -- Pod-level security context applied to the Infisical pod. Secure by default.
- # -- The Infisical image runs as non-root UID 1001 (see Dockerfile `USER 1001`).
+ # -- Pod-level security context for the Infisical pod. Sets only `fsGroup` so mounted volumes
+ # -- are writable by the non-root user. Other hardening lives in `containerSecurityContext`,
+ # -- so `extraContainers` and `extraInitContainers` keep their original user. Set to `null` to omit.
podSecurityContext:
- runAsNonRoot: true
- runAsUser: 1001
fsGroup: 1001
- seccompProfile:
- type: RuntimeDefault
- # -- Container-level security context applied to the Infisical container. Secure by default.
- # -- `readOnlyRootFilesystem` is kept false because the Node.js app writes temporary files.
- # -- To enable it, mount emptyDir volumes for the app's writable paths (e.g. /tmp) via
- # -- `infisical.extraVolumes` / `infisical.extraVolumeMounts`.
+ # -- Container-level security context for Infisical's containers, including the bootstrap Job.
+ # -- Secure by default and compliant with the Pod Security "restricted" standard on its own.
+ # -- `readOnlyRootFilesystem` stays false because the app writes temporary files; to enable it,
+ # -- mount emptyDir volumes for writable paths like /tmp via `infisical.extraVolumes` and
+ # -- `infisical.extraVolumeMounts`. Set to `null` to omit.
containerSecurityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: false
runAsNonRoot: true
runAsUser: 1001
+ seccompProfile:
+ type: RuntimeDefault
capabilities:
drop: ["ALL"]