Container test for expiring Debian package keys no longer works (apt-key), monitor debian repositories and keys
Expected Behavior
- https://github.com/ddev/ddev/issues/5795 surprised us, and we should have been notified by our own tests
- We would be best to monitor upstream Debian repositories as well, so we don't get surprised by things like https://github.com/ddev/ddev/issues/5620
Actual Behavior
The test is https://github.com/ddev/ddev/blob/6302f01c85c4e1c5bce9372353e4aa114eef81b8/containers/ddev-dbserver/test/image_general.bats#L15-L31 but it uses apt-key, which doesn't look at /usr/share/keyrings
Steps To Reproduce
No response
Anything else?
We should be able to rewrite that test.
Here's an incomplete idea from ChatGPT for a script.
I guess if we've had the nginx.org key expire on us we need to prioritize this.
cd /usr/share/keyrings
for item in *.gpg; do
gpg --keyring /usr/share/keyrings/$item --list-keys;
done | less
There are keys marked "expires" and "expired". In general, we want to catch "expires" ones before they get too close. I think in that case we can ignore the "expired"
The advantage of doing this during the container tests is that it happens against the keys we actually have in use.
But it would be cool to be able to test using uptimerobot or newmonitor.thefays.us/icinga2 to check them in place.