boulder/cmd/expired-authz-purger
Roland Bracewell Shoemaker acbd9ed3a7 Purge both pending and finalized authorizations as well as challenges (#2149)
Fixes #2148.

Instead of just doing a blanket `DELETE FROM ...` this changes the `expired-authz-purger` to select all of the expired IDs (for both pending and finalized authorizations) then loop over them deleting each and its associated challenges from their respective tables.

Local testing indicates the performance of this is not awful but we should do a test run on staging to verify. If it ends up taking way too long to run there the easiest optimization would be to turn the slice of IDs into a channel and run multiple workers looping over the channel deleting stuff instead of just a single one.

Makes a few small integration test changes in order to facilitate deleting both pending and finalized authorizations.
2017-03-24 11:04:35 -07:00
..
config.json Improve syslog defaults. (#1932) 2016-06-17 11:26:11 -07:00
main.go Purge both pending and finalized authorizations as well as challenges (#2149) 2017-03-24 11:04:35 -07:00
main_test.go Purge both pending and finalized authorizations as well as challenges (#2149) 2017-03-24 11:04:35 -07:00