Bug 8170 - macOS altool notarizing tool is deprecated
Summary: macOS altool notarizing tool is deprecated
Status: CLOSED FIXED
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Build system (show other bugs)
Version: trunk
Hardware: PC Unknown
: P2 Normal
Target Milestone: 4.16.0
Assignee: Samuel Mannehed
URL:
Keywords: adaha_tester, prosaic
Depends on:
Blocks:
 
Reported: 2023-06-14 09:20 CEST by Pierre Ossman
Modified: 2024-01-15 15:31 CET (History)
3 users (show)

See Also:
Acceptance Criteria:
MUST * The deprecated 'altool' command should be replaced with the new recommended tool for notarization of the macOS client. SHOULD * Our documentation should reflect the changes. COULD * The script output should be formatted in a consistent and easy to understand way.


Attachments

Description Pierre Ossman cendio 2023-06-14 09:20:29 CEST
Apparently Apple are switching out the tools used for notarizing things, so we need to adapt to the new way of doing things.

We got this warning from Apple:

> We’re reaching out because you recently used the altool command-line utility
> to notarize your macOS software with Apple. As announced last year at WWDC22,
> if you’re still using altool with the Apple notary service, you should
> transition to the notarytool command-line utility as soon as possible.
> Notarizing software with altool was deprecated in Xcode 13, and the Apple
> notary service will no longer accept uploads from altool as of November 1,
> 2023. Existing notarized software will continue to function properly.
> 
> For information on notarizing your apps, read TechNote TN3147: Migrating to
> the latest notarization tool.
Comment 1 Samuel Mannehed cendio 2024-01-11 16:49:16 CET
The move seems quite simple, the new tool looks to be easier to use which would allow us to simplify our tools.

The guide here is helpful:

https://developer.apple.com/documentation/technotes/tn3147-migrating-to-the-latest-notarization-tool
Comment 3 Samuel Mannehed cendio 2024-01-11 19:00:13 CET
Our xcode-sign tool has been migrated to use the new command now. I have successfully notarized a new build using "download-sign-bundles".

I also tested commenting out the codesign step to see how notarytool handled notarization errors.

I also tested providing the wrong app-specific password. Those two errors are handled gracefully by our script.

Our wiki documentation is not yet updated.
Comment 10 Alexander Zeijlon cendio 2024-01-12 14:15:25 CET
We have updated the beta release section on the wiki to reflect the changes we made.
Comment 11 Alexander Zeijlon cendio 2024-01-12 14:21:06 CET
> MUST
> * The deprecated 'altool' command should be replaced with the new
>   recommended tool for notarization of the macOS client.
We are now using notarytool instead of altool.

> SHOULD
> * Our documentation should reflect the changes. 
Documentation has been updated.

> COULD
> * The script output should be formatted in a consistent and easy to
>   understand way.
Some improvements were made, and we are now outputting the notarization log directly when the script is run.

Marking as resolved.
Comment 12 Adam Halim cendio 2024-01-15 15:31:15 CET
Successfully signed a custom build following our documentation. Verified that the iso was signed by running
> codesign -dv
on the installed app.

> MUST
> 
> ✅ The deprecated 'altool' command should be replaced with the new recommended tool for notarization of the macOS client.
Indeed, the tool has been completely replaced with notarytool.
> SHOULD
> 
> ✅ Our documentation should reflect the changes. 
The documentation has been updated to account for the changes in logging.
> COULD
> ✅ The script output should be formatted in a consistent and easy to understand way.
The output from my test run was consistent and easy to understand.

Note You need to log in before you can comment on or make changes to this bug.