FLPATH-4764 | [dcm-ui] Helm-deployed dcm-ui crashloops on OpenShift due to /app directory permissions (mode 700) - #4171
Conversation
|
PR Summary by QodoMake DCM image OpenShift arbitrary-UID compatible by fixing /app ownership
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
Code Review by Qodo
1. Overwritable /app tree
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4171 +/- ##
=======================================
Coverage 58.06% 58.06%
=======================================
Files 2411 2411
Lines 96367 96367
Branches 26856 26859 +3
=======================================
Hits 55953 55953
+ Misses 40215 40179 -36
- Partials 199 235 +36
*This pull request uses carry forward flags. Click here to find out more. Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|



chown -R node:0 /app: Changes group ownership from node (GID 1000) to root (GID 0).
chmod -R g=u /app: Ensures every file and directory has identical permissions for group members as the node user. Directories become drwxrwxr-x, allowing OpenShift’s random UID in GID 0 to enter /app and load modules.
USER 1000: Explicit UIDs (instead of the named string USER node) are standard for OCI containers, though both work once GID 0 permissions are in place.