ceph / ceph/merfi

RFE: always use SHA256 digests in Release file signatures

Open
#73 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
3
Forks
3
PR merge metrics
No merged PRs in 30d

Description

Apt on Ubuntu Xenial (and newer) will warn if the Apt repo GPG signatures are SHA1 instead of SHA256.

Background links:
* https://gitlab.com/gitlab-com/operations/issues/344
* http://www.spinics.net/lists/ceph-users/msg28157.html

By default, gnupg2 has a sha1 digest algorithm.

As a workaround, a long time ago I added "digest-algo sha256" to the `gpg.conf` file on the local signer system, like so:

```
# See http://askubuntu.com/questions/819641/reprepro-signature-by-key-uses-weak-digest-algorithm-sha1
# and https://juliank.wordpress.com/2016/03/14/dropping-sha-1-support-in-apt/
digest-algo sha256
```

It would be more robust if merfi ran `gpg2` with the `--digest-algo SHA256` argument every time, so we did not depend on the state of the local `.gpg.conf` file.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.