[ZBX-17998] Too much GPG keys? Created: 2020 Apr 29 Updated: 2024 Apr 10 Resolved: 2020 Aug 31 |
|
| Status: | Closed |
| Project: | ZABBIX BUGS AND ISSUES |
| Component/s: | Packages (C) |
| Affects Version/s: | None |
| Fix Version/s: | 5.2.0alpha2, 5.2 (plan) |
| Type: | Problem report | Priority: | Trivial |
| Reporter: | Olexandr | Assignee: | Jurijs Klopovskis |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
| Team: | |
| Sprint: | Sprint 66 (Jul 2020), Sprint 67 (Aug 2020) |
| Story Points: | 0.25 |
| Description |
|
Hello, I dont know if it right topic to post, if its not correct topic - please move it to correct one. I started to learn automation with Ansible few days ago, and used "dj-wasabi.zabbix-agent" Ansible role ( https://github.com/dj-wasabi/ansible-zabbix-agent ) After Zabbix Agent was installed at remote machine - i saw that that there is 2 gpg keys was added. I have Ubuntu 18.04 LTS server. ----------------------- # apt-key list ...................................... /etc/apt/trusted.gpg.d/zabbix-official-repo.gpg pub rsa2048 2016-07-15 [SC]
Then i did clean install (on fresh installed Ubuntu 18.04), commands used: # wget https://repo.zabbix.com/zabbix/4.4/ubuntu/pool/main/z/zabbix-release/zabbix-release_4.4-1+bionic_all.deb
And once more both this 2 gpg keys was present.
Im not an expert, but have question: if person have, for example, Ubuntu 18 --> is really 2 gpg keys need to be added/present in system? Why with Ubuntu OS also Debian key is being added?
At attached file (starting from line 69) there is "sign_keys" output from Ansible log |
| Comments |
| Comment by Olexandr [ 2020 Apr 29 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Total list of keys (according from Ansible log) below. Seems like "Bionic" (Ubuntu 18.04 LTS) should "serena": {"sign_key": "79EA5ED4"} | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Jurijs Klopovskis [ 2020 Apr 29 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
At some point we introduced a second A14FE591 key. Thanks for the report. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Jurijs Klopovskis [ 2020 Jul 01 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hi, sahaQaa
These are not Ubuntu and Debian specific keys. These are old(79EA5ED4) and new(A14FE591) keys. The new key was added some time during 3.0 era and since 3.0 used both keys for different minor releases, both keys were shipped with zabbix-release. The zabbix-official-repo.gpg file was then simply reused for later major versions. Suggest we remove the old key from zabbix-official-repo.gpg file starting with 5.2 version, palivoda | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by dimir [ 2020 Jul 01 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Since the "old" key became not supported on some newer OSs that we needed to support we introduced the new one. Some of those signed with the "old" key are still available in our repository. The keys
Keys used for signing (red = EOL, green = key still in use)
As you can see we still need to have the old key for Zabbix 3.0 on older platforms. I suggest adding this information to documentation in order to avoid further cases like that. If we remove the old key, we'd also need to remove all the packages from our repository, that are signed with that. I doubt this is a good idea. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by dimir [ 2020 Jul 01 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Sorry, missed the suggestion above to remove the old key starting from 5.2 . This sounds good. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Jurijs Klopovskis [ 2020 Jul 17 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Fixed in pre 5.2 for deb-based distros. Cannot remove the old key for rhel because packages from unsupported repo are signed with it. |