Closed quexten closed 1 week ago
Checkmarx One â Scan Summary & Details â 9ea193f9-c892-484b-9c8f-d0015cd028b2
Attention: Patch coverage is 0%
with 2 lines
in your changes missing coverage. Please review.
Project coverage is 33.45%. Comparing base (
eda3885
) to head (8f1190c
). Report is 1 commits behind head on main.
:white_check_mark: All tests successful. No failed tests found.
Files with missing lines | Patch % | Lines |
---|---|---|
...esktop/src/platform/main/main-ssh-agent.service.ts | 0.00% | 2 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
đ¨ Try these New Features:
Merging since it's feature flagged.
đī¸ Tracking
https://bitwarden.atlassian.net/browse/PM-14993 https://bitwarden.atlassian.net/browse/PM-14987 https://bitwarden.atlassian.net/browse/VULN-107
đ Objective
This PR primarily aims to fix a security report. Socket creation should never happen in globally accessible directories (/tmp), so the fallback cannot be to
/tmp
. Instead, if the user has no home directory (which really should never be the case), we just error out. A user can manually overwrite this using the environment variable.Further, this adds an error status to the ssh agent state. This allows us to detect if the ssh agent did not start up properly (f.e due to the socket not being createable, or the named pipe being used by the existing openssh service or 1password in windows). We can later (in a follow up PR) show the agent status in the settings UI, for now this just prevents crashes from trying to use the agent after creation failed.
đ¸ 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