]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
clarify -1 semantics
authorbert hubert <bert.hubert@netherlabs.nl>
Mon, 20 Oct 2014 13:51:42 +0000 (15:51 +0200)
committerbert hubert <bert.hubert@netherlabs.nl>
Mon, 20 Oct 2014 13:51:42 +0000 (15:51 +0200)
pdns/docs/security-poll.md

index edb73e92e662ae5350ca874317c4f5503522d6cf..cf0f734c23028ecf4f93038f3e10475d38b71729 100644 (file)
@@ -22,16 +22,23 @@ PowerDNS software periodically tries to resolve
 
 The data returned is in one of the following forms:
 
- * NXDOMAIN or resolution failure
- * "0 Ok"
- * "1 Upgrade recommended for security reasons, see http://powerdns.com/..."
- * "2 Upgrade mandatory for security reasons, see http://powerdns.com/..."
+ * NXDOMAIN or resolution failure -> -1
+ * "0 Ok" -> 0
+ * "1 Upgrade recommended for security reasons, see http://powerdns.com/..." -> 1
+ * "2 Upgrade mandatory for security reasons, see http://powerdns.com/..." -> 2
 
 In cases 1 or 2, periodic logging commences. The metric security-status is
 set to 1 or 2 respectively. If at a later date, resolution fails, the
 security-status is not reset to 0. It could be lowered however if we
 discover the security status is less urgent than we thought.
 
+If resolution fails, and the previous security-status was 0, the new
+security-status becomes -1 ('no data'). If the security-status was higher
+than 0, it will remain that way, and not get set to -1.
+
+In this way, security-status of -1 really means 'no data', and can not mask
+a known problem.
+
 ## Distributions
 Distributions frequently backport security fixes to the PowerDNS versions
 they ship. This might lead to a version number that is known to us to be