Open source collaboration: signing_tools for macOS Catalina

May 13, 2020 2 min read

Partially-redacted terminal screenshot of macOS signing process, with emphasis on “Package Approved”

As Apple has ratcheted up the pressure on developers with new security requirements, we wanted the users of DDEV to have command-line tools they could depend on without macOS randomly disabling them and making life difficult. It’s been a challenging task, with Apple first requiring code signing and then later increasing the requirement to notarization (actually submitting the binary to Apple for review).

Along the way, we noticed that we needed to do the exact same thing for our DDEV binaries, and we noticed that it was getting more and more complex. So we split out the logic scripts into their own repository, ddev/signing_tools, and fashioned our build processes to use that for signing and notarization.

If you have binaries that you need to run on macOS Catalina and above, you can use these same tools. and do the job shown, and can be incorporated into most any CI/CD system.

The README explains all the gory details behind these tools, including Apple’s policies. And you probably need to have a basic understanding of the big picture to use these tools successfully. But you don’t have to write your own process!

(We’ve also been signing our DDEV Windows binary and installer for a really long time. That was an easier process, but we expect to incorporate that process into signing_tools as well in the future.)

DDEV stands on the shoulders of open-source giants, from Linux to Go to Lets Encrypt, there are hundreds of projects we rely on every day. We’re happy to share one of our pieces of work to make things easier on macOS Catalina and beyond. We invite your participation in signing_tools, and would love to hear your experiences.

Posted In