live wire
▸PLATFORM · IBM targets Dec. 4 for four zCX OpenShift add-ons on z/OS, including Quay and Platform PlusIBM Documentation▸SECURITY · Red Hat updates Cryostat 4.3.0 container images on RHEL 9 in RHSA-2026:105018Red Hat Product Errata▸SECURITY · Red Hat releases Quay 3.16.8 container images in Critical advisory RHSA-2026:108012Red Hat Product Errata▸PLATFORM · OpenShift Migration Advisor v0.34.0 exposes RDM disk mappings and storage array identityOpenShift Migration Advisor release notes▸CORRECTION · Apache Camel 4.24.0 fixes 53 published vulnerabilities, not 52 as stated in wire item 1419Apache Camel release notes▸PLATFORM · Red Hat shows how to forecast VM capacity and assess memory overcommit on OpenShift VirtualizationRed Hat Developer▸PLATFORM · Red Hat Satellite 6.20 enters limited availability with Podman-based deployment on RHEL 10Red Hat Blog▸PLATFORM · Red Hat compares SELinux enforcement and application allowlisting on paired RHEL 9.8 hostsRed Hat Developer▸PLATFORM · Red Hat shows how to deploy a sealed RHEL image on EC2 with custom Secure Boot keysRed Hat Developer▸JAVA · Quarkus JMS adds typed destinations, annotation-driven listeners and XA transactions for Quarkus 4 (Dec. 1)Quarkus Blog▸SECURITY · OpenShift 4.14.79 ships updated container images under RHSA-2026:104058Red Hat Product Errata▸SECURITY · RHSA-2026:103513: Red Hat releases OpenShift 4.12.104 with security and bug fixesRed Hat Product Errata▸SECURITY · RHSA-2026:103811: Red Hat ships an Important-rated OpenShift 4.16.76 security updateRed Hat Product Errata▸SECURITY · RHSA-2026:107608: RHEL 8 kernel security updateRed Hat Product Errata▸PLATFORM · IBM targets Dec. 4 for four zCX OpenShift add-ons on z/OS, including Quay and Platform PlusIBM Documentation▸SECURITY · Red Hat updates Cryostat 4.3.0 container images on RHEL 9 in RHSA-2026:105018Red Hat Product Errata▸SECURITY · Red Hat releases Quay 3.16.8 container images in Critical advisory RHSA-2026:108012Red Hat Product Errata▸PLATFORM · OpenShift Migration Advisor v0.34.0 exposes RDM disk mappings and storage array identityOpenShift Migration Advisor release notes▸CORRECTION · Apache Camel 4.24.0 fixes 53 published vulnerabilities, not 52 as stated in wire item 1419Apache Camel release notes▸PLATFORM · Red Hat shows how to forecast VM capacity and assess memory overcommit on OpenShift VirtualizationRed Hat Developer▸PLATFORM · Red Hat Satellite 6.20 enters limited availability with Podman-based deployment on RHEL 10Red Hat Blog▸PLATFORM · Red Hat compares SELinux enforcement and application allowlisting on paired RHEL 9.8 hostsRed Hat Developer▸PLATFORM · Red Hat shows how to deploy a sealed RHEL image on EC2 with custom Secure Boot keysRed Hat Developer▸JAVA · Quarkus JMS adds typed destinations, annotation-driven listeners and XA transactions for Quarkus 4 (Dec. 1)Quarkus Blog▸SECURITY · OpenShift 4.14.79 ships updated container images under RHSA-2026:104058Red Hat Product Errata▸SECURITY · RHSA-2026:103513: Red Hat releases OpenShift 4.12.104 with security and bug fixesRed Hat Product Errata▸SECURITY · RHSA-2026:103811: Red Hat ships an Important-rated OpenShift 4.16.76 security updateRed Hat Product Errata▸SECURITY · RHSA-2026:107608: RHEL 8 kernel security updateRed Hat Product Errata
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.