Commit 2b48bc1
authored
build: strip quarantine attribute for macos (#3082)
## Description
Starting with v1.52.0, SpiceDB ships to Homebrew as a cask instead of a
formula (changed in #3042 as part of the GoReleaser deprecation
migration off `brews:`). Casks behave differently from formulas in one
critical way for unsigned binaries:
- `brew install <formula>` downloads via curl, which does not set
`com.apple.quarantine`. macOS Gatekeeper never inspects the binary, so
unsigned binaries run without complaint.
- `brew install --cask <cask>` deliberately sets `com.apple.quarantine`
on the downloaded artifact. Gatekeeper then inspects it on first run,
and because our release binaries aren't signed or notarized, it refuses
to launch them with:
<img width="260" height="268" alt="image"
src="https://github.com/user-attachments/assets/cd070995-6c72-4b81-b9d0-11d5aaf70023"
/>
The binary itself is unchanged; only the install path is different.
v1.52.0 macOS users currently can't run `spicedb` at all after `brew
install/brew upgrade`.
Signing and notarizing the release binaries is the right long-term fix,
but it requires Apple Developer Program enrollment + cert provisioning.
That's a separate, larger piece of work.
The strip-quarantine hook I'm adding is documented by GoReleaser as the
recommended workaround for unsigned binaries (see here
https://goreleaser.com/resources/deprecations/#brews)1 parent 132eab3 commit 2b48bc1
2 files changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
106 | 115 | | |
107 | 116 | | |
108 | 117 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
10 | 13 | | |
11 | 14 | | |
12 | 15 | | |
| |||
0 commit comments