﻿# Image group membership can expand a Pod identity under Merge

A practical investigation of image group membership can expand a Pod identity under Merge, with explicit observations, control cases and evidence limits.

Author: Retrivium team
Updated: 2026-11-06
Canonical URL: https://retrivium.ai/journal/field-security-kubernetes-supplemental-groups-merge-strict/
Language: en

## The operational scenario

A nonroot model container declares its primary group and an explicit supplementary group, yet it reads a synthetic volume file through another group. The image also defines group membership for that user. The review must establish how the container identity was constructed, instead of assuming that every group capable of granting filesystem access appears explicitly in the Pod manifest.

## The trust-boundary mechanism

Kubernetes documents Merge as combining the primary image user group memberships with declared groups. Strict limits the supplementary groups attached through this policy to the declared fsGroup, supplementalGroups and runAsGroup fields. This changes identity construction, not file ownership semantics. A matching volume group can therefore grant access under Merge even when the author expected a complete group list from the manifest alone.

## Define the control contract

Define the intended launch identity and required volume access before choosing Strict. Inventory image group membership, declared fields and the node runtime capability. Support matters: documented older alpha behavior could fall back to Merge, while the later beta behavior rejects unsupported Strict placement. Preserve the deployed version and observed support rather than treating an accepted manifest field as universal enforcement across a mixed node pool.

## A step-by-step verification

First prepare an image with an artificial extra group and a disposable file readable through that group alone. Launch controlled Merge and Strict variants on an explicitly supported node. Inspect actual process groups and test the file read without exposing model data. Then verify the workload still reads its intended artifacts. Finally record the behavior on unsupported placement through documentation or an authorized fixture, keeping fallback distinct from rejection.

## Evidence required for acceptance

Acceptance requires the image identity, effective policy, node support and file-access outcomes. Kubernetes can expose the identity initially attached to the first container process, but its documentation warns that sufficiently privileged code can later change identity. Inspect the actual serving process where that matters. Linux supplementary-group inspection and the effective group ID also need careful interpretation rather than relying on an incomplete single-field status record.

## Failure cases and limits

Strict does not itself make a volume read-only, repair ownership or establish tenant isolation. A process with additional privilege may change identity after launch; unrelated credentials remain separate authority. The review establishes whether unintended image groups entered the initial filesystem permission boundary. It should preserve functional artifact access while making extra group membership visible, without presenting group policy as a complete container security certificate.

## Primary references and related reading

Strict controls launch-time supplementary-group calculation; runtime support and the actual process identity still need verification. [Kubernetes supplemental group policy](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/); [Linux supplementary group inspection](https://man7.org/linux/man-pages/man2/getgroups.2.html).

The proposed investigation of kubernetes supplemental groups merge strict is a proposed control review; no live security test was executed. Related reading: [Grant model-volume access without changing every file manually](/journal/guide-ks-fsgroup-artifact/); [Read-only container will not start: where to allow temporary and cache writes](/journal/read-only-container-writable-caches/).
