Commit Graph

5 Commits

Author SHA1 Message Date
Roland Bracewell Shoemaker 1bf3d5d660
cmd/caa-log-checker: non-zero exit when errors are found (#5041)
Fixes #5033
2020-08-27 13:57:37 -07:00
Tim Geoghegan 8685e7aec2
cmd/caa-log-checker: -earliest and -latest (#5045)
Since we now sync caaChecks logs daily instead of continuously,
caa-log-checker can no longer assume that the validation logs it is
checking cover the exact same span of time as the issuance logs. This
commit adds -earliest and -latest parameters so that the script
that drives this tool can restrict verification to a timespan where we
know the data is valid.

Also adds a -debug flag to caa-log-checker to enable debug logs. At the
moment this makes the tool write to stderr how many issuance messages
were evaluated and how many were skipped due to -earliest and
-latest parameters.
2020-08-25 09:54:20 -07:00
Yuri Kunde Schlesner 86ac3d9e6b
cmd/caa-log-checker: Properly initialize logging (#4834)
Explicitly initializes the logger. Previously it ended up using the
auto-initialized logging config which logged everything to "test". Added two
flags stdout-level and syslog-level to control the logging filters in lieu of a
config file.
2020-06-01 15:11:29 -07:00
Yuri Kunde Schlesner c5cb86ac48
cmd/caa-log-checker: Add -time-tolerance flag (#4830)
This flag adds a tolerance window after the issuance time, where CAA
checks will still be considered applicable, even though they appear to
have happened after issuance.

This happens usually when a CAA check happens during issuance (because no
cached one exists). There is no guarantee that logs from different hosts
will follow a strict causal ordering (due clock desync or buffering in
the log system), and so sometimes the CAA check log line will have a
timestamp ordered after the issuance line.
2020-06-01 14:01:55 -07:00
Roland Bracewell Shoemaker 57ee1543a3
Add caa-log-checker tool (#4804)
Adds a productionized version of our internal tooling to the tree. The
major differences are: it doesn't skip certs with only one name, it
doesn't read in all the va logs in parallel, it only supports reading
one ra log at a time, and it adds unit tests.

Probably it should include a integration test, but that requires
capturing logs on the docker container, which I don't think we currently
do? Probably would make for a good follow-up issue.

Fixes #4698.
2020-05-08 12:12:24 -07:00