live wire
▸SECURITY · Red Hat’s hardened Valkey 9.0.8 image fixes CVE-2026-96231Red Hat Product Errata▸PLATFORM · Red Hat restores Lightspeed playbook execution after a production outageRed Hat Status▸AI · Quarkus LangChain4j tests eight ways to shrink agent prompts without deleting chat historyQuarkus Blog▸FIELD BUILDS · MemoryHub merges separate user and admin dashboard views backed by shared access policyRed Hat AI Americas / MemoryHub▸PLATFORM · OpenShift 4.22 lab upgrade with 10,000 active VMs took about 11 hoursRed Hat Developer▸PLATFORM · Red Hat tests OpenShift live migration across 10,000 VMs in 40 namespacesRed Hat Developer▸PLATFORM · Troshka restores OpenShift workshop labs from reusable snapshots on AWSIBM & Red Hat on AWS▸CLUSTER MGMT · Red Hat multicluster engine 5.0.1 fixes ClusterClaim labels being overwrittenRed Hat Product Errata▸AI · NeMo Guardrails 0.25.0 adds tool-call checks and an experimental model API gateway (Nov. 19)NVIDIA NeMo Guardrails▸AI · Red Hat posts an EAGLE-3 speculator modelcar for Gemma 4 26B A4B ITRed Hat Product Errata▸SECURITY · OpenShift GitOps 1.21.9 fixes Argo CD stripping unmanaged labels after an upgrade to 1.21Red Hat Product Errata▸PLATFORM · Cummins uses Backstage and Ansible on AWS to automate approved temporary Linux root accessRed Hat Blog▸AI · Red Hat details how IdeaBot traces agent calls and avoids double-counting tokens with MLflow (Nov. 24)Red Hat Emerging Technologies▸AI · IBM releases Granite models for document conversion, visual extraction and page retrievalIBM Research▸SECURITY · Red Hat’s hardened Valkey 9.0.8 image fixes CVE-2026-96231Red Hat Product Errata▸PLATFORM · Red Hat restores Lightspeed playbook execution after a production outageRed Hat Status▸AI · Quarkus LangChain4j tests eight ways to shrink agent prompts without deleting chat historyQuarkus Blog▸FIELD BUILDS · MemoryHub merges separate user and admin dashboard views backed by shared access policyRed Hat AI Americas / MemoryHub▸PLATFORM · OpenShift 4.22 lab upgrade with 10,000 active VMs took about 11 hoursRed Hat Developer▸PLATFORM · Red Hat tests OpenShift live migration across 10,000 VMs in 40 namespacesRed Hat Developer▸PLATFORM · Troshka restores OpenShift workshop labs from reusable snapshots on AWSIBM & Red Hat on AWS▸CLUSTER MGMT · Red Hat multicluster engine 5.0.1 fixes ClusterClaim labels being overwrittenRed Hat Product Errata▸AI · NeMo Guardrails 0.25.0 adds tool-call checks and an experimental model API gateway (Nov. 19)NVIDIA NeMo Guardrails▸AI · Red Hat posts an EAGLE-3 speculator modelcar for Gemma 4 26B A4B ITRed Hat Product Errata▸SECURITY · OpenShift GitOps 1.21.9 fixes Argo CD stripping unmanaged labels after an upgrade to 1.21Red Hat Product Errata▸PLATFORM · Cummins uses Backstage and Ansible on AWS to automate approved temporary Linux root accessRed Hat Blog▸AI · Red Hat details how IdeaBot traces agent calls and avoids double-counting tokens with MLflow (Nov. 24)Red Hat Emerging Technologies▸AI · IBM releases Granite models for document conversion, visual extraction and page retrievalIBM Research
upstreambeat.ai
guideSUPPLY CHAIN

OpenShift user namespaces give Testcontainers a narrower path through Pipelines

Red Hat’s reference workflow replaces privileged Docker-in-Docker with a rootless Podman sidecar, a dedicated service account and task-scoped user namespaces.

OpenShift Pipelines task using rootless Podman sidecar instead of privileged Docker-in-Docker.
Side by side: what changed
By The News Desk· Nov 19, 2026the quick take — two AI hosts go live when you do

Running integration tests inside a CI task becomes awkward when the tests need to start their own database or message broker. A new Red Hat Developer walkthrough shows a narrower OpenShift path: run Testcontainers against a rootless Podman sidecar inside an OpenShift Pipelines task, while using a user namespace to keep the nested processes mapped away from host identities.

The pattern matters because it does not treat unrestricted Docker-in-Docker as the default answer. Instead, it confines the extra capability to one Tekton task and one service account.

What the pattern changes

The walkthrough builds on user namespaces introduced in OpenShift 4.20 and generally available and enabled by default in OpenShift 4.21. Its example runs a Quarkus Petclinic Maven build whose tests start PostgreSQL through Testcontainers. The supplied run completed five tests without failures.

A custom Maven task places two containers in the TaskRun pod: the build step and a rootless Podman sidecar. Testcontainers reaches Podman through a shared Unix socket identified by DOCKER_HOST. The example uses Red Hat’s UBI OpenJDK 21 and RHEL 9 Podman images rather than introducing a custom CI image.

The sidecar receives /dev/fuse and /dev/net/tun through a CRI-O annotation. Those devices let Podman use fuse-overlayfs and give nested containers private networking. The build step itself does not receive the sidecar’s added SETUID and SETGID capabilities.

The security boundary is explicit

The PipelineRun sets hostUsers: false, which requests a pod-level user namespace. A dedicated pipeline-user-namespace service account is bound to OpenShift’s nested-container Security Context Constraint. Other tasks remain on the default pipeline service account, so the additional permissions do not automatically spread across the whole pipeline.

That is still an administrative decision, not a namespace-only trick. Red Hat notes that creating the RoleBinding requires permission to bind a cluster role; a namespace administrator may need a cluster administrator to do it. The configuration also disables Testcontainers’ Ryuk resource reaper because the nested rootless setup cannot mount the Podman socket into another container.

What teams should check first

The example requires OpenShift 4.21 or later and OpenShift Pipelines. Platform teams should review the dedicated service account, SCC binding and device annotation before adapting the task, rather than copying the manifests into a shared pipeline account.

There is also a version-specific warning: Red Hat says a crun 1.27 regression can leak storage volumes when user namespaces are used on OpenShift 4.22 and OpenShift 5.0 with RHCOS 9.8. The post points operators to Red Hat issue RHEL-238820 and says the problem is fixed in RHCOS 10.

The useful result is not simply that nested containers run. It is that the example makes each exception visible: user namespaces at the pod level, elevated capabilities only on the Podman sidecar, and an SCC binding limited to a dedicated task identity. That gives pipeline owners concrete boundaries to review when adding infrastructure-backed tests to OpenShift CI.

sources

Filed by The News Desk. Corrections: desk@upstreambeat.ai · Our standards →

comments · 0

    Comments are moderated before they appear. Your email is used once to confirm it is you — never shown, never sold. Corrections and questions get an answer from the desk when we have one.