-
Notifications
You must be signed in to change notification settings - Fork 1.5k
[PM-28220] Fix desktop deb/AppImage startup failure #17509
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
Claude finished @dereknance's task —— View job PR Review Analysis
SummaryThis PR attempts to revert memory dumping protection but is too broad in scope. The current revert removes security protections from all Linux package types, including Flatpak which is not affected by the startup failures. Critical FindingsFinding 1: ❌ Incomplete revert leaves codebase in inconsistent state The PR only reverts
This creates several problems:
Finding 2: ❌ Security regression affects unaffected package types Per @quexten's review, Flatpak is not affected by the startup failures. This PR removes memory dumping protection from Flatpak unnecessarily, exposing users to security risks (passwords and keys can be dumped from renderer process memory). Finding 3: The commit title says "Disable process isolation for deb,rpm,AppImage" but the implementation disables it for all non-snap packages including Flatpak. Recommended ApproachBased on @quexten and @trmartin4's discussion, the correct fix is: Option 1: Targeted disable (recommended) # In linux-wrapper.sh, modify the condition to exclude problematic package types
if [ -z "$SNAP" ] && [ -f "$APP_PATH/libprocess_isolation.so" ]; then
# Only enable for package types known to work
# AppImage sets $APPIMAGE, deb/rpm don't set special env vars
if [ -n "$FLATPAK_ID" ]; then
# Enable for Flatpak (not affected by the bug)
LIBPROCESS_ISOLATION_SO="$APP_PATH/libprocess_isolation.so"
LD_PRELOAD="$LIBPROCESS_ISOLATION_SO${LD_PRELOAD:+:$LD_PRELOAD}"
export LD_PRELOAD
fi
fiOption 2: Feature flag approach Additional Considerations
Non-Security Items💭 Finding 4: The commit title says "Disable process isolation for deb,rpm,AppImage" but this is a revert commit. Consider whether the title should reflect that it's a revert (though the PR title does indicate this). Recommendation: This PR should not be merged as-is. Please implement a targeted fix that only disables process isolation for affected package types (AppImage, deb, rpm) while preserving security for Flatpak users. |
|
New Issues (1)Checkmarx found the following issues in this Pull Request
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #17509 +/- ##
=======================================
Coverage 41.23% 41.24%
=======================================
Files 3543 3543
Lines 101963 101963
Branches 15295 15295
=======================================
+ Hits 42048 42055 +7
+ Misses 58152 58145 -7
Partials 1763 1763 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of reverting the commit, can we consider only disabling it in the linux-wrapper.sh? The change here is re-intorducing risk of exfiltrating passwords and keys from the renderer process and there is no reason to disable it on e.g. flatpak.
9f35434 to
3c9e7f3
Compare
quexten
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @dereknance. Changes LGTM. I may in the future debug this further, but it's not a high priority for me as long as flatpak remains having the protections.
(Again a further argument to guide people towards the flatpak installation).


🎟️ Tracking
PM-28220
📔 Objective
This PR reverts a change made to the desktop client in #16136 as it unfortunately resulted in the client failing to start for
deb,rpm, andAppImagebuilds.📸 Screenshots
⏰ Reminders before review
🦮 Reviewer guidelines
:+1:) or similar for great changes:memo:) or ℹ️ (:information_source:) for notes or general info:question:) for questions:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion:art:) for suggestions / improvements:x:) or:warning:) for more significant problems or concerns needing attention:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt:pick:) for minor or nitpick changes