You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@reef.apache.org by Markus Weimer <ma...@weimo.de> on 2015/07/22 18:30:28 UTC

On signing the .NET binaries

Currently, our .NET binaries are signed using a private key that is, in
fact, public. We should not do that for 0.12.

Chris Douglas and I spoke about this, and how the DLL signing seems
tricky to implement for us as a community. He suggested a simple fix:

Whoever produces a binary release also signs it with a *private* key. We
then publish the accompanying public key as part of our KEYS file (maybe
we have to do one file per key) as well as on the website and the
mailing list.

That way, the key is reasonably distributed to allow independent
validation of the signatures, but private. We won't have the added
benefit of having the key be part of a web of trust. Arguably, users who
require that level of certainty are better off building from (trusted)
source anyhow.

What do you think? Does this sound feasible? Or is there some aspect of
DLL signing that makes this undesirable?

Thanks,

Markus

Re: On signing the .NET binaries

Posted by Yingda Chen <yd...@gmail.com>.
i  was going to propose that each commiter will have THE private key
encrypted by his/her public key, which can then only be decrypt by each
commiter's private key... but then again I probably spent too much time
earlier on my career working in security platforms :)

your proposal sounds just about right if there are not too many release
managers and the release manager's key is used to signed all files in a
release... I will vote for that.



On Wed, Jul 22, 2015 at 3:06 PM, Markus Weimer <ma...@weimo.de> wrote:

> On 2015-07-22 13:36, Yingda Chen wrote:
> > snapshot release can still use the "public" private key, but release
> >  version should use the one and only private key to sign all files,
> > which is kept secret.
>
> My concern lies with our ability to keep *one* private key truly secret.
> At the very least, it needs to be handed from one release manager to the
> next, which creates a potential for leaking it. Also, it creates a
> situation where not all PMC members are equal in their power, which is
> undesirable from a project management perspective.
>
> The PGP approach used for the signatures of the sources and java
> binaries doesn't have this risk, as every committer can sign with their
> own key. It is also safe, because those keys can sign and certify each
> other in a completely public manner, forming the web of trust instead of
> a hierarchy of trust.
>
> What I believe we can do is have one key per release manager and then be
> quite public about the public keys associated with those keys: Post them
> to the mailing list, add them to the KEYS file, publish them on the
> website, ... . It is next to impossible for all of these copies of the
> public key to be compromised at the same time.
>
> Realistically, the number of people signing DLLs will be small, so it
> should stay manageable.
>
> Markus
>

Re: On signing the .NET binaries

Posted by Byung-Gon Chun <bg...@gmail.com>.
This seems to be reasonable.

Double checking. I'm wondering if there's a well-known practice for MS open
source projects that produce DLLs.

On Thu, Jul 23, 2015 at 7:06 AM, Markus Weimer <ma...@weimo.de> wrote:

> On 2015-07-22 13:36, Yingda Chen wrote:
> > snapshot release can still use the "public" private key, but release
> >  version should use the one and only private key to sign all files,
> > which is kept secret.
>
> My concern lies with our ability to keep *one* private key truly secret.
> At the very least, it needs to be handed from one release manager to the
> next, which creates a potential for leaking it. Also, it creates a
> situation where not all PMC members are equal in their power, which is
> undesirable from a project management perspective.
>
> The PGP approach used for the signatures of the sources and java
> binaries doesn't have this risk, as every committer can sign with their
> own key. It is also safe, because those keys can sign and certify each
> other in a completely public manner, forming the web of trust instead of
> a hierarchy of trust.
>
> What I believe we can do is have one key per release manager and then be
> quite public about the public keys associated with those keys: Post them
> to the mailing list, add them to the KEYS file, publish them on the
> website, ... . It is next to impossible for all of these copies of the
> public key to be compromised at the same time.
>
> Realistically, the number of people signing DLLs will be small, so it
> should stay manageable.
>
> Markus
>



-- 
Byung-Gon Chun

Re: On signing the .NET binaries

Posted by Markus Weimer <ma...@weimo.de>.
On 2015-07-22 13:36, Yingda Chen wrote:
> snapshot release can still use the "public" private key, but release
>  version should use the one and only private key to sign all files, 
> which is kept secret.

My concern lies with our ability to keep *one* private key truly secret.
At the very least, it needs to be handed from one release manager to the
next, which creates a potential for leaking it. Also, it creates a
situation where not all PMC members are equal in their power, which is
undesirable from a project management perspective.

The PGP approach used for the signatures of the sources and java
binaries doesn't have this risk, as every committer can sign with their
own key. It is also safe, because those keys can sign and certify each
other in a completely public manner, forming the web of trust instead of
a hierarchy of trust.

What I believe we can do is have one key per release manager and then be
quite public about the public keys associated with those keys: Post them
to the mailing list, add them to the KEYS file, publish them on the
website, ... . It is next to impossible for all of these copies of the
public key to be compromised at the same time.

Realistically, the number of people signing DLLs will be small, so it
should stay manageable.

Markus

Re: On signing the .NET binaries

Posted by Yingda Chen <yd...@gmail.com>.
snapshot release can still use the "public" private key, but release
version should use the one and only private key to sign all files, which is
kept secret.

-yingda

On Wed, Jul 22, 2015 at 10:37 AM, Julia Wang (QIUHE) <
Qiuhe.Wang@microsoft.com> wrote:

> We should sign the .Net binaries with the private key pair and publish the
> public key. However,
>
> Do we need to use different key for each file?
> Do we need to use different keys from each person?
>
> I am afraid too many keys would make key management hard.
>
> Thanks,
> Julia
>
> -----Original Message-----
> From: Markus Weimer [mailto:markus@weimo.de]
> Sent: Wednesday, July 22, 2015 9:30 AM
> To: REEF Developers Mailinglist
> Subject: On signing the .NET binaries
>
> Currently, our .NET binaries are signed using a private key that is, in
> fact, public. We should not do that for 0.12.
>
> Chris Douglas and I spoke about this, and how the DLL signing seems tricky
> to implement for us as a community. He suggested a simple fix:
>
> Whoever produces a binary release also signs it with a *private* key. We
> then publish the accompanying public key as part of our KEYS file (maybe we
> have to do one file per key) as well as on the website and the mailing list.
>
> That way, the key is reasonably distributed to allow independent
> validation of the signatures, but private. We won't have the added benefit
> of having the key be part of a web of trust. Arguably, users who require
> that level of certainty are better off building from (trusted) source
> anyhow.
>
> What do you think? Does this sound feasible? Or is there some aspect of
> DLL signing that makes this undesirable?
>
> Thanks,
>
> Markus
>

RE: On signing the .NET binaries

Posted by "Julia Wang (QIUHE)" <Qi...@microsoft.com>.
We should sign the .Net binaries with the private key pair and publish the public key. However,

Do we need to use different key for each file?
Do we need to use different keys from each person? 

I am afraid too many keys would make key management hard. 

Thanks,
Julia

-----Original Message-----
From: Markus Weimer [mailto:markus@weimo.de] 
Sent: Wednesday, July 22, 2015 9:30 AM
To: REEF Developers Mailinglist
Subject: On signing the .NET binaries

Currently, our .NET binaries are signed using a private key that is, in fact, public. We should not do that for 0.12.

Chris Douglas and I spoke about this, and how the DLL signing seems tricky to implement for us as a community. He suggested a simple fix:

Whoever produces a binary release also signs it with a *private* key. We then publish the accompanying public key as part of our KEYS file (maybe we have to do one file per key) as well as on the website and the mailing list.

That way, the key is reasonably distributed to allow independent validation of the signatures, but private. We won't have the added benefit of having the key be part of a web of trust. Arguably, users who require that level of certainty are better off building from (trusted) source anyhow.

What do you think? Does this sound feasible? Or is there some aspect of DLL signing that makes this undesirable?

Thanks,

Markus