Security & Compliance

This page describes the security posture of the Scaleout Helm chart (charts/scaleout) and its reference GKE deployment: the controls it implements and enforces, their secure defaults, and how to verify them.

The chart is secure by default — workload hardening, secret management, resource governance and input validation are enabled out of the box, and the chart runs under the Kubernetes Pod Security Standards restricted profile. TLS is required by default, and network segmentation is a single flag.

Architecture & trust boundaries

(TLS, cert-manager)         ┌──────── Kubernetes namespace ────────┐
Edge clients ─────────────► │  Ingress (nginx)                      │
Browsers / CLI / FL clients │   /api  /  /kratos /hydra (public)    │
                            │     │                                 │
Edge FL clients ── gRPC ──► │  combiner ◄─► controller ◄─► hooks    │
(JWT-authenticated)         │     api-server                        │
                            │     │  (NetworkPolicy: default-deny)   │
                            │     ▼                                 │
                            │  postgres / object-store (data tier)  │
                            └───────────────────────────────────────┘
  • Cluster entry — all external HTTP enters via the Ingress over TLS. The Kratos/Hydra public APIs are exposed; their admin APIs are reachable only in-cluster.

  • Authentication — browser/API auth is enforced by Ory Kratos (identities / sessions) and Hydra (OAuth2/OIDC); gRPC endpoints enforce JWT.

  • External FL clients → combiner — gRPC entering from outside the cluster, authenticated by JWT. It enters through a combiner Ingress on 443, where TLS is terminated.

  • Intra-cluster / data tier — segmented by NetworkPolicies (default-deny ingress).

Controls

Framework references: Pod Security Standards (PSS), the CIS Kubernetes Benchmark (CIS K8s), SOC 2 Trust Services Criteria, and ISO/IEC 27001:2022 Annex A.

Control (as implemented)

Default

Framework mapping

Run as non-root (runAsNonRoot, runAsUser ≠ 0) — all workloads

on

PSS Restricted; CIS K8s 5.2.6; SOC 2 CC6.1/CC6.3; ISO A.8.2/A.8.3

No privilege escalation (allowPrivilegeEscalation: false)

on

PSS Restricted; CIS K8s 5.2.5; SOC 2 CC6.1; ISO A.8.2

Drop ALL Linux capabilities

on

PSS Restricted; CIS K8s 5.2.8/5.2.9; SOC 2 CC6.1; ISO A.8.2

Seccomp RuntimeDefault — all pods

on

PSS Restricted; SOC 2 CC6.1/CC6.8; ISO A.8.2/A.8.31

Read-only root filesystem — app containers (writable scratch via emptyDir)

on

PSS Restricted (rec.); SOC 2 CC6.1/CC6.8; ISO A.8.2

No service-account token automount

on

CIS K8s 5.1.5/5.1.6; SOC 2 CC6.1/CC6.3; ISO A.8.2/A.8.3

Network segmentation — default-deny ingress + least-privilege allows

opt-in [1]

CIS K8s 5.3.2; SOC 2 CC6.1/CC6.6; ISO A.8.20/A.8.22

TLS in transit — certificate on the Ingress, from ingress.tls or cert-manager

on

SOC 2 CC6.7; ISO A.8.24

Authentication & authorization — Ory Kratos + Hydra (OIDC/OAuth2), gRPC JWT

on

SOC 2 CC6.1/CC6.2/CC6.3; ISO A.5.15/A.5.17/A.8.5

Secrets management — secretKeyRef; generated+retained or existingSecret; per-install Kratos JWKS; admin password never in plaintext env; external-secrets / sealed-secrets compatible

on

CIS K8s 5.4.1; SOC 2 CC6.1/CC6.3; ISO A.8.24/A.5.10

Resource requests/limits — every container

on

SOC 2 A1.1 (Availability); ISO A.8.6

Supply-chain integrity — signed images with signed SLSA provenance and SBOM (keyless cosign, see Image signatures). Optional image digest pinning. CI SAST (CodeQL), image scanning (Trivy), SBOM (Syft) + vulnerability report (Grype)

on [2]

SOC 2 CC7.1/CC8.1; ISO A.8.8/A.8.28/A.8.30

Input validation — values.schema.json validates types/enums at install

on

SOC 2 CC8.1; ISO A.8.25

Least-exposure ingress — only the public Kratos/Hydra APIs are routed; their admin APIs stay in-cluster

on

SOC 2 CC6.6; ISO A.8.20/A.8.21

Secure defaults & configuration

Concern

Default

How to harden / enable

Pod hardening

enforced

n/a (on for all workloads)

NetworkPolicies

off

networkPolicy.enabled=true (needs a policy CNI)

Ingress TLS

on

ingress.certManager.clusterIssuer or ingress.tls; ingress.behindTlsProxy=true when a load balancer in front terminates TLS

Authentication

on

Kratos/Hydra; set auth.admin.* to bootstrap an admin

Secrets

auto-generated + retained

secrets.existingSecret with external-secrets / sealed-secrets

Image pinning

tags

image.coreDigest / image.frontendDigest

Data backends

bundled in-cluster Postgres and object store

CloudNativePG (see Database with CloudNativePG) or a managed Postgres and object store (*.deploy=false)

Data protection

  • In transit (incoming): TLS terminates at the Ingress, or at a load balancer in front of it.

  • In transit (intra-cluster): NetworkPolicies restrict who can reach each service. A service mesh can add encryption of pod-to-pod traffic.

  • In transit (external object storage): the services verify the certificate of an https object storage endpoint (objectStorage.verifySSL, default true). For a store with a private CA, put its CA certificate in a Secret and name it in objectStorage.caSecret. With verifySSL=false the services log a warning at start.

  • In transit (external Postgres): every service connects to an external Postgres with TLS and verifies the server’s certificate (statestore.postgresql.sslMode, default verify-full). For a server with a private CA, such as CloudNativePG, put its CA certificate in a Secret and name it in statestore.postgresql.caSecret. sslMode=require skips the verification and sslMode=disable turns TLS off. The bundled Postgres serves no TLS, and Docker Compose always runs its own Postgres, so those connections stay plaintext inside the cluster or host.

  • At rest: persistent data (Postgres/object store) is on PersistentVolumes — encryption at rest is provided by the cluster/cloud storage class (e.g. GKE encrypts persistent disks by default). Enable etcd encryption at rest / CMEK at the cluster level for Secrets, or keep secrets in an external secret store.

  • Secrets exposure: credentials are referenced via secretKeyRef / envFrom, never baked into manifests or images. Generated values are retained across upgrades. To rotate one, update the Secret or use secrets.existingSecret with an external secret manager.

Verification

# Restricted securityContext on every workload
kubectl -n <ns> get pods -o jsonpath='{range .items[*]}{.metadata.name}{": runAsNonRoot="}{.spec.securityContext.runAsNonRoot}{"\n"}{end}'

# No service-account token mounted
kubectl -n <ns> get pod <pod> -o jsonpath='{.spec.automountServiceAccountToken}'   # false

# NetworkPolicy enforcement — a pod in another namespace is blocked from the data tier
kubectl -n other run probe --image=busybox --restart=Never --command -- \
  sh -c 'nc -w5 -z <release>-postgres.<ns> 5432 && echo OPEN || echo BLOCKED'      # BLOCKED

# TLS certificate issued for the host
kubectl -n <ns> get certificate

# Automated end-to-end (auth off + on, helm test, cross-namespace block)
charts/scaleout/test/e2e.sh --mode both

The chart’s helm test hook and test/e2e.sh are run during release validation and are reproducible on any cluster (validated on GKE with Dataplane V2).

Supply chain & vulnerability management

  • Images can be pinned by digest for immutability.

  • CI pipelines run CodeQL (SAST), Trivy (container image scanning), and Syft (SBOM) + Grype (vulnerability report) published per release.

  • The chart consumes images from a private registry; restrict pulls with imagePullSecrets.

Image signatures

Our images are signed with cosign when they are released. Signing is keyless. Sigstore issues a short-lived certificate to the GitHub Actions workflow that signs, and records each signature in its public transparency log. Thus there is no Scaleout key to distribute. A verifier trusts a signature by the workflow identity in its certificate:

  • Issuer: https://token.actions.githubusercontent.com

  • Identity: https://github.com/scaleoutsystems/scaleout/.github/workflows/publish-docker.yml@refs/tags/v<version>

Each platform image also has two signed attestations: its SLSA provenance, which names the source repository and commit, and its SBOM.

The signatures and attestations are stored in the registry next to the image, and linked to it through the OCI referrers API. Each one holds its transparency log receipt, thus verifying needs no access to the log.

Verify an image:

cosign verify \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com \
  --certificate-identity-regexp '^https://github\.com/scaleoutsystems/scaleout/\.github/workflows/publish-docker\.yml@refs/tags/v' \
  artifacts.scaleoutsystems.com/scaleout/<image>:<version>

Read the provenance of the amd64 image:

IMAGE=artifacts.scaleoutsystems.com/scaleout/<image>
DIGEST=$(docker buildx imagetools inspect --raw "$IMAGE:<version>" \
  | jq -r '.manifests[] | select(.platform.architecture == "amd64") | .digest')
cosign verify-attestation --type slsaprovenance1 \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com \
  --certificate-identity-regexp '^https://github\.com/scaleoutsystems/scaleout/' \
  "$IMAGE@$DIGEST" | jq -r .payload | base64 -d | jq .predicate

The same content is maintained in the chart repository as charts/scaleout/SECURITY.md for engineers working in the codebase. The chart includes that file, which also describes how to enforce the image signatures in Kubernetes.