Kubernetes security in Switzerland: zero trust, put into practice

Kubernetes security in Switzerland: zero trust, put into practice

SoKube brings zero trust Kubernetes security to your clusters: it audits them, closes what is open by default and puts in place controls defined as code that your auditors can verify.

Updated on

At a glance

SoKube, a consulting company based in Geneva, audits and secures Kubernetes clusters for organisations across western Switzerland, including institutions supervised by FINMA. Its approach to Kubernetes security applies zero trust: no implicit trust between services, between teams, or between people and AI agents. In practice: single sign-on to the API, least-privilege RBAC, default-deny network policies, mTLS with Cilium, Istio or Linkerd, policy as code with Kyverno or OPA Gatekeeper, and runtime detection with Tetragon or Falco. These controls apply to the Kubernetes clusters we build or to your existing ones. SoKube is a CNCF Kubernetes Certified Service Provider (KCSP).

What our audits uncover

Why Kubernetes security needs work

A cluster installed with default settings leaves doors open that teams do not see.

Everything can talk to everything

Without network policies, any pod can reach any other pod. A compromised container goes straight to the database.

Permissions that are too broad

The cluster-admin role is passed between teams, shared kubeconfigs never expire, and every pod gets an API token it does not need.

Known vulnerabilities in production

Base images that are months old run with published critical CVEs. Nobody owns patching.

The auditor asks for evidence

FINMA circular 2023/1 and the Swiss nFADP require you to show who can access what, how data is protected and how operations resume after an incident.

No visibility at runtime

A shell opened in a container, an unknown binary launched, an unusual outbound connection: nothing raises an alert.

AI agents holding the cluster keys

An agent is given an admin kubeconfig to move faster. Its actions are neither limited, isolated nor traced.

Zero trust Kubernetes security, layer by layer

Zero trust is not a product you can buy. It is built by closing each layer of the cluster, one after the other:

LayerWhat we put in place
Human accessOIDC single sign-on to the Kubernetes API, MFA, group-based permissions, no shared admin kubeconfig
Workload identityone ServiceAccount per application, API token mounted only when the application calls the API, per-service identity from the service mesh
Networkdefault-deny network policies, allowed flows opened one by one, mTLS between services
Admissionpolicy as code: signed images required, no root or privileged containers, resource limits
RuntimeeBPF-based detection of abnormal behaviour (Tetragon, Falco, NeuVector)
TraceabilityAPI audit logs kept outside the cluster and connected to monitoring
Recoveryoff-site backups, keys and emergency access, tested restores

Security rules defined as code

Every rule lives in Git, is reviewed and is applied through GitOps to every cluster. This Kyverno policy rejects any pod whose image is not signed with the company key:

apiVersion: kyverno.io/v1
kind: ClusterPolicy
metadata:
  name: require-signed-images
spec:
  rules:
    - name: verify-cosign-signature
      match:
        any:
          - resources:
              kinds: ["Pod"]
      verifyImages:
        - imageReferences: ["registry.example.ch/*"]
          failureAction: Enforce
          attestors:
            - entries:
                - keys:
                    publicKeys: |-
                      -----BEGIN PUBLIC KEY-----
                      MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE...
                      -----END PUBLIC KEY-----

The signature is added by the pipeline described on our DevSecOps and supply chain page. The cluster only trusts what went through that pipeline.

Dedicated identities for AI agents

An AI agent that diagnoses incidents needs to read the state of the cluster, not to change it or read its secrets. Its role says so explicitly:

apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  name: ai-agent-diagnostic-readonly
rules:
  - apiGroups: ["", "apps"]
    resources: ["pods", "pods/log", "events", "deployments", "replicasets"]
    verbs: ["get", "list", "watch"]

The agent runs in a dedicated namespace with restricted outbound traffic, and every call appears in the audit logs under its own name. To fix something, it opens a merge request like an engineer would. This framework lets you open your clusters to agents without handing them the keys.

Technologies we run in production

PurposeTechnologies
Networking and mTLSCilium, Istio, Linkerd
Policy as codeKyverno, OPA Gatekeeper
Runtime securityTetragon, Falco, NeuVector, Red Hat Advanced Cluster Security, Aqua Security, Sysdig
VulnerabilitiesTrivy, Snyk, JFrog Xray
SecretsHashiCorp Vault, OpenBao, External Secrets Operator
Backup and recoveryVelero, Portworx
Workload isolationgVisor, Kata Containers
FrameworksCIS Kubernetes Benchmark, NSA/CISA hardening guide, Pod Security Standards

Security is also decided upstream of the cluster and around it:

Our Kubernetes security services

