-
Notifications
You must be signed in to change notification settings - Fork 218
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
Allow kSecAttrService to be a customer-friendly string on Mac #140
Comments
Oh, snap. No, we don't have a way to change the name of the keychain, since that's supposed to be an implementation detail. Honestly, we hadn't thought of this case. I assume the above dialog happens with the We can take it as a feature request to allow folks to customize their For now, classifying this as an enhancement request. |
I second this! |
|
@abey & @gregcotten, do you know under what situations macOS prompts the user with the keychain identifier vs not? That info would be really helpful for helping us scope the work we have to do for this issue. |
I will try to do some tests tomorrow!
…On Tue, Jul 10, 2018 at 10:59 PM Dan Federman ***@***.***> wrote:
@abey <https://github.com/abey> & @gregcotten
<https://github.com/gregcotten>, do you know under what situations macOS
prompts the user with the keychain identifier vs not? That info would be
really helpful for helping us scope the work we have to do for this issue.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#140 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AA4bNv2EKNYzrJIQnsVBw6jpZ5JSMr2_ks5uFZRIgaJpZM4UVgyQ>
.
|
As far as I know, this can happen when the code signing identity of the app launched app doesn’t match a know signature, for example when a user tries a Developer ID signed trial, then buys the app from the Mac App Store. |
Thank you for the explanation @antons! @abey and @gregcotten, does the above jive with your experience? I’m tempted to say that if the |
@dfed I wouldn’t say that the code signing is “wrong”. Developer ID and MAS are both valid ways to sign a public release. The real world example with a trial was meant to underline that I’d like to see the issue fixed as well. It’s not great when implementation details leak into UI like this. |
What led to the “codesigning is wrong” statement was the phrase “doesn’t match a known signature”. That sounds like the configuration is incorrect, no? Ensuring that the Please note I have only released first-party macOS apps before... so how 3rd-party Mac app signing works is pretty new to me. Let’s back up a bit: can one of ya’ll explain what kind of scenarios can lead to this kind of dialog, and if these scenarios can be fixed by changing codesigning prior to ship? |
@dfed Ah, for someone unfamiliar with direct distribution Developer ID might sound like something that would be used on development devices, but it’s not. :-) Apps distributed on MAS are signed by Apple using their certificate, Apps distributed directly are signed using a Developer ID. Code signatures are different, but both are valid and correct. We distribute trials and beta versions signed with Developer ID. As far as I can see, the keychain password prompt appears when an app with a new unknown signature tries to access an existing keychain item. This means that every trial user will see the password prompt on the first launch of MAS version. Apps cannot be signed using MAS certificate for direct distribution. I doubt that code signing changes can fix this problem. |
Thank you for the detailed explanation! That makes sense. So it is common practice in Mac apps to make the Sounds like we need to add this API for our Mac folks. We’ll need a giant Here Be Dragons comment block with why you shouldn’t use it, but we’ll make it 🙂 |
@dfed I haven’t used keychain without Valet for a few years, so I don’t know. :-) It’d be great if there was a migration API to transfer existing items to the new identifier. |
This has been merged into |
Great work! 🙌 |
@antons you should be able to utilize the existing migration API, since you'll be creating a Valet with the new explicit identifier, and can always migrate between Valets. Just remember to make your explicit identifier globally unique! If you ever change anything about the configuration in a Valet with an explicitly set identifier, remember to change the Valet's identifier at the same time. |
@dfed This is great, thank you! |
I'd been working on a project with uses valet and I was curious to know if I could change the name of the location to something more simple.
For example, I would like it to display something like "Storage Space" instead of "VAL_VALValet_initWi...."
The text was updated successfully, but these errors were encountered: