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-10413] ssh keygen on web and browser #12176

Merged
merged 37 commits into from
Jan 8, 2025

Conversation

quexten
Copy link
Contributor

@quexten quexten commented Nov 28, 2024

🎟️ Tracking

https://bitwarden.atlassian.net/browse/PM-10413

📔 Objective

Removes ssh-keygen from desktop native and switches over to using the sdk. Further, this adds ssh-keygen support on all clients.

📸 Screenshots

Screen.Recording.2024-11-28.at.14.29.30.mov

⏰ 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

@quexten quexten changed the title [PM-10413] ssh keygen web client [PM-10413] ssh keygen on web and browser Nov 28, 2024
Copy link
Contributor

github-actions bot commented Nov 28, 2024

Logo
Checkmarx One – Scan Summary & Detailsae3284f0-553a-4c47-a09f-1d921f1fa926

Fixed Issues

Severity Issue Source File / Package
MEDIUM Client_Privacy_Violation /apps/browser/src/background/runtime.background.ts: 374

@quexten quexten marked this pull request as ready for review November 28, 2024 13:49
@quexten quexten requested review from a team as code owners November 28, 2024 13:49
Copy link

codecov bot commented Nov 28, 2024

Codecov Report

Attention: Patch coverage is 28.33333% with 43 lines in your changes missing coverage. Please review.

Project coverage is 34.15%. Comparing base (3949aae) to head (4497fee).
Report is 2 commits behind head on main.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
...angular/src/vault/components/add-edit.component.ts 0.00% 21 Missing ⚠️
...ponents/sshkey-section/sshkey-section.component.ts 25.00% 15 Missing ⚠️
...ew-item-dropdown/new-item-dropdown-v2.component.ts 75.00% 0 Missing and 2 partials ⚠️
.../desktop/src/vault/app/vault/add-edit.component.ts 0.00% 2 Missing ⚠️
...access/view/emergency-add-edit-cipher.component.ts 66.66% 0 Missing and 1 partial ⚠️
...c/app/vault/individual-vault/add-edit.component.ts 66.66% 0 Missing and 1 partial ⚠️
.../web/src/app/vault/org-vault/add-edit.component.ts 66.66% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main   #12176   +/-   ##
=======================================
  Coverage   34.15%   34.15%           
=======================================
  Files        2936     2936           
  Lines       90192    90227   +35     
  Branches    16928    16940   +12     
=======================================
+ Hits        30807    30820   +13     
- Misses      56938    56952   +14     
- Partials     2447     2455    +8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

dani-garcia
dani-garcia previously approved these changes Dec 2, 2024
Copy link
Contributor

Choose a reason for hiding this comment

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

Looked over code and it looks like good work was done. I am a new hire so if you'd like more senior eyes on this please let me know and I'll rope in someone.

@quexten
Copy link
Contributor Author

quexten commented Dec 3, 2024

Resolved merge conflicts; also note: Removed the "regenerate" button, after this came up as a potential confusing point in a meeting. So ssh keys are now only generated when creating a new item.

@quexten quexten requested a review from dani-garcia December 10, 2024 15:30
@quexten
Copy link
Contributor Author

quexten commented Jan 7, 2025

Resolved merge conflicts (seems just one file got removed).

dani-garcia
dani-garcia previously approved these changes Jan 7, 2025
coltonhurst
coltonhurst previously approved these changes Jan 7, 2025
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks good to me. 👍

@quexten
Copy link
Contributor Author

quexten commented Jan 8, 2025

Seems updating the base branch cause some cargo conflict, fixed now.

dani-garcia
dani-garcia previously approved these changes Jan 8, 2025
@quexten quexten merged commit bb2961f into main Jan 8, 2025
87 of 88 checks passed
@quexten quexten deleted the km/pm-10413/ssh-keygen-web-client branch January 8, 2025 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants