It looks like theforeman deb/apt key is about to expire?

Problem:

Checking the apt key provided in the install instructions at https://deb.theforeman.org/ it appears to be about to expire in a few days on 20230723

curl -s https://deb.theforeman.org/foreman.asc | gpg --show-keys
pub   rsa4096 2021-07-23 [SCEA] [expires: 2023-07-23]
      5B7C3E5A735BCB4D615829DC0BDDA991FD7AAC8A
uid                      Foreman Automatic Signing Key (2021) <packages@theforeman.org>

Expected outcome:

I’d expect the key to be updated prior to expiry so there is no disruption to usage of the apt repositories.
I’ve searched the forums and bug tracker and can’t find mention of the pending expiry. So thought it might be useful to flag it in-case it’s not been noticed yet?

4 Likes

+1 !
(expired atm…)

2 Likes

@evgeni @ekohl are you aware of this? At least I think one of you can fix it.

Please fix this ASAP!

+1

Please update key!

Thanks for mentioning this and sorry for inconvenience.

I’ve updated the key expiration to 2025 :slight_smile:

2 Likes

Hi everyone, thank you for updating the key, i am a absolutly green and new user of foreman and have no idea what i am doing. and i still get this error:

$ wget -q https://deb.theforeman.org/pubkey.gpg -O- | sudo apt-key add -
OK
$ sudo apt-get update
..... (things work till here)
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4528B6CD9E61EF26
Ign:11 http://deb.theforeman.org trusty Release.gpg
.... (skips and then)
W: GPG error: http://apt.puppetlabs.com trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4528B6CD9E61EF26
E: The repository 'http://apt.puppetlabs.com trusty InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://deb.theforeman.org trusty Release: The following signatures were invalid: EXPKEYSIG 6F8600B9563278F6 Foreman Automatic Signing Key (2016) <packages@theforeman.org>
E: The repository 'http://deb.theforeman.org trusty Release' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

in Ubuntu 18.04 and python2.7 (for outdated app reasons -.- long story)

does that key need updating as well? or am i doing something wrong?

We do not support Ubuntu Trusty for a long while now, so while that folder might still exist, the repo (and thus also the signature) was not updated since Dropping Ubuntu/trusty builds for Foreman 1.16

You can find old (archived) releases at https://archivedeb.theforeman.org/ (and the signature there is in the process of being re-generated using the updated key), but you’re not getting any updates since 6 years, so please update :slight_smile:

Also, Ubuntu 18.04 is Bionic, not Trusty (that is 14.04).

But that too, was dropped some time ago: Deprecation plans for Foreman on EL7, Debian 10 and Ubuntu 18.04

hi, thank you for your answer. if you mean upgrade ubuntu to 22.04, i cannot do that. i am actually coming from 22.04 but i have been fighting with this old app for a month, trying to get it to run. i was absolutly not successfully on ubuntu 22.04 (i might give iut a try again now with all the knowledge i have just to see but i doubt it).

i am absolutly new to foreman and i am struggeling with this python app. i have no idea if such an old app would be working with the current version of foreman.
i have been following the instructions of my predecessor to the letter atm to gain an insight of what i am actually doing (not so successfully either) and the instruction is to use foreman 1.9

The only Ubuntu release we support today for deployments is 20.04.

1 Like

@evgeni I get same Warning:


Fehl:6 http://deb.theforeman.org focal InRelease
  Die folgenden Signaturen waren ungültig: EXPKEYSIG 0BDDA991FD7AAC8A Foreman Automatic Signing Key (2021) <packages@theforeman.org>
