-
Notifications
You must be signed in to change notification settings - Fork 25
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
Using the mackms package to load keys that do not have a tag attribute set #595
Comments
Hey @jwright-stripe 👋, thanks for opening the issue! A couple questions before addressing the specific issue -
On to the issue, we discussed it briefly during a triage meeting earlier today and it sounded like it wouldn't be too challenging to update how the tagging works. I think @maraino had an idea of how to implement, so I'll let him take it from here. Cheers 🍻 |
Hey @dopey! Great questions. I'm just pulling this in on its own. We have some tooling that manages keys in the macOS keychain today and I happened to notice the That said, I'm a big fan of step-ca and pretty much y'all's entire ecosystem so while we don't leverage it today, just know I'm cheering for y'all on the sidelines- y'all are doing great work across the board! 🎉 And that sounds good re: the implementation. If there's an approach y'all think fits the design goals you have, let me know and I'd be happy to take a pass at implementation to save y'all some time. |
@jwright-stripe I've created the PR #600 that implements this. But instead of using the parameter Feel free to add comments to the PR, if you think the approach is not the right one. |
@maraino That approach sounds great to me! Very clever, and setting an empty Thank you so much! |
@jwright-stripe I've just tagged v0.53.0 with the new changes. |
What would you like to be added?
Hey there!
I really like the
mackms
package- it makes working with the keychain from Go really pleasant. 🎉One issue I'm running into is that the current URI structure sets a default
tag
attribute if one is not provided. This makes it not possible to work with existing keys that do not have a tag on them today.It doesn't appear possible to explicitly tell
mackms
to not add a tag attribute to theSecItemCopyMatching
queries.Is this something that you'd be open to considering? I know that changing the existing default behavior wouldn't be backwards compatible. Just tossing out an option, maybe an approach for supporting
null*
style parameters in the URI, e.g.label=my-name;hash=ccb792f9d9a1262bfb814a339876f825bdba1261;nulltag=true
might work for explicitly unsetting attributes.Note that this might require adding more conditionals like this one so that tags are truly excluded from the search dictionary.
Why this is needed
This will make it easier to work with existing keychain items that may not have particular attributes like tags.
I'm happy to help with this if there's an approach you like, but either way I appreciate y'all considering this! Keep up the great work.
The text was updated successfully, but these errors were encountered: