bug: deploy.sh runs as root but needs to switch to alpha user #137
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Competitor
Kind/Documentation
Kind/Enhancement
Kind/Epic
Kind/Feature
Kind/Security
Kind/Story
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Scope/Core
Scope/Cross-Plugin
Scope/Plugin-System
Scope/Single-Plugin
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ultanio/cobot#137
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bug
The CI deploy workflow SSH's in as root (forced by
command=in authorized_keys). The deploy.sh script needs to handle this by switching to the alpha user viasudo -u alpha.Additionally, the deploy script uses
git fetch forgejo mainbut the systemd service does not load the PPQ_API_KEY environment variable when not started via the env file.Workarounds Applied
whoamiand exec'ssudo -u alphaif rootchown -R alpha:alpha)Expected
Deploy should handle the root→alpha user switch cleanly and ensure the service restarts with proper environment.