-
Notifications
You must be signed in to change notification settings - Fork 7
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-16221] uniffi bindings for ssh agent and keygen #89
base: main
Are you sure you want to change the base?
Conversation
Question for whoever reviews: On both the wasm bindings and here, I put the ssh methods on the global "namespace" directly, since things like cryptoclient seemed to be for holding state. They can also act as namespaces though. Should they be moved under something like "sshclient"? |
4a77d22
to
750db94
Compare
No New Or Fixed Issues Found |
51db1f3
to
4d4c67a
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #89 +/- ##
==========================================
+ Coverage 64.75% 65.17% +0.41%
==========================================
Files 190 181 -9
Lines 13979 13854 -125
==========================================
- Hits 9052 9029 -23
+ Misses 4927 4825 -102 ☔ View full report in Codecov by Sentry. |
crates/bitwarden-uniffi/src/lib.rs
Outdated
pub fn generate_ssh_key( | ||
&self, | ||
key_algorithm: bitwarden_ssh::generator::KeyAlgorithm, | ||
) -> Result<bitwarden_ssh::SshKey> { | ||
bitwarden_ssh::generator::generate_sshkey(key_algorithm) | ||
.map_err(|e| error::BitwardenError::E(error::Error::SshGeneration(e))) | ||
} | ||
|
||
pub fn import_ssh_key( | ||
&self, | ||
imported_key: String, | ||
password: Option<String>, | ||
) -> Result<bitwarden_ssh::SshKey> { | ||
bitwarden_ssh::import::import_key(imported_key, password) | ||
.map_err(|e| error::BitwardenError::E(error::Error::SshImport(e))) | ||
} |
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.
issue: Please make a client for these, we don't want them in the root.
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.
Updated and moved to a client, should we do the same for wasm in a follow-up pr?
🎟️ Tracking
https://bitwarden.atlassian.net/browse/PM-16221
📔 Objective
Adds bindings so we can add keygen and import to the mobile clients.
⏰ Reminders before review
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 confirmedissue 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