News for hackers. Stuff that matters.

Ask HN: Do you sign your code at work?

Does everyone on your engineering team sign their code?

How do you go about verifying signatures and making sure the code signing verifies every time you push/pull code?

Does your team rely on GitHub's server-side verification?

( 5 comments | 5 points | on HN )
Re:Ask HN: Do you sign your code at work? by brandur on Thursday May 11, 2017 @02:44PM (#14318480)
We don't for the most part, but ended up moving to a VPNed GitHub Enterprise installation over the possibility (albeit unlikely one) that GitHub's main cloud could be compromised and used to inject malicious code into a repository that we own.

It doesn't hurt to shore up on security, but given the expense of operating a GHE installation, the fact that there are some GH niceties that don't work quite right there, and that even in just a few months of use GHE already has a poorer availability record than the public GH cloud, broad code signing might have been a better approach.

We do sign in a few places like for our internal deployment tool that gets widely distributed to all engineers, and which checks its code signature before allowing a deploy. It works pretty well, but the fact that GitHub's "merge pull request" button exists (which will create a merge commit on `HEAD` without a valid signature) tends to cause a fair bit of inconvenience.

I'd definitely be curious if others have been making this work.

Re:Ask HN: Do you sign your code at work? by jetti on Wednesday May 17, 2017 @11:00AM (#14359059)
I'm curious as to why one would want to do that. Maybe it's because we host internally (internal Bitbucket server) that I don't think we would need this or maybe because we are small and know who is pushing what.
Re:Ask HN: Do you sign your code at work? by adamb_ on Friday May 12, 2017 @12:00AM (#14321346)
IntelliJ automatically adds your name to the top of Java classes / etc, so.. kinda?
Re:Ask HN: Do you sign your code at work? by thatwebdude on Monday May 15, 2017 @05:40PM (#14345374)
Your sign isn't the same they're talking about. But don't worry, I assumed the same initially.
Re:Ask HN: Do you sign your code at work? by agrinman on Friday May 12, 2017 @02:08PM (#14326317)
This is not cryptographic though.