Skip to content

Commit dd8ce81

Browse files
authored
bad-key-revoker: Require maxExpectedReplicationLag (#8693)
#8301 introduced the `maxExpectedReplicationLag` parameter. Let's Encrypt has now deployed it, so we should make it mandatory, removing the interim default value that made it deploy-safe.
1 parent daf80ee commit dd8ce81

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

cmd/bad-key-revoker/main.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -379,12 +379,10 @@ func main() {
379379
bkr.backoffIntervalBase = time.Second
380380
}
381381

382-
// If `MaxExpectedReplicationLag` was not set via the config, then set
383-
// `bkr.maxExpectedReplicationLag` to a default 22 seconds. This is based on
384-
// ProxySQL's max_replication_lag for bad-key-revoker (10s), times two, plus
385-
// two seconds.
382+
// If `MaxExpectedReplicationLag` was not set via the config, fail. We can't
383+
// safely assume or anticipate its value for any given Boulder deployment.
386384
if bkr.maxExpectedReplicationLag == 0 {
387-
bkr.maxExpectedReplicationLag = time.Second * 22
385+
cmd.Fail("maxExpectedReplicationLag must be provided.")
388386
}
389387

390388
// Run bad-key-revoker in a loop. Backoff if no work or errors.

0 commit comments

Comments
 (0)