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

Pick correct cert when signing Connect #15344

Merged
merged 3 commits into from
Aug 10, 2022
Merged

Conversation

ravicious
Copy link
Member

@ravicious ravicious commented Aug 9, 2022

There are multiple Apple Developer ID certs available on our darwin build machines. By default, electron-builder tries to automatically pick one that can be used for signing the app.

However, in gravitational/webapps#1033 we're trying to grant access to Connect so that it can use the same Touch ID Secure Enclave keys as tsh.app. To do that we need to distribute a provisioning profile. A provisioning profile is bound to a single specific Apple Developer ID. Alan and I made it so that the provisioning profile for Connect is going to be bound to the same Dev ID as the provisioning profile for tsh.app.

Unfortunately, the Dev ID cert picked by default by electron-builder is not the one bound to the provisioning profile. This PR makes it so that the correct Dev ID is picked.

This change shouldn't have any effect on the whole process until we add the provisioning profile but I'm making a tag build to verify again that this change doesn't break the signing process. I'll post a link to the signed build once Drone uploads the build.

@github-actions github-actions bot removed the request for review from codingllama August 9, 2022 14:43
Copy link
Contributor

@codingllama codingllama left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice.

@ravicious
Copy link
Member Author

I verified that 11.0.0-dev.13 still works and since this PR got approved already I'm just going to merge it.

@ravicious ravicious enabled auto-merge (squash) August 10, 2022 09:19
@ravicious ravicious merged commit a4e35a1 into master Aug 10, 2022
@github-actions
Copy link

@ravicious See the table below for backport results.

Branch Result
branch/v10 Failed

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

Successfully merging this pull request may close these issues.

4 participants