puppetlabs / puppetlabs-apt

Puppet module to help manage Apt
https://forge.puppetlabs.com/puppetlabs/apt
Apache License 2.0
215 stars 462 forks source link

Switch apt::key from apt-key to trusted.gpg.d #1099

Closed AardvarKOlogY closed 1 year ago

AardvarKOlogY commented 1 year ago

Use Case

From Debian 11 and Ubuntu 22.04 on, apt-key throws a deprecation warning whenever being used, as apt-key stores keys in /etc/apt/trusted.gpg altogether. The new paradigm tells us to use separate files in /etc/apt/trusted.gpg.d/*.gpg. Also, apt update on Ubuntu 22.04 also now throws warnings whenever somebody or something, e.g. our apt::key, continues to manage apt keys in that very file.

Describe the Solution You Would Like

Change apt::key to populate files in /etc/apt/trusted.gpg.d (e.g. .gpg), which should be treated as keyrings with one or multiple keys inside.</p> <h2>Describe Alternatives You've Considered</h2> <p>Continuing the module as is so far as long as we only get deprecation <em>warnings</em>.</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/kenyon"><img src="https://avatars.githubusercontent.com/u/68514?v=4" />kenyon</a> commented <strong> 1 year ago</strong> </div> <div class="markdown-body"> <p>I think this is a duplicate of #1034.</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/AardvarKOlogY"><img src="https://avatars.githubusercontent.com/u/40055625?v=4" />AardvarKOlogY</a> commented <strong> 1 year ago</strong> </div> <div class="markdown-body"> <p>Duplicate is correct. Feature request can be closed.</p> </div> </div> <div class="page-bar-simple"> </div> <div class="footer"> <ul class="body"> <li>© <script> document.write(new Date().getFullYear()) </script> Githubissues.</li> <li>Githubissues is a development platform for aggregating issues.</li> </ul> </div> <script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js"></script> <script src="/githubissues/assets/js.js"></script> <script src="/githubissues/assets/markdown.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/highlight.min.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/go.min.js"></script> <script> hljs.highlightAll(); </script> </body> </html>