Fehl:7 http://deb.theforeman.org plugins InRelease
  Die folgenden Signaturen waren ungültig: EXPKEYSIG 0BDDA991FD7AAC8A Foreman Automatic Signing Key (2021) <packages@theforeman.org>
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.       
Statusinformationen werden eingelesen.... Fertig
Aktualisierung für 4 Pakete verfügbar. Führen Sie »apt list --upgradable« aus, um sie anzuzeigen.
W: Während der Überprüfung der Signatur trat ein Fehler auf. Das Depot wurde nicht aktualisiert und die vorherigen Indexdateien werden verwendet. GPG-Fehler: http://deb.theforeman.org focal InRelease: Die folgenden Signaturen waren ungültig: EXPKEYSIG 0BDDA991FD7AAC8A Foreman Automatic Signing Key (2021) <packages@theforeman.org>
W: Während der Überprüfung der Signatur trat ein Fehler auf. Das Depot wurde nicht aktualisiert und die vorherigen Indexdateien werden verwendet. GPG-Fehler: http://deb.theforeman.org plugins InRelease: Die folgenden Signaturen waren ungültig: EXPKEYSIG 0BDDA991FD7AAC8A Foreman Automatic Signing Key (2021) <packages@theforeman.org>
W: Fehlschlag beim Holen von http://deb.theforeman.org/dists/focal/InRelease Die folgenden Signaturen waren ungültig: EXPKEYSIG 0BDDA991FD7AAC8A Foreman Automatic Signing Key (2021) <packages@theforeman.org>
W: Fehlschlag beim Holen von http://deb.theforeman.org/dists/plugins/InRelease Die folgenden Signaturen waren ungültig: EXPKEYSIG 0BDDA991FD7AAC8A Foreman Automatic Signing Key (2021) <packages@theforeman.org>
W: Einige Indexdateien konnten nicht heruntergeladen werden. Sie wurden ignoriert oder alte an ihrer Stelle benutzt.

I run also once:

sudo wget https://deb.theforeman.org/foreman.asc -O /etc/apt/trusted.gpg.d/foreman.asc

But it doesnt help. What should I do ?

Foreman and Proxy versions: foreman 3.6.1 , foreman-proxy 3.6.1
Distribution and version: Ubuntu 20.04.4 LTS

Hard to say, but I would bet it’s not using the key you downloaded.

Can you post the output of apt-key list please?

1 Like

here is the output which is related to foreman:

/etc/apt/trusted.gpg

pub rsa4096 2021-07-23 [SCEA] [expired: 2023-07-23]
5B7C 3E5A 735B CB4D 6158 29DC 0BDD A991 FD7A AC8A
uid [ expired] Foreman Automatic Signing Key (2021) packages@theforeman.org

pub rsa4096 2016-04-08 [SC] [expired: 2022-03-12]
AE0A F310 E2EA 96B6 B6F4 BD72 6F86 00B9 5632 78F6
uid [ expired] Foreman Automatic Signing Key (2016) packages@theforeman.org

/etc/apt/trusted.gpg.d/foreman.asc

pub rsa4096 2021-07-23 [SCEA] [expires: 2025-07-24]
5B7C 3E5A 735B CB4D 6158 29DC 0BDD A991 FD7A AC8A
uid [ unknown] Foreman Automatic Signing Key (2021) packages@theforeman.org

Ok, it uses the key from /etc/apt/trusted.gpg instead of the one you downloaded.

If that’s the only key listed for that file, you can delete the file, otherwise you have to use apt-key del 0BDDA991FD7AAC8A.

Then apt-get update should be happy again.

1 Like

thank you, but it doesnt help me:

apt-key del 0BDDA991FD7AAC8A

OK
:~# apt update
Holen:5 http://deb.theforeman.org focal InRelease [54,2 kB]
Holen:6 http://deb.theforeman.org plugins InRelease [78,0 kB]
OK:7 Index of /ubuntu/20.04/prod/ focal InRelease
OK:8 http://apt.puppetlabs.com focal InRelease
Fehl:5 http://deb.theforeman.org focal InRelease
Die folgenden Signaturen konnten nicht überprüft werden, weil ihr öffentlicher Schlüssel nicht verfügbar ist: NO_PUBKEY 0BDDA991FD7AAC8A
Fehl:6 http://deb.theforeman.org plugins InRelease
Die folgenden Signaturen konnten nicht überprüft werden, weil ihr öffentlicher Schlüssel nicht verfügbar ist: NO_PUBKEY 0BDDA991FD7AAC8A
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen… Fertig
Aktualisierung für 4 Pakete verfügbar. Führen Sie »apt list --upgradable« aus, um sie anzuzeigen.
W: Während der Überprüfung der Signatur trat ein Fehler auf. Das Depot wurde nicht aktualisiert und die vorherigen Indexdateien werden verwendet. GPG-Fehler: http://deb.theforeman.org focal InRelease: Die folgenden Signaturen konnt
en nicht überprüft werden, weil ihr öffentlicher Schlüssel nicht verfügbar ist: NO_PUBKEY 0BDDA991FD7AAC8A
W: Während der Überprüfung der Signatur trat ein Fehler auf. Das Depot wurde nicht aktualisiert und die vorherigen Indexdateien werden verwendet. GPG-Fehler: http://deb.theforeman.org plugins InRelease: Die folgenden Signaturen kon
nten nicht überprüft werden, weil ihr öffentlicher Schlüssel nicht verfügbar ist: NO_PUBKEY 0BDDA991FD7AAC8A
W: Fehlschlag beim Holen von http://deb.theforeman.org/dists/focal/InRelease Die folgenden Signaturen konnten nicht überprüft werden, weil ihr öffentlicher Schlüssel nicht verfügbar ist: NO_PUBKEY 0BDDA991FD7AAC8A
W: Fehlschlag beim Holen von http://deb.theforeman.org/dists/plugins/InRelease Die folgenden Signaturen konnten nicht überprüft werden, weil ihr öffentlicher Schlüssel nicht verfügbar ist: NO_PUBKEY 0BDDA991FD7AAC8A
W:

and I deleted the file:


:~# rm /etc/apt/trusted.gpg
rm: remove regular file '/etc/apt/trusted.gpg'? yes

:~# apt update                               
Holen:8 http://deb.theforeman.org plugins InRelease [78,0 kB]
Fehl:5 http://deb.theforeman.org focal InRelease
  Die folgenden Signaturen konnten nicht überprüft werden, weil ihr öffentlicher Schlüssel nicht verfügbar ist: NO_PUBKEY 0BDDA991FD7AAC8A
Fehl:8 http://deb.theforeman.org plugins InRelease
  Die folgenden Signaturen konnten nicht überprüft werden, weil ihr öffentlicher Schlüssel nicht verfügbar ist: NO_PUBKEY 0BDDA991FD7AAC8A
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.       
Statusinformationen werden eingelesen.... Fertig
Aktualisierung für 4 Pakete verfügbar. Führen Sie »apt list --upgradable« aus, um sie anzuzeigen.
W: Während der Überprüfung der Signatur trat ein Fehler auf. Das Depot wurde nicht aktualisiert und die vorherigen Indexdateien werden verwendet. GPG-Fehler: http://deb.theforeman.org focal InRelease: Die folgenden Signaturen konnt
en nicht überprüft werden, weil ihr öffentlicher Schlüssel nicht verfügbar ist: NO_PUBKEY 0BDDA991FD7AAC8A
W: Während der Überprüfung der Signatur trat ein Fehler auf. Das Depot wurde nicht aktualisiert und die vorherigen Indexdateien werden verwendet. GPG-Fehler: http://deb.theforeman.org plugins InRelease: Die folgenden Signaturen kon
nten nicht überprüft werden, weil ihr öffentlicher Schlüssel nicht verfügbar ist: NO_PUBKEY 0BDDA991FD7AAC8A
W: Fehlschlag beim Holen von http://deb.theforeman.org/dists/focal/InRelease Die folgenden Signaturen konnten nicht überprüft werden, weil ihr öffentlicher Schlüssel nicht verfügbar ist: NO_PUBKEY 0BDDA991FD7AAC8A
W: Fehlschlag beim Holen von http://deb.theforeman.org/dists/plugins/InRelease Die folgenden Signaturen konnten nicht überprüft werden, weil ihr öffentlicher Schlüssel nicht verfügbar ist: NO_PUBKEY 0BDDA991FD7AAC8A
W: Einige Indexdateien konnten nicht heruntergeladen werden. Sie wurden ignoriert oder alte an ihrer Stelle benutzt.

but after I run:

~# sudo wget https://deb.theforeman.org/foreman.asc -O /etc/apt/trusted.gpg.d/foreman.asc

and then apt-get update it works all again.

thank you @evgeni

Again, apt-key list please.

Did it delete /etc/apt/trusted.gpg.d/foreman.asc maybe, and you need to re-download the key?

1 Like

I edti my post:

but after I run:

~# sudo wget https://deb.theforeman.org/foreman.asc -O /etc/apt/trusted.gpg.d/foreman.asc

and then apt-get update it works all again.

thank you @evgeni