Skip to content

Commit 5c68219

Browse files
authored
Merge pull request #77 from mimi89999/skip_retired_logs
Skip retired CT logs
2 parents bf24abb + e35387a commit 5c68219

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

internal/certificatetransparency/ct-watcher.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,14 @@ func (w *Watcher) addNewlyAvailableLogs(logList loglist3.LogList) {
122122
for _, operator := range logList.Operators {
123123
// Iterate over each log of the operator
124124
for _, transparencyLog := range operator.Logs {
125-
// Check if the log is already being watched
126125
newURL := normalizeCtlogURL(transparencyLog.URL)
127126

127+
if transparencyLog.State.LogStatus() == loglist3.RetiredLogStatus {
128+
log.Printf("Skipping retired CT log: %s\n", newURL)
129+
continue
130+
}
131+
132+
// Check if the log is already being watched
128133
alreadyWatched := false
129134
for _, ctWorker := range w.workers {
130135
workerURL := normalizeCtlogURL(ctWorker.ctURL)

0 commit comments

Comments
 (0)