From: Michael Tremer Date: Mon, 16 Feb 2026 19:30:57 +0000 (+0000) Subject: sources: Abort if we are importing our own canary X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e893758bb143b707cc45df0dd31e186273fe5b39;p=dbl.git sources: Abort if we are importing our own canary Signed-off-by: Michael Tremer --- diff --git a/src/dbl/sources.py b/src/dbl/sources.py index f2c9870..dd67147 100644 --- a/src/dbl/sources.py +++ b/src/dbl/sources.py @@ -299,6 +299,12 @@ class Source(sqlmodel.SQLModel, database.BackendMixin, table=True): log.debug("Skipping ignored domain: %s" % domain) continue + # Abort if we have imported the canary + if domain == self.list.canary: + log.error("Found our canary in %s, aborting import" % self) + + return False + # Is the domain actually publicly resolvable? if not self.backend.psl.get_tld(domain, strict=True): log.debug("Skipping non-public domain: %s" % domain)