Enforcing Pod Security Standards for openDesk in your cluster

Pod Security Standards for openDesk tell you which pod settings the cluster will accept, and openDesk's security documentation is the starting point for confirming them. This page explains how to label the namespace, test before enforcing, handle sidecars and overrides, and verify hardening beyond the profile.

On this page

Enforcing Pod Security Standards for openDesk in your cluster

A platform or security team that must show its Kubernetes-hosted workplace suite runs with restricted pod settings needs evidence it can check in its own cluster. openDesk is deployed with Helmfile and Helm onto a Kubernetes cluster you control, so the pods that run there are only as restricted as the cluster admits them to be. Pod Security Standards are the Kubernetes definitions of that restriction. They name three profiles, privileged, baseline and restricted, and a built-in admission control checks each pod specification against one of them when the pod is created or updated. The restricted profile is the strictest of the three, and it is the one a reviewer will read first when asking whether a workload runs without elevated privileges. The Kubernetes Pod Security Standards documentation explains each profile's controls in detail.

openDesk's own security documentation describes the Kubernetes security settings the project expects, along with the network policies it documents. Read that page for the exact release you run, because whether openDesk claims conformance to the restricted profile, and for which namespaces, is the point to confirm before you cite it in an assessment file. Do not assume a claim made for one release carries over to a later one, to a sidecar you add, or to a namespace your team created for its own tooling. Check the openDesk security documentation against your release tag, ask ZenDiS about any namespace the documentation does not name, and record the version you checked so the evidence can be reproduced later.

You need to enforce the standard yourself when an assessor will inspect your admission policy rather than the vendor's text, when the cluster hosts other workloads alongside openDesk, or when the documented scope does not cover every namespace you use. Namespace labels such as pod-security.kubernetes.io/enforce make the API server reject non-compliant pods, while the warn and audit modes report violations without blocking them. A sensible first step is to apply warn and audit labels to the openDesk namespaces in a non-production cluster, review what they report, and then move to enforce. openDesk requires a CNCF-certified Kubernetes cluster at v1.33 or later, so run the test at that version or the one you plan to operate, because admission behavior can differ between releases.

Which enforcement mode fits your rollout stage

This table compares the Pod Security Admission modes (enforce, audit and warn), the profile levels (privileged, baseline and restricted) and policy engines such as Kyverno for openDesk namespaces. Read each row as a stage in the rollout, starting with warnings and moving toward enforcing restricted, which is the target state for openDesk's conformance. The right route depends on the cluster's existing policy tooling.

OptionWhen it fitsTrade-off
Warn at restrictedFirst stage on any namespace that will run openDesk, to see which pods and overrides would fail restricted without changing anythingAdmission still accepts every pod, so warnings reach only people who apply manifests and do not stop drift
Audit at restrictedRuns alongside warn when violations should be recorded in the Kubernetes audit log for review by the security teamAudit logging must be configured and collected, and violations are visible only to whoever reads those logs
Enforce baselineA stepping stone when a sidecar or custom override cannot yet meet restricted but the namespace should still block privileged settingsBaseline still allows settings that restricted forbids, such as running containers as root, so it is a weaker end state
Enforce restrictedTarget state for openDesk namespaces once sidecars and custom overrides have passed the warn and audit stagesNon-conforming pods are rejected at creation, so each sidecar or override must be tested before the label is applied
PrivilegedOnly for system namespaces that need host-level access, with the exception documented and reviewedNo Pod Security restrictions apply, so the namespace accepts any workload, including ones openDesk does not ship
Policy engine such as KyvernoClusters that already run a policy engine, or that need rules beyond PSS such as image verification, either instead of or alongside built-in admissionYou maintain the rule sets, exceptions and engine upgrades yourself, and rules can drift from the PSS definitions over time
Existing policy toolingDecides which row applies: if the cluster already has a policy engine, align with it; if not, built-in admission is the lighter starting pointConfirm with the cluster owner which engine, version and policy repository are in use before choosing a mode

How namespace labels decide whether an openDesk pod starts

The diagram starts with a Helmfile or Helm release that renders the openDesk pod spec and submits it to the Kubernetes API server. Inside the cluster and namespace trust boundary, the API server passes the pod to Pod Security admission, which reads the namespace labels for each mode. In enforce mode, a pod that violates the restricted profile is rejected and never starts. In warn mode, it is admitted with a warning for the operator. In audit mode, the violation is recorded in the audit log while the pod is still admitted. Check the namespace labels before the first install, because they decide which outcome applies.

Admission path from release to pod outcome, with the namespace as trust boundary.

What the restricted profile checks in a pod spec

The restricted profile is the strictest of the three Pod Security Standards levels, and it judges each container on its own security context. In plain terms, it expects containers to run as a non-root user, to block privilege escalation, to drop Linux capabilities with only a narrow set of additions allowed, and to set a seccomp profile of type RuntimeDefault or Localhost. Each setting closes a common route from a compromised application to the node beneath it. Two are easy to miss: images that default to root fail until the user ID is set explicitly, and seccomp is often left unset in hand-written templates. Read the exact field names and allowed values in the Pod Security Standards documentation before writing any policy, because the admission check reads literal field values.

These checks apply to every container and init container in a pod, including sidecars added by a service mesh, a log shipper or a custom override. Init containers finish before the application starts, but they are still evaluated and must comply. Admission looks at the whole pod spec, so one non-compliant sidecar is enough to reject the pod. The owning Deployment or StatefulSet then keeps trying to create pods that never start, and the failure surfaces as missing replicas plus an admission event on the controller. Illustrative example: a team adds a metrics exporter through a values override, leaves its security context empty, and every replica of the workload is refused after the upgrade. Before enforcing, render the manifests with helm template and check each block under containers and initContainers against the standard.

For openDesk, the practical question is which settings arrive already set and which ones your own changes can break. Check the openDesk security documentation for the Kubernetes security settings the project documents, then compare them with the containers your overrides add or replace. Run the namespace in warn and audit modes first by setting pod-security.kubernetes.io/warn and pod-security.kubernetes.io/audit to restricted, and review every warning, including those from custom workloads. Move to enforce only after a clean run in a test environment that mirrors your production overrides. Record the result, because an auditor will ask how you know enforcement is working, beyond the label.

Setting up the restricted profile for the openDesk namespace

This sequence moves the openDesk namespace to the restricted Pod Security Standards profile in controlled stages. Each stage leaves evidence: a reviewed manifest set, a list of warnings, documented exceptions and a server-side dry run. The result is a namespace that refuses non-conforming pods at admission, with a record of what was checked.

  1. Confirm cluster and release prerequisites

    Check that the cluster runs Kubernetes v1.33 or later by reading the server version from kubectl version. Confirm that the openDesk release you deploy is the latest minor version on the openDesk releases page, because only the latest minor version is supported and an older release needs an upgrade before you change the namespace. Also confirm the other prerequisites in the requirements document: an ingress controller, cert-manager, an RWO volume provisioner, Helm 3.17.3 or later (below v4) and Helmfile 1.0.0 or later. Done when the server version is 1.33 or higher and helm version and helmfile --version meet the minimums.

  2. Render manifests and review the diff

    Render every openDesk manifest from the Helmfile configuration into a file before anything reaches the cluster, for example with helmfile template > rendered-before.yaml, and store the file under version control. If you already run openDesk, render the target release as well and compare the two files with helmfile diff (which needs the helm-diff plugin) or a plain diff. Review changes to securityContext, volumes, host settings and labels first. On a first install, skip the comparison and keep the rendered file as the baseline. Done when the diff contains only the changes you expect and the rendered file is attached to the change record.

  3. Label the namespace with audit and warn first

    Set pod-security.kubernetes.io/audit and pod-security.kubernetes.io/warn to restricted on the openDesk namespace, and leave pod-security.kubernetes.io/enforce unset for now. The admission controller evaluates every new pod against the Pod Security Standards and reports violations as warnings to the client and as audit annotations where audit logging is enabled. Apply the labels through the same Helmfile or GitOps path used for the rest of the namespace so the change is recorded. Done when kubectl get namespace <namespace> --show-labels lists both labels with the value restricted and no enforce label.

  4. Collect warnings and audit events per workload

    Restart each Deployment, StatefulSet and DaemonSet in a maintenance window or a staging copy so its controller creates new pods, then capture the warnings printed by kubectl rollout restart and kubectl apply. Query recent warnings with kubectl get events -n <namespace> --field-selector type=Warning. CronJobs only produce warnings when a job runs, so trigger one manually or wait for its next run. If audit logging is enabled, review the API server audit log, which your cluster administrator controls. Record one row per workload with the container, the rule violated and the owner. Done when every workload in the namespace has a row or a note that it has no pods to start.

  5. Fix or document each exception

    For each row, fix the workload where the setting lives, such as a securityContext value that the openDesk configuration exposes, then render the manifests again and repeat the diff from step two. Where a violation cannot be fixed inside openDesk, for example in a sidecar or a custom override you added, record the owner, the rule, the reason, the compensating control and a review date in the change record. Pod Security exemptions are configured on the cluster's admission controller, so confirm with your cluster administrator before you rely on one. Done when the rerendered diff passes review and the warning list contains only documented exceptions.

  6. Set the enforce label after review

    When the warning list shows only documented exceptions, set pod-security.kubernetes.io/enforce to restricted through the same path as step three. Before applying it, run a server-side dry run with kubectl label --dry-run=server --overwrite namespace <namespace> pod-security.kubernetes.io/enforce=restricted. The dry run reports pods that already violate the profile and changes nothing. Done when the dry run returns no violation warnings for pods that must keep running, and the enforce label appears in kubectl get namespace <namespace> --show-labels.

  7. Verify pods run and non-conforming pods are refused

    Confirm that openDesk still runs in the enforced namespace by checking kubectl get pods -n <namespace> for Running pods and kubectl get events -n <namespace> for FailedCreate events on ReplicaSets and StatefulSets. Then apply a throwaway test pod with privileged: true in its security context, which the restricted profile forbids, and confirm the API server rejects it with a Forbidden error that cites the Pod Security rule. Delete the test pod afterward. Done when all openDesk pods are Running, no FailedCreate events remain, and the test pod was rejected.

Hardening settings to verify beyond the Pod Security Standards profile

The Pod Security Standards restricted profile checks the pod security context, but it leaves several hardening settings to the cluster and the chart. The six settings below are ones a reviewer is likely to raise for openDesk. For each, confirm what openDesk sets by default and what the operator must set. The openDesk security documentation covers Kubernetes security settings and network policies, so start there.

Read-only root filesystems

The restricted profile requires dropping privileges and blocking privilege escalation, but it does not require a read-only root filesystem. Check that each container sets readOnlyRootFilesystem: true in its security context, then confirm that every path the application writes to, such as temporary or cache directories, is a mounted emptyDir or a persistent volume claim. Test the failure mode: a write to an unmounted path should fail inside the pod, not succeed silently. Record each container that needs a writable root filesystem, because the reviewer will ask for the exception and its reason.

Service account token automounting

Kubernetes mounts a service account token into a pod unless told otherwise, and the restricted profile does not stop it. Check that workloads which never call the Kubernetes API set automountServiceAccountToken: false on the pod spec or the service account. Confirm that each service account has only the RoleBindings its workload needs. Run kubectl get pods -n <namespace> -o yaml and look for a projected service account token volume on pods where you set it off. Keep token mounts off by default, and list each pod that keeps one with its reason.

Resource requests and limits

Requests and limits sit outside the Pod Security Standards profile, yet they decide how one runaway container affects its neighbors. Every container needs CPU and memory requests and a memory limit. Check the rendered manifests for each openDesk namespace, and confirm that a LimitRange or ResourceQuota covers any container the chart leaves open. Compare the declared values with your capacity plan, because a memory limit below actual peak use causes restarts under load. Ask ZenDiS which values the charts set and which are placeholders for your environment.

Image pinning by digest

A tag can point to a different image after you review it, so the reviewer will ask whether what runs is what was tested. openDesk documents that it pins every container image by tag and digest and signs the images it builds. Check the rendered manifests from your Helmfile run, not only the chart values, for an image reference with an @sha256: digest on every container and init container. Rendered manifests must carry a digest on every container. Then confirm that any mirrored image in your registry keeps the same digest, because a re-tagged mirror breaks the match.

openDesk security docs

Network policies

The restricted profile governs the pod, not the traffic between pods. Check that the cluster's CNI plugin enforces NetworkPolicy, because a policy object without an enforcing plugin does nothing. List the policies in each openDesk namespace with kubectl get networkpolicy, confirm that a default-deny policy exists, and identify which ingress and egress rules come from the openDesk charts. Confirm in the openDesk security docs which policies ship by default and which you must write. Then test from a pod in another namespace that a blocked connection fails.

Encryption at rest for Secrets

Secrets sit unencrypted in etcd by default, and the restricted profile does not address this. Check the kube-apiserver flags for --encryption-provider-config and confirm that the referenced EncryptionConfiguration lists a provider for secrets, with an encrypting provider first. Ask the cluster administrator where the encryption key is held, such as in a KMS plugin, because a key stored on the same disk as etcd offers weaker protection. Also confirm that etcd snapshots are encrypted, since backups contain the same Secrets.

Kubernetes Secrets practices

Keeping pod security enforced through upgrades and overrides

Pod Security enforcement depends on two version clocks, and a move on either side can change the result. openDesk supports only its latest minor version, and the openDesk release management docs say in-place upgrades between majors are not guaranteed and that skipping several minor versions may need intermediate steps. Kubernetes maintains only its three most recent minor releases, which as of September 2026 were 1.37, 1.36 and 1.35, so your cluster will move on a schedule that does not follow openDesk's. Under the version skew policy, kube-apiserver is upgraded one minor version at a time, and kubelets may run up to three minor versions behind it, so nodes can lag the control plane during an upgrade. Treat every openDesk release and every Kubernetes minor upgrade as a trigger to retest the namespace labels, the rendered workloads and the restricted profile checks.

Overrides are the most common way the restricted profile breaks. Custom Helm values can change a container's security context, add a volume or mount a host path, and a single value that removes runAsNonRoot or changes capabilities will cause admission to refuse that pod. The failure often shows up first as a stalled rollout with admission errors in the events, not as a clear message on the release. Added sidecars are the next risk. A log shipper that mounts host log directories, or a service mesh whose init container needs NET_ADMIN to program iptables, will be refused under restricted. Operator-added exporters are a third source. Illustrative example: a team adds a node exporter DaemonSet to the openDesk namespace, the DaemonSet reports no pods scheduled, and the events show host namespace and host path rejections. Running such exporters in a separate namespace, with its own labels, keeps those exceptions out of the openDesk namespace.

Change control should treat each override as a security change. Before enforcing anything new, set the pod-security.kubernetes.io/warn and pod-security.kubernetes.io/audit labels at the target level, re-run the audit and warn checks on the upgraded release and on every sidecar and exporter, and review each warning with the owner of that override. Only then raise pod-security.kubernetes.io/enforce. Existing pods are not evicted when a label changes, so a failing workload surfaces at its next restart or reschedule, which is a poor time to find it. Ask ZenDiS how supported overrides are documented for openDesk: which values are stable across minor releases, where custom changes are expected to live, and whether security context fields can be set through values without breaking the profile. Record the answer in your change procedure before the next upgrade.

Sidecars, init containers and custom overrides that break admission

Most admission failures in an openDesk namespace come from workloads the release chart does not describe: injected sidecars, init containers, value overrides and added jobs. Each one changes what the restricted profile evaluates, so the audit or warn output can point at a container you never wrote. Work through these four sources before you move the namespace from audit or warn to enforce.

Sidecars from meshes and agents

Service meshes and monitoring agents often inject sidecar containers through a mutating admission webhook, so the pod that reaches admission differs from the one in your Helm values. The usual symptom is an audit or warn entry naming a container you never declared, such as a proxy or agent. Fix options are to set the injector's security context to meet the restricted profile, exclude the openDesk namespace from injection, or move the agent to a node-level deployment. Confirm with openDesk support which pods may carry extra containers and whether their documentation covers injected sidecars.

Pod Security Standards

Init containers running as root

Init containers run before the main container and often need root, write to shared volumes or change permissions on paths, and the restricted profile limits all three. Expect the audit or warn output to flag settings such as runAsNonRoot, privilege escalation or a missing seccomp profile on the init container, even when the main container passes. Fix options are to run the init step as a non-root user with an explicit UID, use fsGroup ownership on the volume instead of a recursive chmod, or move the step into the image build. Confirm with openDesk support or the component documentation which paths must be writable and whether the step can be removed.

Custom Helm overrides to security context

Overrides in your environment files can silently replace the security context that the chart sets, for example by emptying a securityContext block or adding privileged settings or hostPath volumes. The rollout may succeed in one namespace and fail in another after the same override merges with different defaults, or a warn entry may appear on a pod whose spec no longer matches the chart. Fix options are to remove the override, restore the chart's security fields, or record a justified exception with an owner and a review date. Confirm with openDesk support that each changed value key is supported, and re-test those overrides at every upgrade.

openDesk security docs

Added exporters and jobs

Teams often add metrics exporters, backup jobs or maintenance jobs to the openDesk namespace, and those workloads face the same admission rules as the release. A job may run as root to read a data directory, and an exporter may request host networking or host ports to scrape a node. The warn or audit entry lands on a pod that no openDesk release created, which points to a workload added outside the chart. Fix options are to move the workload to its own namespace, rewrite the job to run as a non-root user with read-only access, or remove host access. Confirm with openDesk support which namespaces hold the release and whether any extra workloads are permitted there.

Questions buyers ask before enforcing pod security for openDesk

How much effort does enforcing pod security for openDesk take?

Effort depends on your environment, and this page cannot size it for you. Four factors drive it most. The first is cluster age: an older cluster may run workloads, admission settings or Kubernetes versions that need changes before the restricted profile can be enforced. The second is the number of custom overrides, since each override to a pod template or security context must be reviewed against the profile. The third is sidecar count, because injected sidecars such as service mesh or logging agents often need their own security context settings. The fourth is audit findings: a namespace that already logs violations under a warn or audit mode takes longer than one that starts clean. Ask any partner to estimate after reviewing these four items in your own cluster.

Can our team enforce restricted pod security on openDesk using the public docs alone?

Yes, a team with Kubernetes operations experience can work from the public documentation. The openDesk documentation covers the deployment, while your cluster's admission and workload history is specific to you. The public Pod Security Standards describe the restricted profile in general terms, and openDesk's security documentation describes the Kubernetes security settings it expects. What a team typically still has to work out alone is which namespace labels to set, in which mode first, and how their own overrides and sidecars behave under the profile. A common gap is starting directly in enforce mode, which can block workloads before a warn or audit pass shows what would fail. If your team lacks that depth, a fixed-scope review with DeployOpen can cover the same steps.

How long does a pod security rollout for openDesk usually take?

Rollout time depends on how many namespaces, overrides and sidecars you carry, and on how quickly change windows open in your environment. A typical sequence runs in stages: label namespaces in audit or warn mode, collect the violations, fix workloads or overrides, then move to enforce mode once the violations are cleared. Each stage waits on your change calendar and on the owners who must approve fixes, so calendar availability often sets the pace more than the technical work does. Teams that find few violations in their first audit pass usually move through the stages faster than teams that discover many late. Agree a stage plan and exit criteria for each stage in the written scope, so the timeline follows from decisions your team has already made.

What does an openDesk pod security project need from our team?

The work needs a short list of inputs from your side before it starts. Expect to provide:

  • Cluster access for the people doing the work, with rights to read namespace labels, pod specs and admission events, and to change labels in the agreed namespaces.
  • Change windows for label changes and any workload restarts, agreed with the teams that run production.
  • A named owner for each namespace, who approves fixes that touch their workloads.
  • One named owner for exceptions, who signs off any workload that cannot meet the profile and records the reason and review date.

Confirm with your security and platform leads whether access runs through your identity provider or a separate account.

Does an Enterprise Edition support contract change who fixes pod security issues?

An Enterprise Edition support contract changes who handles fixes for the components it covers, but it does not remove your responsibility for the pod security settings in your own cluster. ZenDiS describes openDesk Enterprise Edition as using the same open-source core licenses while adding SLA-backed 2nd and 3rd level support and patches, sold as SaaS or for on-premises installation. Enterprise-only features, such as the Nextcloud Enterprise security patches, sit behind that contract, so check which of your components are covered. The Community Edition is supported only by the community on openCode, with no SLA. Ask ZenDiS and your contract owner how a restricted profile issue is classified and whether a label or security context change needs their review first.

What would a partner deliver for openDesk pod security enforcement?

A partner delivers the enforcement work defined in the written scope, and most DeployOpen engagements are fixed in scope, deliverables and timeline before work starts. In practice that means an inventory of namespaces and their current labels, a gap report against the restricted profile that lists each violating workload with its owner, the fixes or overrides applied in your environment, the staged label plan with exit criteria, and runbook notes for how your team keeps the labels in place after handover. The deliverables should also state how exceptions are recorded. Ask for a sample of the gap report and the handover notes during scoping, so you can judge the format before you sign. A quote follows from that written scope.

How DeployOpen scopes and delivers pod security enforcement for openDesk

DeployOpen plans and implements Kubernetes pod security enforcement for openDesk inside your own cluster, starting from the openDesk security documentation and your namespace layout. The written scope records which namespaces, workloads and custom overrides are in play, and what is tested before handover. Engagements are fixed-scope, so deliverables are agreed in writing before work starts.

How we scope

  • Confirm the openDesk release and edition in scope, since both affect which settings can be changed.
  • List every namespace that runs openDesk workloads, and every chart or sidecar that needs a documented exception.
  • Agree in writing which checks run beyond the Pod Security Standards, such as container hardening settings in the security context.

How we build

  • Apply Pod Security admission labels to the openDesk namespaces, starting with the profile openDesk documents as supported.
  • Review each sidecar and custom override against the security context settings, and record any change that breaks admission.
  • Keep the image digests as shipped so enforcement changes do not alter pinned workloads.

How we hand over

  • Deliver the namespace manifests, Helmfile values and override inventory as files your team stores in its own Git repository.
  • Document each admission warning, its cause and the fix, so your reviewers can trace every exception.
  • Walk your operations team through which settings change on upgrade, so reviews cover each openDesk release.

How we support

  • Offer ongoing support, upgrades and continuous testing as a retainer after handover.
  • Re-check namespace labels and security contexts after each openDesk release, since only the latest minor version is supported.
  • Confirm whether your openDesk edition, Community or Enterprise, includes SLA-backed support for pod security questions before go-live.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.