Running Plane as non-root on OpenShift and restricted clusters

Plane can run on OpenShift and Pod Security restricted namespaces when the chart's securityContext is set, the chart and Plane versions are current enough, and the bundled datastores are replaced. This page covers what to configure and how to verify it.

On this page

Running Plane as non-root on OpenShift and restricted clusters: when you need it

If your cluster forbids root containers or enforces the restricted Pod Security Standard, you need a non-root Plane configuration, and you can get one by setting the chart's security context and moving stateful services out of the cluster, not by using a special build. A platform or security team in this position usually runs OpenShift or a Kubernetes namespace labeled for restricted enforcement, where pods must drop privileges, disallow privilege escalation, and use a permitted seccomp profile. A default Plane install can conflict with those rules in a few places: container processes that expect to run as root or write to paths owned by root, bundled database and object storage containers that were not built for arbitrary user IDs, and pod specs that omit the security fields the restricted profile checks.

This is a configuration and verification task. The Kubernetes guide that Plane publishes, Plane's Kubernetes deployment guide, installs the Commercial Edition, and its Free plan includes 12 seats and the Free feature set with no license key. Confirm with Plane which Commercial Edition build and chart version support non-root operation, and which minimum versions apply to your edition. Do not assume that a version you have pinned for another environment meets this requirement.

Before you install, ask Plane to confirm three things in writing: the minimum chart and Plane versions that run non-root, which bundled components they still expect inside the cluster, and whether any image in the release requires a fixed user ID. Then plan the datastores. The Helm chart can point PostgreSQL, Redis or Valkey, RabbitMQ and S3-compatible storage at external services, and external services are usually the cleaner path under restricted policy. After the install, verify with kubectl get pods -o yaml that each pod shows runAsNonRoot: true, a non-zero runAsUser, and allowPrivilegeEscalation: false, and check namespace events for admission rejections.

Which restricted policy applies to your cluster

OpenShift decides what a pod may request through security context constraints (SCCs), which are bound to the service accounts a pod runs under. The default restricted SCC is the baseline most application workloads meet, and it blocks settings that require root or elevated host access. Plane's pods must run under a service account whose SCC matches the securityContext the chart renders, so the mismatch is usually found at admission time, not after rollout.

  • Root user: Restricted SCCs assign a UID from the namespace range, so images and volumes cannot depend on a fixed UID 0.
  • Privilege escalation: allowPrivilegeEscalation must be false, so setuid binaries cannot raise rights.
  • Writable root filesystem: Paths the application writes to need explicit volumes, such as emptyDir mounts.
  • Capabilities and host access: Added Linux capabilities, host paths and host networking are rejected under the default restricted SCC.

Before install, confirm which SCC the Plane service accounts are bound to, whether your platform team has created a custom SCC, and whether the chart version you plan to install exposes the securityContext values you need. Then check the openshift.io/scc annotation on a running pod to confirm the SCC that was actually applied.

Chart securityContext options and when each fits

This table compares the securityContext settings that matter for non-root operation, when to set each one, and what each one can break. Confirm exact key names and accepted values against the chart version you deploy, because they are not assumed to be the same across releases. The main takeaway is that the restrictive settings are easy to apply, while the writable paths they require are where most failures appear.

SettingWhen to set itTrade-off to plan for
Pod-level runAsNonRootSet it when the cluster enforces restricted Pod Security or OpenShift restricted SCCs, so the kubelet refuses to start containers that resolve to UID 0.Images that default to root fail at start. Confirm each Plane image runs as a non-zero UID before the first rollout.
Pod-level seccompProfileSet it to the runtime default profile when the admission policy requires a seccomp type to be declared.Unusual syscalls used by a component may be blocked. Check pod logs after rollout rather than assuming the default profile is harmless.
Container allowPrivilegeEscalationSet it to false in every container, since restricted policies require it and Plane components do not need setuid behavior.Any init step or helper that relies on privilege escalation will fail. Identify such steps during the first install in a test namespace.
Container capabilities dropDrop ALL capabilities and add back only what a specific workload proves it needs, which is usually none.Components that bind low ports or change ownership may need a capability. Prefer changing the port over adding a capability.
Container readOnlyRootFilesystemSet it to true when you want an immutable image filesystem and can mount writable volumes for every path the process uses.Temp files, caches, PID files and upload staging directories must be mounted as emptyDir or PVC volumes. Missing paths cause crash loops that look unrelated.
runAsUser and fsGroupLeave them unset when OpenShift assigns a UID range per namespace, or set them explicitly when the policy requires a fixed value.Hard-coded UIDs outside the namespace range are rejected. Volume ownership must match fsGroup or writes fail on persistent mounts.
Writable paths for uploads and temp filesAdd volume mounts whenever readOnlyRootFilesystem is true or the image writes outside its data directories.Shared volumes need a access mode that works across replicas. Ask the chart maintainers which paths each workload writes to.
Chart and Plane version floorConfirm the minimum chart and Plane release that exposes the securityContext keys you need before you rely on them.Older charts may ignore the block entirely, so a passing render does not prove a restricted-compatible deployment.

Setup sequence for a non-root Plane install

This sequence takes a Plane deployment from cluster policy review to a running set of pods that meet a non-root, restricted admission posture. Each step ends with a check so the platform team can confirm the install before moving to the next one.

  1. Confirm the cluster policy and platform version

    The platform team records the Pod Security Admission level applied to the target namespace, the OpenShift version in use, and the Security Context Constraint that will bind to Plane's service accounts. Ask the vendor which Kubernetes and OpenShift versions the chosen chart supports before any values are written. The step is done when the team has a written list of the admission level, the platform version, and the SCC name, all confirmed against the Pod Security Standards documentation and the cluster's own configuration.

  2. Select a chart and Plane version for non-root

    Choose the Helm chart and Plane release that document non-root operation, and confirm the minimum chart and Plane versions for that behavior with Plane before pinning them. Pin PLANE_VERSION explicitly so later upgrades are deliberate. Note which edition the chart installs, since the Kubernetes guide targets the Commercial Edition, and confirm that the license and seat terms fit your organization. The step is complete when the chart version, Plane version, and edition are written into the change record.

  3. Move stateful services outside the cluster

    Decide, for PostgreSQL, Redis or Valkey, RabbitMQ and S3-compatible object storage, whether each runs on a managed or external service or inside the cluster under a non-root image. Bundled database and storage containers are the most common source of root or privileged requirements, so moving them out usually simplifies the restricted profile. Confirm each service's supported version and connection details with the vendor, and record the endpoint and credential secret names. The step is done when every external endpoint is reachable from the namespace and the connection tests pass from a debug pod.

  4. Set the securityContext values

    Edit the values file so the pod-level and container-level securityContext blocks set a non-root user, disable privilege escalation, drop all Linux capabilities, and use a read-only root filesystem where the workload supports it. Where OpenShift assigns a random UID, leave the explicit user ID unset so the SCC can supply one. Keep these settings in version control next to the other values. The step is done when a rendered manifest from the helm template command shows the expected securityContext on every Plane workload.

  5. Apply namespace labels and service account bindings

    Apply the Pod Security Admission labels to the target namespace at the level confirmed in step one, and bind the chart's service accounts to the SCC or RoleBinding that the platform team approved. Avoid granting the anyuid or privileged SCC as a shortcut, because that defeats the restricted posture. The step is done when the namespace labels and bindings appear in the cluster and the platform team can list them with kubectl get and oc describe commands.

  6. Install the chart with the reviewed values

    Run the Helm install or upgrade with the pinned chart version and the reviewed values file, using a dry run first so admission warnings surface before workloads are created. Watch for rejected pods in the output, since restricted admission blocks non-compliant pods at creation time. The step is complete when helm reports a deployed release status and no admission errors appear in the output.

  7. Check pod status and events

    Run kubectl get pods and kubectl get events in the namespace, and confirm every Plane workload reaches Running with ready containers. Check the events for FailedCreate, forbidden, or security context warnings, and inspect a sample pod's effective user ID and capabilities with kubectl exec or oc debug. Review logs from the web and API workloads for permission errors on writable paths. The step is done when all pods are Ready, the events list shows no admission rejections, and the effective UID is non-zero for each container.

How the restricted namespace separates Plane workloads from external datastores

The diagram starts at the route from users into the cluster, where the ingress controller hands requests to Plane's web and API workloads running under a restricted admission policy. Those workloads reach PostgreSQL, Redis or Valkey, RabbitMQ and S3-compatible storage through connection settings in the chart's values, not through containers inside the namespace. The admission policy is the trust boundary: check that every Plane pod runs as non-root with the chart's securityContext in place, and that each external endpoint is reachable only from the namespace.

Plane runs inside the restricted namespace while its datastores sit outside the cluster boundary.

Why the bundled datastores must move out of the cluster

The bundled PostgreSQL, Redis or Valkey, RabbitMQ and MinIO containers are convenient for a trial but work against a restricted pod profile. Each one is a stateful service with its own file ownership needs, backup duties and upgrade path, so the decision to externalize them shapes the whole OpenShift plan.

PostgreSQL data directory ownership

The bundled database writes to a data directory that must be owned by the database process user and kept on a persistent volume. On a restricted cluster that expects a random non-root UID, the volume's permissions and the image's expected user often conflict. Moving PostgreSQL to a managed or separately operated service removes that conflict from the Plane namespace. Confirm the supported PostgreSQL major version and the connection string format before you cut over.

Redis or Valkey persistence paths

A bundled in-memory store may try to write snapshot or append-only files to a path the restricted profile does not allow. Some images also expect to run as a specific user or to bind to privileged configuration. Pointing Plane at an external Redis or Valkey service keeps those writes off the pod. Confirm the supported engine version, TLS requirements and the password or ACL settings that Plane's connection URL must carry.

RabbitMQ queue storage and cookie

RabbitMQ stores queue data on disk and uses an Erlang cookie that must match across nodes, which often pushes its image toward fixed UIDs and writable volumes. Running it outside the cluster, under a team that owns its upgrades, keeps message durability and broker maintenance out of Plane's pod security context. Confirm the supported RabbitMQ version, the vhost and user Plane expects, and how queued work is handled during a broker restart.

MinIO volumes and root expectations

The bundled MinIO container writes objects to a volume and has historically been run with settings that assume root-level control of its data path. Attachments and uploads are the only copy of user files, so losing this volume is a data loss event. An external S3-compatible bucket, backed by your storage team's replication and versioning, puts durability under an owner who already runs it. Confirm the bucket name, region, access method and CORS rules for presigned uploads.

Backup and restore ownership

Once the datastores run outside the cluster, backups stop being a Plane chart job and become a database, cache, broker and object storage job owned by someone else. Write down who takes each backup, how often, where it is stored and how a restore is tested. Without that assignment, a restricted cluster can look healthy while no one can recover the data. Ask whether your database team already covers the new instance.

Verifying versions and connection settings

Each external service adds a version and connection contract that the chart must match. Before you deploy, confirm the supported versions for every datastore against the Plane release you pin, and confirm the connection settings each one needs, including TLS, credentials from a secret and network policy paths from the Plane namespace. Test each connection from a pod that uses the same security context as Plane before the first full install.

Plane Kubernetes docs

How to verify Plane runs non-root

Start by confirming the effective user ID of every Plane pod, not just the values in the chart. Run kubectl exec or oc exec into each running container and execute id, then compare the UID and GID against the range your cluster assigned to the namespace. A pod that reports UID 0 is running as root regardless of what the manifest says, so this check catches images or overrides that ignore the securityContext block. Repeat it for every workload, including the migration job and any worker or beat deployments, because one-off jobs are the easiest place for a root process to slip through.

Next, confirm the admission controller accepted the pods under the restricted profile. On Pod Security Admission, check that the namespace carries the restricted enforce label and that the pods report the expected security context in their stored specs. On OpenShift, confirm which Security Context Constraint was applied to each pod through its annotations. Then search namespace events for admission rejections. A deployment that stays at zero ready replicas with FailedCreate events is usually a single missing field, such as runAsNonRoot or a dropped capability, and the event message names it. Treat any rejection as a configuration gap to fix in values, not as something to bypass with a broader policy. The Pod Security Standards page describes the controls the restricted profile enforces.

Finally, confirm that every write path is a mounted volume and run a functional test. Inspect the mounts with kubectl get pod -o yaml and check that the directories the application writes to sit on volumes, since a read-only root filesystem will otherwise fail at runtime. Then exercise the product: sign in, create a project, and upload a file, and check the pod logs for permission errors during each step. These checks show configuration only. They do not produce a compliance result, and an independent assessor will still need the evidence you collect. Confirm your Plane and chart versions against the release notes before you rely on the results.

Security considerations for restricted Plane workloads

Restricted clusters move risk from the container runtime to the cluster around it. The cards below cover where Plane's credentials live, who can read them, how the datastore secrets reach pods, which images run, and how to check the cluster against a published benchmark.

Secrets are unencrypted in etcd

Kubernetes stores Secret objects unencrypted in etcd by default, so anyone who can read the etcd data or its snapshots can read Plane's database, RabbitMQ and storage credentials. Ask your platform team whether encryption at rest is enabled for Secrets on your cluster, and confirm that etcd backups are protected with the same care as the live data. Enable encryption at rest before loading production credentials.

Secrets good practices

Least-privilege RBAC on Secrets

Any subject with list or watch on Secrets in the Plane namespace can read every credential stored there, even if it never calls get on a specific object. Review RoleBindings and ClusterRoleBindings for wildcard verbs and cluster-wide grants, and limit Secret access to the service accounts and administrators who run the Plane release. Confirm the result with an access review before go-live.

Secrets Store CSI Driver for datastore credentials

When Plane's PostgreSQL, Redis or Valkey, RabbitMQ and S3 credentials live in an external secret store, the Secrets Store CSI Driver can mount them into pods without storing them as long-lived Kubernetes Secrets. This reduces how many places a credential is copied, but it adds a provider component to operate and a dependency on that store's availability. Confirm with your platform team which provider your organization already runs and who owns its rotation.

Pinned release tags and image provenance

A restricted cluster should run images from a known registry, pulled by tag or digest that your team has reviewed. Pin the Plane version used by the chart, record it in your change log, and confirm that the images are copied to your private registry from the source you approved. Ask the vendor which signatures or digests accompany each release, and verify them before admission rather than assuming a tag is immutable.

Plane releases

CIS Kubernetes Benchmark as a check

The CIS Kubernetes Benchmark is a published set of configuration recommendations that many security teams use to review cluster settings such as API server flags, kubelet configuration and pod security. Use it as a reference list for your cluster review, not as a certification. Record which recommendations your platform already meets, which it accepts as risk, and which need a change before Plane is deployed.

CIS Kubernetes Benchmark

Questions teams ask before running Plane on OpenShift

Does a default Plane install run on OpenShift without changes?

No, not without securityContext changes and verification. OpenShift and clusters that enforce the restricted Pod Security Standard do not allow containers to run as root or to request capabilities that the default workloads expect. Your team needs to review the chart's securityContext block, set non-root user and group IDs that the platform accepts, and confirm that every pod starts, writes only to paths it is allowed to write, and passes its health checks. Treat the first successful rollout as the start of verification, not the end of it. The Pod Security Standards describe the restrictions most clusters enforce, and your cluster's admission settings define what applies to your namespaces.

What drives the effort of running Plane as non-root?

Four factors drive most of the effort:

  • How strict your cluster policy is. A namespace that enforces the restricted level needs more changes than one that only audits.
  • How many datastores must move outside the cluster. Bundled PostgreSQL, Redis or Valkey, RabbitMQ and MinIO containers may not satisfy your policy, so each one you replace adds connection, credential and backup work.
  • Registry constraints. If images must come from an internal registry, pull secrets, mirroring and image pinning add steps.
  • Testing scope. Verifying pod security, upgrades, backups and restores takes more time than a single successful install.

Ask for these four items to be listed separately in any quote.

Can our own team run Plane on OpenShift without outside help?

Yes, if your team already owns Kubernetes operations and datastore operations. The work sits at the intersection of cluster policy, Helm values, PostgreSQL, object storage and message queues, so the people doing it need to read and change manifests, understand how a non-root container writes files, and handle backups and restores for each datastore. Teams without that experience usually need to add skills or bring in a partner for the datastore and policy parts. Be honest about who will carry the work after go-live, because upgrades to the chart and to Plane will repeat the same checks.

How long does it take to run Plane on OpenShift as non-root?

No duration is supplied for this work, so confirm timing with a written scope rather than a generic estimate. The schedule depends on how strict your policies are, how many datastores you move outside the cluster, how long your change approval process takes, and how much testing your security and platform teams require before approving a production window. A cluster with a documented policy baseline, an existing managed database and a pre-approved change window will move much faster than one where each of those is still being decided.

What does the work need from our team?

Plan to provide the following before work starts:

  • Cluster access for the namespaces where Plane will run, with rights to create workloads, secrets and network policies.
  • Written copies of the pod security, network and image policies that apply to those namespaces.
  • Decisions on which datastores move outside the cluster and who owns their credentials and backups.
  • Change windows for the first install, the datastore cutover and later upgrades.

Without these inputs, the verification steps cannot be completed against your real controls.

Which Plane edition applies to a non-root OpenShift deployment?

The edition depends on the features you need and on whether you are running in a connected or airgapped network. Plane's documentation describes three self-hosted editions: Community, Commercial and Airgapped. Plane Community Edition is licensed under AGPL-3.0 and matches the feature set of the Plane Cloud Free tier. Plane's Kubernetes guide installs the Commercial Edition, and the Helm chart path in this topic follows that guide. Confirm the edition, the minimum chart version and the minimum Plane version for your target release with Plane's editions and versions documentation before you pin anything, because the securityContext support you need depends on the release you deploy.

How do we verify that Plane is running correctly as non-root?

Verify at the pod level and at the application level. At the pod level, confirm that each running container reports a non-root user ID, that no container requests privilege escalation, and that the namespace's admission controller accepts every workload without exemptions. At the application level, confirm that sign-in works, that file uploads reach the object store, that background jobs process, and that a backup and restore of PostgreSQL and object storage completes. Record the results as evidence for your security review, and repeat the same checks after every chart or Plane upgrade.

How DeployOpen scopes and delivers Plane on restricted clusters

DeployOpen plans, builds, tests and documents self-hosted Plane inside your own clusters and cloud accounts. For restricted clusters, we start from your admission policy and datastore decisions, then deliver a non-root configuration you can verify and operate.

How we scope

  • Written scope names the target platform, admission policy, and Plane edition before any build starts.
  • Scope lists which datastores move outside the cluster and who owns their backups and credentials.
  • Engagements are fixed-scope, with deliverables and timelines agreed in writing; ongoing support is available as a retainer.

How we build

  • We set the chart securityContext values to match your admission policy and confirm the minimum chart and Plane versions for it.
  • We point Plane at external PostgreSQL, Redis or Valkey, RabbitMQ and S3-compatible storage, with credentials kept out of Helm values.
  • We test pod admission, writable paths, and health checks on a staging cluster before any change reaches production.

How we hand over

  • You receive the values files, manifests, and version pins used in your cluster, with a record of each deviation from defaults.
  • Runbooks cover verification steps, expected pod states, and how to re-run the checks after an upgrade.
  • We walk your platform and security teams through the configuration so they can review it against their own controls.

How we support

  • Retainers cover chart and Plane version upgrades, re-verification after platform upgrades, and admission policy changes.
  • Continuous testing can be added to check the running configuration against your restricted-cluster baseline.
  • Support requests are handled against the written scope, so changes to datastores or policies are priced and planned up front.

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.