Skip to content

fix: restore group 0 as primary group for runtime user#203

Merged
Chengxuan merged 1 commit into
mainfrom
fix/restore-root-group-for-runtime-user
Jul 8, 2026
Merged

fix: restore group 0 as primary group for runtime user#203
Chengxuan merged 1 commit into
mainfrom
fix/restore-root-group-for-runtime-user

Conversation

@EnriqueL8

Copy link
Copy Markdown
Contributor

PR #173 added an explicit passwd entry for uid 1001 with primary group 1001 (evmgroup). Previously the bare 'USER 1001' had no passwd entry, so the runtime user's primary group defaulted to 0 (root).

The FireFly CLI initializes the evmconnect data volume with 'chgrp -R 0 && chmod -R g+rwX' (the group-0 convention, matching the ADD/COPY --chown=1001:0 lines in this Dockerfile), so a runtime user outside group 0 can no longer write to it. Every release since v1.4.1 fails against a CLI-created stack with:

PR #173 added an explicit passwd entry for uid 1001 with primary group
1001 (evmgroup). Previously the bare 'USER 1001' had no passwd entry, so
the runtime user's primary group defaulted to 0 (root).

The FireFly CLI initializes the evmconnect data volume with
'chgrp -R 0 && chmod -R g+rwX' (the group-0 convention, matching the
ADD/COPY --chown=1001:0 lines in this Dockerfile), so a runtime user
outside group 0 can no longer write to it. Every release since v1.4.1
fails against a CLI-created stack with:

Signed-off-by: Enrique Lacal <enrique.lacal@kaleido.io>
@EnriqueL8 EnriqueL8 requested a review from a team as a code owner July 8, 2026 10:08

@Chengxuan Chengxuan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM Thanks for the fix @EnriqueL8

@Chengxuan Chengxuan merged commit 3d30173 into main Jul 8, 2026
4 checks passed
@Chengxuan Chengxuan deleted the fix/restore-root-group-for-runtime-user branch July 8, 2026 10:20
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.

2 participants