Skip to content

[v13] darwin: Use notarytool to notarize instead of altool#25454

Merged
camscale merged 1 commit intobranch/v13from
camh/v13/backport-notary-tool
May 2, 2023
Merged

[v13] darwin: Use notarytool to notarize instead of altool#25454
camscale merged 1 commit intobranch/v13from
camh/v13/backport-notary-tool

Conversation

@camscale
Copy link
Copy Markdown
Contributor

@camscale camscale commented May 2, 2023

Switch to using the newer notarytool to notarize MacOS binaries
instead of the older altool, as altool is deprecated and will no
longer work come Fall 2023. This also makes for a quieter build as
altool's output was quite verbose, and anecdotally, it seems to be more
reliable - I haven't had a single notarization failure this way as
opposed to the many we see in CI with altool.

We used to use gon as part of our notarizing tool. gon still has an
open issue to upgrade to notarytool, so we've switched away from it
and used the Apple CLI tools instead to do the notarization. This is
available now that we have moved to GitHub Actions for builds as it has
a newer Xcode that contains notarytool.

Update the Teleport Connect notarization, which was quite a bit simpler,
although we do need an extra $TEAMID input, so handle it when that is
not supplied and document in the README that it is needed.

Backport: #25407

Switch to using the newer `notarytool` to notarize MacOS binaries
instead of the older `altool`, as `altool` is deprecated and will no
longer work come Fall 2023. This also makes for a quieter build as
altool's output was quite verbose, and anecdotally, it seems to be more
reliable - I haven't had a single notarization failure this way as
opposed to the many we see in CI with `altool`.

We used to use `gon` as part of our notarizing tool. `gon` still has an
open issue to upgrade to `notarytool`, so we've switched away from it
and used the Apple CLI tools instead to do the notarization. This is
available now that we have moved to GitHub Actions for builds as it has
a newer Xcode that contains notarytool.

Update the Teleport Connect notarization, which was quite a bit simpler,
although we do need an extra `$TEAMID` input, so handle it when that is
not supplied and document in the README that it is needed.

Backport: #25407
@camscale camscale added this pull request to the merge queue May 2, 2023
Merged via the queue into branch/v13 with commit b1ebf8f May 2, 2023
@camscale camscale deleted the camh/v13/backport-notary-tool branch May 2, 2023 21:17
@r0mant r0mant mentioned this pull request Jul 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants