-
-
Notifications
You must be signed in to change notification settings - Fork 53
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
Add ability to access named keychains in macOS. #44
Comments
Thanks for making the PR. I think that the functionality looks fine, I'm just a bit wary because I haven't created any guardrails in terms of keeping the interface consistent across each OS. I created this when I was newer at Rust, so I didn't really think about having a trait Perhaps I'll ask in one of the rust forums. And let me know if you have any feedback on this. |
I asked the question here: https://users.rust-lang.org/t/trait-necessary-for-cross-platform-interface/44581 |
Just want to ping some recent contributors about this. Having a Keyring trait would be a breaking change. |
@hwchen any update on how you want to move forward on this? |
I think I will just add this functionality as you’ve implemented in your pull request, and then think about using traits for a new major version. Hopefully I’ll get to it this weekend. |
gentle bump! |
Hi @nagasunilt , we are revamping platform support for keyring and have not lost track of this issue. Both Mac and Linux support multiple named keychains (although Mac has now deprecated using file-based keychains so only the OS ones are available). We will look at how to support opening other than the default keychain on all platforms. Thanks! |
closed with merge of #70 |
Current macOS implementation uses the default keychain by default and does not support opening specific keychain. This limits our ability to open system keychain since default keychain is almost always login keychain on macOS. What is the best possible to add this support to current implementation? I made this PR but open to any better implementation if there is one.
Ideally looking for functionality similar to https://developer.apple.com/documentation/security/1396431-seckeychainopen and https://github.com/kornelski/rust-security-framework/blob/master/security-framework/src/os/macos/keychain.rs#L36
The text was updated successfully, but these errors were encountered: