Skip to content

Commit 930e69b

Browse files
authored
Remove expectation of contacts from id-exporter (#8209)
It appears that, in the past, we wanted id-exporter's "tell me all the accounts with unexpired certificates" functionality to limit itself to account that have contact info. The reasons for this limitation are unclear, and are quickly becoming obsolete as we remove contact info from the registrations table. Remove this layer of filtering, so that id-exporter will retrieve all accounts with active certificates, and not care whether the contact column exists or not. Part of #8199
1 parent d63f65c commit 930e69b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/id-exporter/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import (
1212
"time"
1313

1414
"github.com/jmhodges/clock"
15+
1516
"github.com/letsencrypt/boulder/cmd"
1617
"github.com/letsencrypt/boulder/db"
1718
"github.com/letsencrypt/boulder/features"
@@ -77,8 +78,7 @@ func (c idExporter) findIDs(ctx context.Context) (idExporterResults, error) {
7778
`SELECT DISTINCT r.id
7879
FROM registrations AS r
7980
INNER JOIN certificates AS c on c.registrationID = r.id
80-
WHERE r.contact NOT IN ('[]', 'null')
81-
AND c.expires >= :expireCutoff;`,
81+
WHERE c.expires >= :expireCutoff;`,
8282
map[string]interface{}{
8383
"expireCutoff": c.clk.Now().Add(-c.grace),
8484
})

0 commit comments

Comments
 (0)