← Back to issue list

Create dedicated variables for daemon UID, GID

View original Github issue

Metadata

Project
rockcraft
Number
#1290
Type
issue
State
open
Author
sed-i
Labels
Created
Updated
Closed

Current evaluation

Feature request to create CRAFT_NON_ROOT_UID and CRAFT_NON_ROOT_GID environment variables to replace hardcoded 584792 values. Unlabelled, awaiting maintainer triage.

Suggested action: needs triage

Reason: The issue has no labels, no assignee, and no maintainer response (only a community member comment from @OchukoWH offering to work on it). The hardcoded value 584792 appears 94 times across the codebase, making this a legitimate feature request for better maintainability. However, it requires maintainer assessment to prioritize and scope the work.

Impact: 55 Quick Win: 35.75 Staleness: 45 Complexity: 35 Confidence: 75 Support Request: 20

Issue body

### Check existing issues - [x] I've verified that this request isn't described by any existing issues. ### Request It would be handy to have vars such as `CRAFT_NON_ROOT_UID` and `CRAFT_NON_ROOT_GID`. ### The problem it solves Currently, the [docs](https://documentation.ubuntu.com/rockcraft/latest/reference/rockcraft-yaml/#run-user) state: > Currently, the only supported shared user is _daemon_ (UID/GID 584792). If unset, the user root (UID/GID 0) is selected as the default OCI user. As a result, we end up with the `584792` literal [sprinkled](https://github.com/canonical/alertmanager-rock/pull/64) in spread scripts and rockcraft `*-override` parts.

Evaluation history

Date Model Scores Action Summary
qwen3.6-35b-a3b-mtp-q6
Impact: 55
Quick Win: 35.75
Staleness: 45
Complexity: 35
Confidence: 75
Support Request: 20
needs triage Feature request to create CRAFT_NON_ROOT_UID and CRAFT_NON_ROOT_GID environment variables to replace hardcoded 584792 values. Unlabelled, awaiting maintainer triage.
qwen/qwen3.6-35b-a3b
Staleness: 10
Complexity: 10
Confidence: 85
Support Request: 5
needs triage Request to add environment variables for daemon UID/GID to avoid hardcoding 584792. Recently linked to related issue #1291 and offered for implementation. Awaiting maintainer triage.
qwen3.6-35b-a3b-mtp-q6
Staleness: 5
Complexity: 15
Confidence: 90
Support Request: 10
needs triage Request to add dedicated environment variables for the default daemon UID and GID to avoid hardcoding the literal 584792 in scripts and overrides. Untriaged, no maintainer response.

Update history

Date Change
updated

Related work

  • Related To: rockcraft#1291 (confidence 85%)

    Comment from @OchukoWH explicitly links this to Issue 1291 'Execute parts as run_user', which is also an open feature request about avoiding manual chmod/chown steps.

Related issues

No related issues found above the similarity threshold.