-
Notifications
You must be signed in to change notification settings - Fork 613
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use modern APT keyrings on Debian family; require puppetlabs/apt 9.2 #1563
Conversation
How is the migration on this. Does it clean up the old entry? Mostly asking because I want to know if this is backwards incompatible or not. |
This change adds the file for the keyring (https://github.com/puppetlabs/puppetlabs-apt/blob/0871cadcdcbc5f0e6540298fa11e9a3ebe884735/manifests/keyring.pp#L54-L61) and changes the line in the file in |
039a422
to
4d28938
Compare
Need someone to approve a workflow run. Unit tests pass locally for me. |
4d28938
to
969c14a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One consideration: this will reach out to the internet on every Puppet run while I think previously it didn't. That also means the content of the GPG key may change at random and you wouldn't know, while previously the key ID would change. That begs the question: what is GPG key signing adding then?
Don't get me wrong, I do like this but I'd suggest to include the GPG key in this module and provide a parameter for the source (which would default to puppet://${module_name}/some_file.asc
). If the key changes, users can easily change the source to something else but by default you don't put additional load on www.postgresql.org
and get better security out of it.
7131199
969c14a
to
7131199
Compare
@ekohl good idea, implemented. That also makes the APT code consistent with the yumrepo code which contains the key in the module. |
Forgot the parameter to be able to override it, I'll do that. |
Wellllll, this module is kind of crazy. The |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll kick off ci, but looks good. Overall I think the GPG keys can use more parameters. That was already the case before this and it doesn't make it worse.
We can ensure the old way is ensured absent, but that can cause problems. Perhaps something for the release notes?
Yeah, I don't think it's necessary to remove the key from |
This makes use of puppetlabs/puppetlabs-apt#1128 to store the public key in /etc/apt/keyrings and add a signed-by option to the sources.list.d entry.
7131199
to
8aadd09
Compare
This makes use of puppetlabs/puppetlabs-apt#1128 to store the public key in
/etc/apt/keyrings
and add asigned-by
option to thesources.list.d
entry.