Skip to content

make: sign every built binary, not just install and dev - #24

Merged
piekstra merged 1 commit into
mainfrom
sign-built-binaries
Aug 11, 2026
Merged

make: sign every built binary, not just install and dev#24
piekstra merged 1 commit into
mainfrom
sign-built-binaries

Conversation

@piekstra

Copy link
Copy Markdown
Owner

Follow-up to the install-signing change, which was incomplete.

That change signed install and dev. It missed the binary actually run during development — ./target/release/<bin>, produced by release and by verify through smoke. Left ad-hoc signed, it mints a new code identity every rebuild, so macOS keeps asking for "Always Allow": the prompts do not stop, they move to whichever binary was missed.

Observed in rpm-fl-cli immediately after adopting the first fix:

$ codesign -dv ~/.cargo/bin/rpmfl      # Identifier=rpmfl           ← signed
$ codesign -dv ./target/release/rpmfl  # Identifier=rpmfl-92efb87…  Signature=adhoc

Now every target that produces a binary signs it. Verified with make -n: SIGN_TARGET resolves to the real output path for this Makefile's layout. Still a no-op with a note on CI/Linux.

Guidance corrected in cli-common#7.

Follow-up to the install-signing change, which was incomplete.

That change signed `install` and `dev`. It missed the binary actually run during development — `./target/release/<bin>`, produced by `release` and by `verify` through `smoke`. Left ad-hoc signed, it mints a new code identity every rebuild, so macOS keeps asking for "Always Allow": the prompts do not stop, they move to whichever binary was missed.

Observed in `rpm-fl-cli` immediately after adopting the first fix:

```console
$ codesign -dv ~/.cargo/bin/rpmfl      # Identifier=rpmfl           ← signed
$ codesign -dv ./target/release/rpmfl  # Identifier=rpmfl-92efb87…  Signature=adhoc
```

Now every target that produces a binary signs it. Verified with `make -n`: `SIGN_TARGET` resolves to the real output path for this Makefile's layout. Still a no-op with a note on CI/Linux.

Guidance corrected in cli-common#7.
@piekstra
piekstra merged commit 3f8abb7 into main Aug 11, 2026
2 checks passed
@piekstra
piekstra deleted the sign-built-binaries branch August 11, 2026 20:44
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.

1 participant