03 February 2016

I recently got a new machine and did a brew cask install intellij-idea and then quickly went to a dozen different customer meetings. When the dust finally settled, I realized I was being prompted by OS X's firewall and security subsystem to confirm that IntelliJ could accept incoming connections on every launch of IntelliJ, as shown here:

Lazy, and in sufficient pain as to warrant a Tweet, I asked if anybody knew of a way around this issue. I was given two interesting replies. First, we should watch and vote on this issue on the IntelliJ tracker and second (thanks so much @damian_bl!) that if I wanted to fix it in the meantime I could force it to resign itself:

sudo codesign --force --deep --sign -  /opt/homebrew-cask/Caskroom/intellij-idea/15.0.2/IntelliJ\ IDEA\ 15.app

That's all it took! On the next restart, I was prompted to confirm acceptance (one last time), and then not since have I had to confirm it.