coreos / coreos/coreos-assembler

RFC: Remove `builder` user from container image

Open
#2,223 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
393
Forks
193
Avg merge
17h 6m
Merged PRs (30d)
5

Description

Right now, we have

USER builder

in our Dockerfile. This causes incompatibilities with GitHub Action because it assumes that it runs as root.

We should consider removing it. This should not affect OpenShift, which always runs as non-root anyway (by default). It may affect developers who use the cosa bash alias though.

See related discussions in https://github.com/coreos/fedora-coreos-config/pull/932.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the Dockerfile containing USER builder and review how the cosa bash alias invokes the image. Check the related discussion in coreos/fedora-coreos-config pull request 932, then verify whether removing the user preserves the stated OpenShift behavior and resolves GitHub Actions compatibility.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker
Domain
build-system
Issue type
Refactor
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.