newrelic / ansible-install

Building installation support for our customers are using ansible to manage their infrastructure and services at scale
Apache License 2.0
7 stars 7 forks source link

Trusted.gpg deprecation in future Ubuntu versions #77

Open dcruzrinkel opened 8 months ago

dcruzrinkel commented 8 months ago

Summary

W: https://download.newrelic.com/infrastructure_agent/linux/apt/dists/jammy/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.

Ubuntu 24.04 will be released next April and it will include a deprecation for the trusted.gpg files.

Desired Behavior

GPG keys should be included in /usr/share/keyrings or /etc/apt/keyrings and then included in the repo file.

deb [signed-by=/etc/apt/trusted.gpg.d/GPGkey] https://whatever_repo stable main

About the right location for GPG keys.

/usr/share/keyrings for keyrings managed by packages, and /etc/apt/keyrings for keyrings managed by the system operator.

Possible Solution

Additional context

We receive a warning right now, but in a couple of months this will be mandatory when updating. The updated method will also work (at least) in Ubuntu 22.04.

burner1024 commented 1 month ago

24.04 is long released. I'll throw in more warnings:

W: https://download.newrelic.com/infrastructure_agent/linux/apt/dists/noble/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: http://apt.newrelic.com/debian/dists/newrelic/Release.gpg: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: http://apt.newrelic.com/debian/dists/newrelic/Release.gpg: Signature by key B60A3EC9BC013B9C23790EC8B31B29E5548C16BF uses weak algorithm (dsa1024)
N: Missing Signed-By in the sources.list(5) entry for 'http://apt.newrelic.com/debian'
N: Missing Signed-By in the sources.list(5) entry for 'https://download.newrelic.com/infrastructure_agent/linux/apt'

Please make the corresponding updates, it just looks not very professional.