Verify updates on air gapped servers
I'm looking for a way to verify that all security patches have been applied to a set of air gapped servers. Currently, I have a script that is run on each server during patching that generates a list of installed RPMs after update. I'm trying to verify that list of packages against the RedHat Security Data API. The code I'm using is here: https://gitlab.com/devans10/check-rhel-sec But I'm not getting results I expect.
I'm wondering if there is a better way to accomplish this.
Edit: A bit more information.... These systems are patched via a disconnected Satellite. We had an instance where an update was missed because it was not in the repository. We can only speculate on what happened, because it wasn't discovered until a future patch cycle when we saw an older patch being applied. So we are looking for a way to audit the patches outside the repositories.
Posted Aug 18, 2018, 5:17 PM UTC · edited
Build a spacewalk, satellite, or Foreman setup. You can use that system as a proxy for patches and updates.
You can pull in the errata and see what patches are required.
Sorry, I guess I should have been a bit more specific. These systems are patched via a disconnected Satellite. We had an instance where an update was missed because it was not in the repository. We can only speculate on what happened, because it wasn't discovered until a future patch cycle when we saw an older patch being applied. So we are looking for a way to audit the patches outside the repositories.
Nessus can audit systems for missing patches. I'm not sure how complete it will be but it should catch the big ones.
There is not much you can do to avoid the risk of missing and update if you are reliant on a single system to manage those updates. Best bet is to run additional security auditing, and maybe download the RedHat CVE data separately to audit.