Tekton Pipelines 1.16 turns on restricted security contexts by default
The release improves compatibility with Kubernetes restricted Pod Security Standards, but user-authored steps and sidecars still need their own settings.
Tekton Pipelines 1.16 changes a security default that platform teams should review before upgrading: set-security-context is now enabled by default for containers Tekton injects into TaskRuns and for Affinity Assistants.
The project published version 1.16.0 on Aug. 31 and labels the change as requiring action. Tekton says the new default is intended to align generated workloads with Kubernetes security practices and improve operation in namespaces enforcing the restricted Pod Security Standard.
What changed
With the flag enabled, Tekton-generated containers receive a restricted security context, including runAsNonRoot: true. The change applies to Tekton-injected TaskRun containers and Affinity Assistants, according to the release notes and the implementation pull request.
That scope matters. Tekton does not add the same settings to user-defined Steps and Sidecars. Pipeline authors remain responsible for supplying security contexts that are compatible with restricted namespaces for those containers.
The release notes include an explicit rollback: operators whose images or Kubernetes implementation are incompatible with the generated settings can set set-security-context to "false" in Tekton's feature-flags configuration.
What operators should check
Before moving production controllers to 1.16, platform teams should test representative TaskRuns in namespaces that match their production Pod Security admission settings. Images that assume root execution are the most obvious compatibility risk when Tekton applies runAsNonRoot to injected containers.
Teams should also inspect pipeline definitions rather than assuming the controller now makes every container restricted-compatible. User-supplied Steps and Sidecars remain outside the feature flag's scope, so those definitions may still need explicit securityContext fields.
Beyond the default change, 1.16 adds tracing spans around task-parameter and workspace substitution and fixes the lifecycle of root reconciliation spans so they cover the full TaskRun and PipelineRun reconciliation cycle. Those changes are aimed at observability and performance analysis rather than pipeline behavior.
Tekton Pipelines is upstream of Red Hat OpenShift Pipelines, but this upstream release is not itself a statement about when or how the change will appear in a supported Red Hat product. OpenShift administrators should use the release notes for their installed operator channel when planning a product upgrade.
sources
comments · 0