Skip to content

Release v0.12.0

Latest

Choose a tag to compare

@github-actions github-actions released this 22 Nov 17:21
· 9 commits to main since this release
v0.12.0
1239b9c

What's Changed

Added

  • Signing and notarization of macOS apps and installers with the CLI, on macOS.

    • csi-codesign macos sign signs apps and other bundles, Mach-O binaries, disk images and .pkg installers with the Developer ID certificate of a SignPath signing policy, through the SignPath macOS CryptoTokenKit. It downloads the CryptoTokenKit and checks its Developer ID signature, starts it, and waits until the certificate is in its token. It signs bundles from the inside out, with the hardened runtime and a secure timestamp, as notarization requires. It verifies every signature and stops the CryptoTokenKit afterwards. The self-signed certificate of a SignPath test signing policy also works, with a warning that the result is for testing only. Without --identity, it signs with the certificate of the signing policy.
    • csi-codesign macos notarize submits apps, disk images, installers and Mach-O binaries to Apple's notary service with an App Store Connect API key. If Apple rejects them, it prints the issues from the notarization log. Otherwise it staples the ticket and checks the result with Gatekeeper.
    • The SignPath project needs a default artifact configuration of type hash signing data, and the signing policy neither trusted build system nor origin verification: SignPath refuses hash signing under such policies. See "macOS: Sign and Notarize" in USAGE.md and the new 07-macos-app.sh and macos-sign-and-notarize.yml demos.
  • A demo/ folder with runnable examples of each way to sign: CLI scripts (one file, several files in one request, in place, parameters, token from a file, the JVM fat jar), standalone Maven projects (ad-hoc invocation, project and attached artifacts, file patterns, several executions, signing behind a profile), GitHub Actions workflows (eclipse-csi/codesign-action, the Maven plugin with the trusted build system, direct mode), and the SignPath artifact configurations they use.

15 commits since v0.11.0
  • e405670 docs: say the CryptoTokenKit publishes a token identity
  • c93c60e fix(cli): use the token extension of the mounted CryptoTokenKit
  • 3df0c8e feat: sign and notarize the macOS binary with Developer ID
  • 3db789e docs: require policies without build verification for macOS signing
  • 4e1c4df fix(cli): stop codesign as soon as SignPath refuses to sign
  • 82faac6 fix(cli): stop codesign when SignPath does not sign in time
  • 2b0ea41 fix(cli): find the signing identity in the CryptoTokenKit token
  • 0b37993 refactor: fix the SonarQube Cloud findings
  • 3e71c4d fix(cli): report the CryptoTokenKit's state in more detail
  • 7522587 ci: test-sign only on manual workflow runs
  • ce5f464 fix(cli): pass the API token to the CryptoTokenKit in a config file
  • 3d4c8b6 fix(cli): explain why SignPath does not offer a policy for hash signing
  • 4376604 feat(cli): default the macOS signing identity to the policy's certificate
  • efc40dc feat(cli): add macos sign and notarize commands
  • 4049f15 docs: add runnable demos of each way to sign

Contributors

  • Mikaël Barbero

Verifying this release

Every asset has a detached OpenPGP signature (.asc) made by the Eclipse CSI project key,
and checksums_sha256.txt covers all of them.

# 1. Import the signing key, then verify the checksum manifest
gpg --keyserver hkps://keyserver.ubuntu.com --recv-keys BC57EB2515DA417A
gpg --verify checksums_sha256.txt.asc checksums_sha256.txt

# 2. Verify what you downloaded against the manifest
sha256sum --ignore-missing -c checksums_sha256.txt   # Linux
shasum -a 256 --ignore-missing -c checksums_sha256.txt   # macOS

The key is fetched above by the identifier published here, so gpg --verify should report
Good signature from "Eclipse Common Security Infrastructure Project <csi-dev@eclipse.org>".
It also warns that the key is not certified by you, which is expected unless you have signed
it yourself.

Each archive and the CLI fat JAR also has a Sigstore bundle (.sigstore.json), from keyless
signing in the release workflow. It proves the file was signed by this repository's release
workflow running on this tag, with no key to import:

cosign verify-blob csi-codesign-0.12.0-linux-x86_64.tar.gz \
  --bundle csi-codesign-0.12.0-linux-x86_64.tar.gz.sigstore.json \
  --certificate-identity https://github.com/eclipse-csi/codesign-tools/.github/workflows/release.yml@refs/tags/v0.12.0 \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com

To check the SLSA build provenance of an archive or the CLI fat JAR:

gh attestation verify csi-codesign-0.12.0-linux-x86_64.tar.gz --repo eclipse-csi/codesign-tools

Maven Central

Artifact Coordinates
API org.eclipse.csi:codesign-api:0.12.0
Maven plugin org.eclipse.csi:codesign-maven-plugin:0.12.0
CLI org.eclipse.csi:codesign-cli:0.12.0

Every file on Maven Central has a Sigstore bundle next to it, so a download can be checked
against the release workflow that built it:

cosign verify-blob codesign-cli-0.12.0-bin.jar \
  --bundle codesign-cli-0.12.0-bin.jar.sigstore.json \
  --certificate-identity https://github.com/eclipse-csi/codesign-tools/.github/workflows/release.yml@refs/tags/v0.12.0 \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com

The jars, POMs and SBOMs also have a build provenance attestation, checked with
gh attestation verify as above.

Full changelog: v0.11.0...v0.12.0