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

Add ability to access named keychains in macOS. #44

Closed
nagasunilt opened this issue Jun 20, 2020 · 8 comments
Closed

Add ability to access named keychains in macOS. #44

nagasunilt opened this issue Jun 20, 2020 · 8 comments
Assignees

Comments

@nagasunilt
Copy link
Contributor

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

@hwchen
Copy link
Owner

hwchen commented Jun 20, 2020

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 Keyring that each OS would implement, with extension traits specific to each OS. I guess I'm just not sure whether that would be that helpful here, though, since the library is pretty simple.

Perhaps I'll ask in one of the rust forums. And let me know if you have any feedback on this.

@hwchen
Copy link
Owner

hwchen commented Jun 20, 2020

@hwchen
Copy link
Owner

hwchen commented Jun 23, 2020

Just want to ping some recent contributors about this. Having a Keyring trait would be a breaking change.

@MaikKlein @moritzheiber @bhkaminski

@nagasunilt
Copy link
Contributor Author

@hwchen any update on how you want to move forward on this?

@hwchen
Copy link
Owner

hwchen commented Jul 4, 2020

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.

@nagasunilt
Copy link
Contributor Author

gentle bump!

@adobeDan
Copy link
Collaborator

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!

@brotskydotcom
Copy link
Collaborator

closed with merge of #70

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants