couchdbcouchdb-3.x

CouchDB 3.1 Installer - unknown publisher


I have just gone to https://couchdb.apache.org/ to get the latest CouchDB binary (upgrading from 2.2).

However, the download link redirects me to an organisation called Neighbourhoodie - a CouchDB services & consultancy firm (which was unexpected, but understandable as I know the installations may be served from mirrors).

When I ran the installer I got a warning from Windows that the binary is from an 'Unknown Publisher'.

I can't find a contact point on the CouchDB site to ask a question like this.

The unexpected redirect coupled with the Unknown Publisher have made me nervous - how can I know that it's safe to proceed with the upgrade?


Solution

  • You can verify that the couchdb contributors that signs public releases believed this binary is correct for windows users by comparing the site, sha1 and md5 sums they gave in an issue. Neither a sha1 or md5 alone is secure, but I think it would be exceedingly hard to find an attack that simultaneously works for both.

    Also, if you download the gpg signature, binary and the https://downloads.apache.org/couchdb/KEYS you can verify that this signer is the same signer using the same key recognized on the apache download site. Using their trust is similar to tofu, you trust the channel with https and it trusts this key, so now you trust the key on another channel.

    On linux/mac this looks like:

    (verify you obtain keys over ssl from apache, then:)
    $ gpg --import KEYS.txt
      ...
      gpg: key CDE711289384AE37: "**** (CODE SIGNING KEY) <****@apache.org>"
    
    (download a sig and file from official downloads.apache.org site and verify + add your "tofu" trust in this key)
    $ gpg --trusted-key CDE711289384AE37 --verify apache-couchdb-3.1.1.tar.gz.asc
    
    (your gpg now trusts this key for new binaries)
    $ gpg --verify apache-couchdb-3.1.0.msi.asc
    
    (If the official KEYS file changes you would want to delete this trust and do the same process again:)
    $ gpg --delete-key CDE711289384AE37
    

    and windows gpg should look similar, maybe with / in place of --, etc.