Skip to content
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

[PM-15937] ssh agent: fix first start when no .bitwarden-ssh-agent.sock exists #12356

Merged
merged 2 commits into from
Dec 12, 2024

Conversation

Icelk
Copy link
Contributor

@Icelk Icelk commented Dec 11, 2024

🎟️ Tracking

#10825

📔 Objective

When starting the ssh-agent the first time on unix, the rust code tries to remove the previous ssh-agent socket. On first time setup, there is no file, so it fails. This change makes it fail gracefully when no file is found.

⏰ Reminders before review

  • Contributor guidelines followed
  • All formatters and local linters executed and passed
  • Written new unit and / or integration tests where applicable
  • Protected functional changes with optionality (feature flags)
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation (Confluence, contributing docs) or informed the documentation team

🦮 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

@Icelk Icelk requested review from a team as code owners December 11, 2024 19:01
@Icelk Icelk requested a review from dani-garcia December 11, 2024 19:01
@CLAassistant
Copy link

CLAassistant commented Dec 11, 2024

CLA assistant check
All committers have signed the CLA.

@bitwarden-bot
Copy link

Thank you for your contribution! We've added this to our internal Community PR board for review.
ID: PM-15937
Link: https://bitwarden.atlassian.net/browse/PM-15937

Details on our contribution process can be found here: https://contributing.bitwarden.com/contributing/pull-requests/community-pr-process.

@bitwarden-bot bitwarden-bot changed the title ssh agent: fix first start when no .bitwarden-ssh-agent.sock exists [PM-15937] ssh agent: fix first start when no .bitwarden-ssh-agent.sock exists Dec 11, 2024
@dani-garcia dani-garcia requested a review from quexten December 11, 2024 19:10
@quexten
Copy link
Contributor

quexten commented Dec 11, 2024

Ohh, interesting. I think this error was introduced as a result of a last minute security fix (#12048).

I will test the PR closely tomorrow and give the final approval. Thank you for the PR!

Copy link
Contributor

@quexten quexten left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good, I've reproduced the bug and confirmed this fixes it. Thank you!

@quexten
Copy link
Contributor

quexten commented Dec 12, 2024

@Icelk Could you accept the CLA? (If you've already done that, also let me know. I know the CLAssistant was buggy the past few weeks).

Copy link
Contributor

Logo
Checkmarx One – Scan Summary & Details80a55b62-cf38-4286-aa1d-cc1e8526e0f6

No New Or Fixed Issues Found

@Icelk
Copy link
Contributor Author

Icelk commented Dec 12, 2024

Could you accept the CLA? (If you've already done that, also let me know. I know the CLAssistant was buggy the past few weeks).

Just did, thanks for reminding me :)

And also thank you for developing Bitwarden and all it's components! It's a great project and hugely appreciated.

@quexten
Copy link
Contributor

quexten commented Dec 12, 2024

Nice, thanks again for the PR!

@quexten quexten merged commit 6174691 into bitwarden:main Dec 12, 2024
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants