Recently OSX firewall started to ask me “Do you want the application “syncthing” to accept incoming network connections?” over and over.
I did some digging and learned that it might be related to code signing. It looks like the latest binary has an invalid signature:
➜ ~ brew services stop syncthing
Stopping `syncthing`... (might take a while)
==> Successfully stopped `syncthing` (label: homebrew.mxcl.syncthing)
➜ ~ brew uninstall syncthing
Uninstalling /usr/local/Cellar/syncthing/0.13.7... (6 files, 14.8M)
➜ ~ rm /Users/ktombul/Library/Caches/Homebrew/syncthing-0.13.7.el_capitan.bottle.tar.gz
➜ ~ brew install syncthing
==> Downloading https://homebrew.bintray.com/bottles/syncthing-0.13.7.el_capitan.bottle.tar.gz
######################################################################## 100.0%
==> Pouring syncthing-0.13.7.el_capitan.bottle.tar.gz
==> Caveats
To have launchd start syncthing now and restart at login:
brew services start syncthing
Or, if you don't want/need a background service you can just run:
syncthing
==> Summary
🍺 /usr/local/Cellar/syncthing/0.13.7: 6 files, 14.8M
➜ ~
➜ ~ syncthing --version && codesign --verify -vv `which syncthing`
syncthing v0.13.7 "Copper Cockroach" (go1.6.2 darwin-amd64) brew@elcapitanvm.local 2016-06-13 16:06:12 UTC
/usr/local/bin/syncthing: invalid signature (code or signature have been modified)
In architecture: x86_64
According to this thread it should be signed.