Skip to content

worker: add --numeric-owner to tar commands when streaming volumes - #9663

Merged
taylorsilva merged 1 commit into
masterfrom
9662-tar-numeric-owner
Jul 28, 2026
Merged

taylorsilva merged 1 commit into
masterfrom
9662-tar-numeric-owner

Conversation

@taylorsilva

Copy link
Copy Markdown
Member

Changes proposed by this PR

closes #9662

File ownership on streamed volumes is now preserved numerically rather than re-resolved by name on the destination, which is the default tar behaviour. This caused issues if workers had different UID->User mappings, which is NOT a common setup for workers. After streaming, we'd re-map to the UID mapping inside the container and that's when ownership would break.

I don't think this will break anything for existing Concourse clusters that don't already have this issue. You'd only have this issue if the UID mapping on your workers were different, which is typically NOT the case when people setup a Concourse cluster. Workers are typically homogeneous, avoiding this issue entirely.

file ownership on streamed volumes is now preserved numerically rather
than re-resolved by name on the destination, which is the default tar
behaviour. This caused issues if workers had different UID->User
mappings, which is NOT a common setup for workers. After streaming, we'd
re-map to the UID mapping inside the container and that's when
ownership would break.

go-archive was updated to also use the `--numeric-owner` flag.

Signed-off-by: Taylor Silva <[email protected]>
@taylorsilva
taylorsilva force-pushed the 9662-tar-numeric-owner branch from 07adec4 to 2b58a08 Compare July 28, 2026 15:50
@taylorsilva
taylorsilva merged commit 5804f86 into master Jul 28, 2026
11 checks passed
@taylorsilva
taylorsilva deleted the 9662-tar-numeric-owner branch July 28, 2026 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Image extraction shifts uid 1001 → 1002 on btrfs workers, breaking non-root user tasks

1 participant