Skip to content

Use non-root user for Docker image#89

Merged
lukidoescode merged 4 commits intomainfrom
lwagner/86-docker-non-root
Mar 30, 2026
Merged

Use non-root user for Docker image#89
lukidoescode merged 4 commits intomainfrom
lwagner/86-docker-non-root

Conversation

@lukidoescode
Copy link
Copy Markdown
Owner

@lukidoescode lukidoescode commented Mar 30, 2026

Add dynamic UID matching via su-exec so the cargo-changeset process never runs as root. The entrypoint detects the workspace owner's UID/GID and drops privileges accordingly.

lukidoescode and others added 2 commits March 30, 2026 23:20
Add dynamic UID matching via su-exec so the cargo-changeset process
never runs as root. The entrypoint detects the workspace owner's
UID/GID and drops privileges accordingly.
@lukidoescode lukidoescode changed the title Use non-root user for Docker image (#86) Use non-root user for Docker image Mar 30, 2026
su-exec resets HOME based on /etc/passwd, which falls back to / for
UIDs without a passwd entry. Use env to explicitly set HOME so git
config writes succeed regardless of the container UID.
…cargo-changeset into lwagner/86-docker-non-root
@lukidoescode lukidoescode merged commit 6fd40c0 into main Mar 30, 2026
14 checks passed
@lukidoescode lukidoescode deleted the lwagner/86-docker-non-root branch March 30, 2026 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use non-root user for docker image

1 participant