Add a Valid-Until "header" to the generated Release files.
Meaning "$receiver shouldn't trust this files after that date".
Should be used by apt and similar tools to detect some kind of MITM attacks,
see #499897 for more information.
Currently set to "7 days from now".
Signed-off-by: Joerg Jaspert <joerg@debian.org>
+2008-09-23 Joerg Jaspert <joerg@debian.org>
+
+ * dak/generate_releases.py (main): Add a "Valid-Until" line into
+ our release files, meaning "$receiver shouldn't trust this files
+ after that date". Should be used by apt and similar tools to
+ detect some kind of MITM attacks, see #499897
+
2008-09-21 Joerg Jaspert <joerg@debian.org>
* config/debian/cron.hourly: Generate the DEFERRED queue
if codename != "":
out.write("Codename: %s\n" % (codename))
out.write("Date: %s\n" % (time.strftime("%a, %d %b %Y %H:%M:%S UTC", time.gmtime(time.time()))))
+ out.write("Valid-Until: %s\n" % (time.strftime("%a, %d %b %Y %H:%M:%S UTC", time.gmtime(time.time()+7*24*60*60))))
if notautomatic != "":
out.write("NotAutomatic: %s\n" % (notautomatic))
out.write("Architectures: %s\n" % (" ".join(filter(utils.real_arch, SuiteBlock.ValueList("Architectures")))))