Our Kubernetes security services

  1. 1
    Kubernetes security audit : cluster configuration checked against the CIS Kubernetes Benchmark and the NSA/CISA hardening guide, RBAC, network flows, images, secrets, backups. A report with ranked findings and a prioritised action plan.
  2. 2
    Zero trust architecture : authentication, workload identities, network segmentation, admission control, runtime detection and the security architecture of your disaster recovery plan (DRP).
  3. 3
    Implementation : policies, network policies, mTLS and detection rules delivered as code in your Git repository and applied through GitOps.
  4. 4
    Vulnerability management and patching : continuous scanning of images and clusters, CVE prioritisation, scheduled upgrades of clusters and base images.
  5. 5
    Level 3 support and ongoing improvements : analysis of security alerts and incidents escalated by your teams, and ongoing changes to policies and controls.
Request a security audit
How we work, in 5 steps

How we work, in 5 steps

  1. 1
    Audit and flow mapping : state of the clusters, access rights and actual traffic between services, compared with the reference frameworks.
  2. 2
    Policies in audit mode : admission rules first run in “Audit” mode: they report without blocking, and your teams fix the findings.
  3. 3
    Progressive lockdown : default deny and mTLS switched on namespace by namespace, then policies moved to “Enforce” mode.
  4. 4
    Detection and response : runtime rules, centralised API audit logs, and alerts wired into your incident procedures.
  5. 5
    Evidence and reviews : compliance reports, regular restore tests and periodic access reviews.
A recognised security partner in the ecosystem

A recognised security partner in the ecosystem

  1. 1
    Kubernetes Certified Service Provider (KCSP) : a status granted by the CNCF (Cloud Native Computing Foundation) to service companies with CKA-certified engineers.
  2. 2
    Security partners : Isovalent (Cilium, Tetragon), SUSE Security (NeuVector), Red Hat Advanced Cluster Security, Aqua Security, Sysdig, Snyk, HashiCorp Vault.
  3. 3
  4. 4
    Official training : SoKube delivers the Kubernetes Administration and Security course.
See our partners

Kubernetes security: frequently asked questions

What does zero trust mean on Kubernetes?

No request is accepted just because it comes from inside the cluster. Every person, every workload and every AI agent authenticates with its own identity, gets only the permissions it needs, communicates over an encrypted channel (mTLS) and leaves a trace in the audit logs. On Kubernetes, that means least-privilege RBAC, default-deny network policies, a service mesh or Cilium for mTLS, and admission policies.

Where should we start to secure a Kubernetes cluster?

With an audit, then with the measures that close the most risk for the least effort: removing unneeded cluster-admin bindings, single sign-on to the API, Pod Security Standards at the “restricted” level, default-deny network policies on sensitive namespaces, and scanning the images running in production. A service mesh and runtime detection come next.

Kyverno or OPA Gatekeeper?

Both are CNCF projects and cover policy as code at admission. Kyverno writes its rules in Kubernetes YAML, which makes it accessible to operations teams, and can also verify image signatures. OPA Gatekeeper uses the Rego language, already common in teams that use OPA outside Kubernetes. We choose one or the other based on your skills and existing policies.

Do we need a service mesh to encrypt traffic between services?

Not always. Cilium encrypts traffic between nodes and enforces network policies up to the application layer, without sidecars. Istio and Linkerd add a per-service identity, mTLS and authorisation rules between services. The choice depends on how much fine-grained control you need between services, the operational load you can accept and the distributions in place. See our article How to choose the best service mesh.

How does Kubernetes help with FINMA and the nFADP?

FINMA circular 2023/1, in force since 1 January 2024, requires banks to manage their ICT and cyber risks and to ensure the continuity of their critical functions. The Swiss nFADP requires security measures appropriate to personal data. Controls defined as code provide the evidence expected: who has access, which rules apply, which changes were made and by whom, and how restore was tested.

How do you handle vulnerabilities and patching on Kubernetes?

Images are scanned in the pipeline and continuously in the registry, because an image that was clean yesterday can be vulnerable today. CVEs are prioritised by exploitability and by how exposed the service is. Base images and Helm charts are updated through merge requests, and clusters stay on supported Kubernetes versions. Our DevSecOps page covers the pipeline and SBOM side.

How do you prepare disaster recovery for a Kubernetes cluster?

A cluster defined as code can be rebuilt from Git. That leaves the data: persistent volumes, databases and secrets are backed up with Velero or Portworx, outside the cluster and away from the primary site. The security architecture of the recovery plan also covers emergency access and encryption keys. Restore is tested at regular intervals, otherwise it proves nothing.

How do you secure AI agents that act on a cluster?

Each agent gets its own identity, never a shared account. Its permissions are limited to its task, read-only by default, and its changes go through a merge request. Every action shows up in the Kubernetes API audit logs. Its execution is isolated: a dedicated namespace, restricted outbound traffic, and a sandboxed container with gVisor or Kata Containers when the agent runs generated code. NeuroKube, the AI platform built by SoKube, follows these principles.