← 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

Requests build-time variables for the _daemon_ run-user UID/GID to replace hardcoded 584792 values; it remains open, unlabelled, and overlaps #1291.

Suggested action: needs triage

Reason: The request identifies the exact hardcoded value and proposes CRAFT_NON_ROOT_UID and CRAFT_NON_ROOT_GID; the current code still defines _daemon_ as 584792, with no matching variables found. The only comment links #1291 and offers to handle both issues, but there are no labels or other evidence of maintainer triage, and the relationship between exporting variables and executing parts as run_user should be resolved.

Evaluated by: mr-cal-bot

Impact: 40 Quick Win: 17 Complexity: 38 Confidence: 89 Actionability: 67

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
stealth/space-bunny-alpha
Impact: 40
Quick Win: 17
Complexity: 38
Confidence: 89
Actionability: 67
needs triage Requests build-time variables for the _daemon_ run-user UID/GID to replace hardcoded 584792 values; it remains open, unlabelled, and overlaps #1291.
stealth/space-bunny-alpha
Impact: 35
Quick Win: 13
Complexity: 40
Confidence: 68
Actionability: 60
needs triage Feature request to expose env vars (e.g. CRAFT_NON_ROOT_UID/GID) for the daemon run_user so downstream rocks stop hardcoding 584792. One commenter linked overlapping #1291 and offered to work on it.
stealth/space-bunny-alpha
Impact: 28
Quick Win: 12
Complexity: 30
Confidence: 84
Actionability: 61
needs triage Rockcraft lacks dedicated UID/GID variables for the daemon run user, leaving downstream scripts to hardcode 584792. A commenter linked overlapping issue #1291 and offered to work on it.
qwen3.6-35b-a3b-mtp-q6
Impact: 55
Quick Win: 36
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: canonical/rockcraft#1291 (confidence 98%)

    Explicitly linked by the commenter; #1291 requests executing parts as the configured run_user and could address some hardcoded UID/GID usage.

Related issues

No related issues found above the similarity threshold.