Applying Unstable --> Testing logic to Debian security updates

Posted by Nickj on Sat 12 Feb 2005 at 05:55

I'm looking for a way to automatically install security updates on a webserver running Debian stable, but with a twist: that the installation should be delayed a few days from when the updated package is released.


My reasoning for wanting this is based on these fairly straight-forward assumptions: What I have currently is automatic downloading and notification of updated packages, via a simple cron job that calls apt. I can easily add something to this to install packages as soon as they are downloaded, but based on the above reasons I'm not comfortable doing that. What I do currently is hand-install updates after a suitable delay, but this leaves the machine vulnerable if I'm not available to do this, plus the criteria I'm following are quite strict and straightforward, so it feels like an administrative task that could be automated.

My basic idea of how this could work is something like how packages migrate from unstable to testing (i.e. a package must go for 10 days without changes before it makes the transition, and all of its dependencies must be satisfied). Basically I want something that applies the same logic as that, to downloaded security updates for Debian.

So using 2003's OpenSSH updates as an example, with a 10 day delay, the hypothetical timeline would be like so:
My blue-sky-dreaming ideal is to have a system whereby I could have variable delays for different packages (My main responsibility is administering a dedicated webserver, so local vulnerabilities are far less critical from my perspective than remote vulns). So for example : Note that these figures are appropriate for me based on my experiences and configuration, plus the "Timing the Application of Security Patches for Optimal Uptime" paper (visible at: http://www.homeport.org/~adam/time-to-patch-usenix-lisa02.pdf - basically this paper suggests either applying updates either after 10 days, or after 30 days). However, different delays would probably be appropriate for other system administrators.

I've searched all the obvious places I can think of to see if there's a way to do this, but I haven't been able to find anything. Any help is most appreciated.

Kind Regards,
Nick.

This article can be found online at the Debian Administration website at the following bookmarkable URL:

This article is copyright 2005 Nickj - please ask for permission to republish or translate.