List rollouts
The listc role fetches the list sources, compiles and signs the list
artifact, and publishes it to object storage under lists/. A new build
does not go to every PoP (a server location) at once. It goes to a canary
first: a small set of PoPs that serves the build for a soak period (a fixed
wait) before the rest of the fleet. You can roll back any version
fleet-wide in seconds.
The path of a build
Section titled “The path of a build”- A build publishes
v<N>(artifact, manifest, provenance) and records it inlists/head.json.lists/latest.jsonis the version that the fleet serves. It does not move yet. - The canary starts. The role announces
v<N>to the canary PoPs only. Edges started with-lists-canary(OPDNS_LISTS_CANARY=true) load it, and all other edges ignore it. Self-hosted nodes never receive a canary. At that moment, the role records the own baseline of the canary PoPs. The baseline is their block and SERVFAIL rates over a window that is as long as the soak and ends at the announcement. The role reads these rates from Prometheus (opdns_edge_queries_totalby PoP and status). The role stores the baseline with the rollout, so a restart during the soak keeps it. It shows the baseline per PoP asopdns_cp_listc_rollout_canary_baseline_block_ratio{pop}. - The soak ends. After the soak (
--canary-soak, 15 minutes by default), the role measures the canary PoPs over the soak window. It applies two thresholds to the comparison that decides:- The block rate can differ by at most
--canary-max-block-rate-delta(default 0.05, 5 percentage points). Only a rise rejects. The canary catches over-blocking, and the build gates catch an under-sized build. - The SERVFAIL rate of the canary can rise by at most
--canary-max-servfail-rate-delta(default 0.01).
- The block rate can differ by at most
- If both thresholds hold, the role promotes the build.
latest.jsonmoves tov<N>, the role announces it fleet-wide, and nodes pick it up over their link. Otherwise, the role rejects the build. It sends the canary PoPs back to the served version and never promotes the build.
The role uses the first of these comparisons that applies. Every window
needs --canary-min-queries answered queries (default 200) to be
conclusive.
- Self (
basis: self): the canary PoPs during the soak, against their own baseline. This is the primary signal, because traffic mixes differ between PoPs. A quiet PoP can answer little more than health probes. When both windows are conclusive, this comparison decides, whatever the other PoPs show. - Fleet (
basis: fleet): the canary PoPs against the other PoPs over the soak window. The role uses it only when the own baseline is inconclusive (the canary PoPs were quiet before the build), and only when both sides have the minimum. - None: in all other cases, the comparison is inconclusive. The role logs
the three counts and extends the soak by one more window, up to
--canary-max-soak-extensionstimes (default 3). If the comparison is still inconclusive after the last extension, the role promotes the build with a warning (“promoted without a conclusive comparison: N queries on the canary, B before the build, M elsewhere … basis: none”).opdns_cp_listc_rollout_canary_inconclusive_totalcounts it, andListCanaryInconclusivefires. This is--rollout-no-traffic=promote, the default. With--rollout-no-traffic=wait, the canary soaks until traffic arrives, andListCanaryStuckfires. Without the default, a quiet fleet rejects every build. The build gate, the artifact signature and size checks, and the rollback still apply.
Every reason ends with the basis, for example: block rate 24.98% on the canary vs 11.66% before the build (delta +13.32 pp, max 5.00); 1201 queries on the canary, 1201 before the build in 900s; basis: self. The
observation and the history event carry basis.
opdns_cp_listc_rollout_decisions_total has result and basis labels.
A self comparison assumes that the traffic mix of a PoP is steady from one
soak window to the next. A large shift in the mix right before or during
the soak shows as a delta. If the role cannot reach Prometheus, it waits.
The role promotes the very first version directly. It also promotes every
build directly while the canary is off (--canary=false).
The role keeps the state in Postgres: list_rollouts, and
list_rollout_events for every decision with its reason, actor and
measured deltas. The role reconciles the state every --rollout-interval
(by default the smaller of 15 s and a quarter of the soak). So after a
restart in the middle of a rollout, the role continues where it stopped.
| Flag | Environment | Default |
|---|---|---|
--canary |
OPDNS_CANARY |
false |
--canary-pops |
OPDNS_CANARY_POPS |
none, required with the canary |
--canary-soak |
OPDNS_CANARY_SOAK |
15m |
--canary-max-block-rate-delta |
OPDNS_CANARY_MAX_BLOCK_RATE_DELTA |
0.05 |
--canary-max-servfail-rate-delta |
OPDNS_CANARY_MAX_SERVFAIL_RATE_DELTA |
0.01 |
--canary-min-queries |
OPDNS_CANARY_MIN_QUERIES |
200 |
--canary-max-soak-extensions |
OPDNS_CANARY_MAX_SOAK_EXTENSIONS |
3 |
--rollout-no-traffic |
OPDNS_ROLLOUT_NO_TRAFFIC |
promote |
--rollout-interval |
OPDNS_ROLLOUT_INTERVAL |
min(15 s, soak / 4) |
--prometheus-url |
OPDNS_PROMETHEUS_URL |
none, required with the canary |
--retain |
OPDNS_RETAIN |
30 |
--lists-next-pubkeys |
OPDNS_LISTS_NEXT_PUBKEYS |
none |
The canary also needs NATS (--nats-url), because edges learn canary and
promoted versions from announcements.
From the admin app
Section titled “From the admin app”The Lists page of the admin app (/lists on the admin host) shows the
rollout. You can drive the rollout from it without a shell. The page shows:
- The served version and the newest version of each artifact (fleet and public).
- The build that soaks on the canary PoPs, with its start, soak deadline, traffic share and health. The health is the deciding block and SERVFAIL deltas against the thresholds, or soaking, held, inconclusive or waiting.
- Whether promotions are paused.
- The last rollouts and the rollout trail.
Its actions are:
- Promote now: promote the soaking canary fleet-wide before its soak ends.
- Pause: pin at the served version.
- Resume: unpin.
- Roll back: go back to an older version. The version is pinned unless you untick the option.
Each action needs a reason and a recent sign-in (step-up). The audit log
records each action (admin.list_rollout_promoted, _paused, _resumed,
_rolled_back). Each action also appears in the rollout trail, with the
email of the operator as the actor. The admin API reaches the admin routes
of the listc role (below) with OPDNS_LISTC_ADMIN_URL and
OPDNS_LISTC_ADMIN_TOKEN (the OPDNS_ADMIN_TOKEN of the listc role).
Without them, the page says that the controls are unavailable.
Roll back
Section titled “Roll back”A rollback serves an older version fleet-wide at once. latest.json points
at it again, and the role announces it again to every PoP and node. Nodes
install it even though it is older than the version that they run (see
List updates and rollbacks).
By default, a rollback also pins promotions at that version, so the next
build does not undo it. The role marks the rolled-back build rolled_back
and never promotes it again. The next build that changes something starts
a new canary.
opdns-lists rollback --reason "INC-42 over-blocking" 41opdns-lists rollback --no-pin 41 # roll back without pinningThe version must still be in storage (otherwise 404). It must be older than the served version (otherwise 409).
A pin stops automatic promotion beyond a version, without a rollback. New builds still soak on the canary PoPs. The role holds them there with the reason held: promotions pinned at vN. Unpin to let them through.
opdns-lists pin --reason "freeze for the migration" 41opdns-lists unpin --reason "migration done"Inspect
Section titled “Inspect”opdns-lists rolloutThis command prints the rollout state as JSON. The state includes:
- Whether the canary is on, with its PoPs, soak and thresholds.
- The served and head versions.
- The soaking canary, with the reason that it still waits.
- The pin.
- The recent rollouts and events.
comparison: the baseline of the soaking canary (or else of the last judged canary) and the basis of its verdict.
Admin endpoints
Section titled “Admin endpoints”The same operations are HTTP routes on the admin port of the listc role.
That is the --admin-addr of the role (default :9090), which also serves
/metrics and the health checks:
| Route | Does |
|---|---|
GET /admin/rollout |
the rollout state |
POST /admin/rollback?version=N |
serve older version N fleet-wide and pin at it (&pin=false: do not pin). 404: not in storage. 409: not older than the served version |
POST /admin/pin?version=N |
no automatic promotion beyond N until unpinned |
DELETE /admin/pin |
unpin |
POST /admin/pause |
pin at the served version. 409: nothing served |
POST /admin/promote?version=N |
promote the soaking canary N fleet-wide now. 409: not the soaking canary, or paused below it |
POST /admin/build |
run a build cycle now. It waits up to ?wait= (default 50 s, at most 55 s): 200 done, 500 failed (the body says why), 202 still running, 409 another on-demand build running, 503 the compiler not running |
GET /admin/build |
the last on-demand build since the instance started (404 when none) |
reason= and actor= (or the X-Opdns-Actor header) go into the audit
trail. The actor is admin by default. Access is guarded as on the admin
port of every role. With OPDNS_ADMIN_TOKEN set, requests need
Authorization: Bearer <token>. Without it, the role serves only loopback
clients. See Admin tools.
opdns-lists
Section titled “opdns-lists”opdns-lists rollout | rollback | pin | unpin wrap these routes. The
commands that read artifacts are below.
| Flag | Environment | Default |
|---|---|---|
-admin-url |
OPDNS_LISTS_ADMIN_URL |
http://127.0.0.1:18092 (a local development listc role) |
-token |
OPDNS_LISTS_TOKEN, then OPDNS_ADMIN_TOKEN |
none |
-actor |
OPDNS_LISTS_ACTOR |
$USER |
-reason |
none | |
-no-pin |
rollback only | |
-timeout |
30s |
You can write a version as 41 or v41. The command prints the JSON
answer. On a failure, it prints the error of the server and exits non-zero.
List history
Section titled “List history”The listc role records what it fetched and what it built in Postgres. So the history survives the retention of the object store, and you can read it from the API:
list_sources: one row per source that the compiler runs or ran. Each row has the configuration, license and attribution of the source. It has the last fetch attempt: time, HTTP status, error, ETag, bytes, snapshot hash, and the key of the kept raw snapshot. It also has the entries that the source gave the last fleet build. A source removed from the configuration stays, withenabledfalse.list_versions: one row per variant (fleet,public) of every build that the compiler judged. A build ispublished, refused by a publish gate (gate_failed), or failed to upload (publish_error). Each row has the size and hash of the artifact, the entries per list, the source snapshots and the report of the gate. For the fleet variant, it also has the rollout: canary result, promotion and rollback times, and the state (canary,promoted,rejected,superseded,rolled_back).
Two routes of the admin API read them. They need an operator session with a second factor (Admin tools).
| Route | Returns |
|---|---|
GET /v1/admin/lists/sources |
every source with its last fetch |
GET /v1/admin/lists/versions |
the judged builds, newest first, paginated. Filter with ?variant=fleet or public |
A build that a gate refuses does not use up its version number. The next build reuses the number, and its row replaces the refused one.
list_versions also holds the input of the freshness panel on the
opdns / lists dashboard. The panel shows the time from the newest change
among the source snapshots of a fleet build to its promotion, soak included
(opdns_cp_listc_fetch_to_promotion_seconds). A target is planned, for
example a new threat-feed entry that blocks fleet-wide within 90 minutes.
The public catalog, GET /v1/lists,
reads the same table. Every list carries its toggle (the profile setting
that it backs), its attribution and its enabled sources. Each source
has its URL, license, attribution, entries and last change. The catalog
never shows the fetch errors or the sources that a list no longer uses.
Rule syntax
Section titled “Rule syntax”Lists hold three kinds of rule, with the same syntax as profile rules:
| Rule | Matches |
|---|---|
example.com |
the name and every name below it (suffix, the default) |
=example.com |
the name only (exact) |
*.example.com |
names below it, not the name itself (children-only) |
One normalizer reads every source and every file in the repository. It
lowercases names, converts internationalized names to A-labels and strips
a trailing dot. It rejects IP literals, localhost names, single-label
names and any other *. A Public Suffix List entry (such as co.uk), from
its ICANN or private section, is rejected as a suffix or children-only
rule, because such a rule blocks a whole registry. The same entry is
accepted as an exact rule.
The HaGeZi lists are the exception, because their entries are hosts. A
HaGeZi suffix rule on such a name stays as an exact rule that blocks that
name only. HaGeZi Threat Intelligence lists about 80 such names, such as
ec2-…compute-1.amazonaws.com or a dynamic-DNS name. The build report of
each source counts them (public_suffix_exact). An exact rule and a
children-only rule for one name merge into a suffix rule.
The artifact is format version 2, which stores the kind of each entry. Format 1 held suffix rules only. PoPs and nodes still load format 1, so a rollback to an older build works.
Guard list
Section titled “Guard list”The guard list (guard.txt) holds names that must keep resolving, whatever
the upstream lists say. Examples are opdns’s own domains, the DNS root and
TLD infrastructure, and similar names. It uses the rule syntax above, with
a reason after # on each line.
The compiler removes every block rule, in every list and variant, that
matches a guarded name. A block on a parent of a guarded name is removed
whole, because the artifact cannot hold a hole. A block on the same name
loses the part that the guard covers. Each removal (list, source, line,
rule, guard rule) goes into the provenance file of the build and the log of
the listc role (guard list removed a block rule), and ListGuardRemoved
fires. The publish gates check the finished artifact against the guard
again.
Keep guard entries specific. A guard on a broad parent disables every upstream block below it.
List ids
Section titled “List ids”Profiles store list ids. So an id is assigned once and is never renumbered
or reused. The id ledger (ids.txt) holds every id ever assigned, with its
name and state: active, retired, or fixture for test-only lists. A
list that goes away moves to retired and does not disappear. Every
manifest lists the retired ids, so that PoPs and nodes treat them as
disabled. A test fails when the catalog and the ledger disagree.
Each retired id names its replacement (replaced_by in the retired
entries of the manifest). The replacement is a list with the same category
and profile toggle. A toggle keeps working on its own, because it switches
on every list that carries it. A list enabled by id shows as retired in the
dashboard until the user turns it off. The replacement is the list to
enable instead. GET /v1/lists keeps retired lists as retired: true
rows.
| Id | List | Retired | Why | Replaced by |
|---|---|---|---|---|
| 8 | stevenblack-unified |
2026-09-30 | license: merges non-commercial upstreams (MVPS hosts, someonewhocares) | 2 hagezi-normal (ads and trackers, enabled by id) |
| 21 | urlhaus |
2026-09-30 | license: abuse.ch terms allow not-for-profit use only | 20 hagezi-tif (threat_intel, which ingests URLhaus) |
| 22 | phishing-army |
2026-09-30 | license: CC BY-NC 4.0 | 20 hagezi-tif (threat_intel) |
guard.txt, ids.txt and gate-overrides.txt are compiled into
opdns-cp, so a change reaches the listc role with the next release.
Changes to these files need code-owner review.
Publish gates
Section titled “Publish gates”Before the role uploads a build, four gates compare it with the last published build of the same variant:
| Gate | Fails when |
|---|---|
count-delta |
a list of at least 100 entries loses more than half its entries, or more than quadruples |
size |
the artifact is over 1 GiB or 20 million entries (it is memory-mapped, so all of it ends up resident) |
guard |
the finished artifact still blocks a guarded name |
top-sites |
a blocklist or security list newly blocks a site in the top 10,000 of the custom Tranco ranking (parental lists block popular sites on purpose) |
The top-sites gate compares with the previous build. So the first build of a variant only records, as its baseline, the top sites that it already blocks. The ranking of the gate is a custom Tranco list, built only from the Chrome UX Report, Majestic and Cisco Umbrella. The default Tranco list also mixes in Cloudflare Radar (CC BY-NC) and Farsight (no stated terms). A commercial service is not allowed to use those sources.
The listc role fetches the custom list for this gate only. It never
compiles the list into a list or publishes it. A custom list is a snapshot.
It is generated again every month, and the opdns-cp release pins the id
of the one in use. If the role cannot download the ranking, it logs
top sites fetch failed. Builds then run without this gate until a
download works. The role never falls back to the default Tranco list.
A build that a gate refuses is not uploaded. The served version does not
change, and ListBuildGateFailed fires. opdns_listc_gate_failures_total
counts it by gate. The log line build refused by the gate of the listc
role and GET /admin/build list every failure. An upstream mistake is
fixed upstream, and the next build then passes again. For an expected
change, add a line to the gate overrides file (gate-overrides.txt). Each
line is one reviewed exception, with a reason:
top-site example.com list=20 # reason: why this site may become blockedcount list=7 until=2026-10-15 # reason: upstream restructured the listA top-site line lets that domain become newly blocked, by the listed
lists, or by any list without list=. A count line lets that list pass
its count-delta threshold until the end of that day (UTC).
Before the role runs the gates, you can preview them on two builds:
opdns-lists gate -pub lists.pub v41.bin v42.binopdns-lists gate -pub lists.pub -top-sites tranco.csv @41 @42opdns-lists gate -pub lists.pub - v42.bin # no baselineBoth artifacts need their manifest next to them. -top-sites reads a
ranking CSV in the rank,domain form of Tranco: the custom list download,
zipped or not. Without -top-sites, the top-sites gate is off.
-overrides reads another overrides file, and -min-entries changes the
100-entry threshold.
Why is a name blocked?
Section titled “Why is a name blocked?”opdns-lists reads local artifacts, URLs and published versions. @N is
version N of -variant (fleet or public) under -base-url. Set
-base-url to the published lists. Its default is a local development
address. The tool verifies signatures with -pub FILE.
opdns-lists lookup -pub lists.pub -version 42 ads.example.comopdns-lists lookup -pub lists.pub -why @42 ads.example.comopdns-lists diff -pub lists.pub @41 @42opdns-lists inspect -pub lists.pub @42opdns-lists verify -pub lists.pub v42.bin v42.json| Command | Prints |
|---|---|
lookup ARTIFACT NAME |
each list that matches the name, with the rule and its kind. -version N is the same as @N |
lookup -why |
also, from the entries sidecar, the source, snapshot hash, line and raw input line behind each match |
diff OLD NEW |
entry counts, then per list the rules added and removed (-limit: default 50 per list and direction, 0 for all. -counts: counts only) |
inspect ARTIFACT |
format, version, creation time, entries, size and lists, with the manifest when it is next to the artifact |
verify ARTIFACT [MANIFEST] |
checks the signature, and the detached signature of the manifest when present |
Signing, provenance and retention
Section titled “Signing, provenance and retention”- The artifact is signed with Ed25519. The manifest (
v<N>.json),latest.jsonandkeys.jsoncarry detached minisign-format signatures (.sig) that stockminisign -Vverifies.latest.jsonnames thekey_idof the signing key. keys.jsonlists every key that consumers must trust:current,nextandprevious.nextis announced before a rotation with--lists-next-pubkeys, so consumers trust it before it signs anything.previousis for older artifacts that a rollback can still serve.- Each build writes
v<N>.provenance.json. It records where every source snapshot came from: URL, license, hash, size, fetch time, HTTP validators and accepted entries, or why the snapshot was left out. It also holds the conflict report (every block rule that the allow hints or the guard list removed) and the gate verdict. So you can trace and reproduce a build. While--keep-rawis on, the raw snapshots are underlists/raw/<sha256>. - Each build also writes
v<N>.entries.tsv.gz, with one row per entry: rule, list, source, snapshot hash and the raw input line.opdns-lists lookup -whyreads it. Neither sidecar is part of the artifact. - The sidecars are for operators. With
--lists-sidecar-prefix(OPDNS_LISTS_SIDECAR_PREFIX), they go under that prefix instead of next to the artifact. Production usesprovenance/lists/, which the bucket policy does not make public. Artifacts, manifests and notices stay public underlists/. Read the sidecars with credentials:OPDNS_S3_ENDPOINT=<endpoint> OPDNS_S3_USE_SSL=true OPDNS_S3_ACCESS_KEY=… OPDNS_S3_SECRET_KEY=… opdns-lists lookup -why --sidecar-base-url s3://<lists-bucket>/provenance/lists/ @42 NAME. - Each published version also gets
v<N>.notices.mdnext to the artifact. The file holds the GPL-3.0 source offer for that version, followed by opdns’s third-party notices. The offer gives the upstream URL and snapshot SHA-256 of each included GPL-3.0 source, published underlists/raw/<sha256>while--keep-rawis on. It also gives a written offer that you can redeem at legal@opdns.io. Retention keeps the file, like the manifest. - Retention (
--retain, default 30) keeps the newest N artifacts per variant. It also keeps the served version, its predecessor, a pinned version, and a soaking canary with the version that it reverts to on a rejection.0keeps all.
List reports
Section titled “List reports”Users report the mistakes of a list from the details of a query in the
dashboard
(Report a wrong block or a miss).
A report is a false positive or a false negative. A false positive is a
name that the list blocks by mistake. A false negative is a harmful name
that a security list misses. Each report records the domain, the list and
its catalog version at the time, the kind and the note of the reporter. An
account can send 20 reports a day. Each new report is audited as
list_report.create.
Triage
Section titled “Triage”The List reports page of the admin app is the queue, newest first. By default it shows the open reports. You can filter by status (Open, Accepted, Rejected) and kind (Wrong block, Missed block). The filters are kept in the address. Each row shows:
- When the report came in, and when its triage is due (Overdue after that time).
- The domain and the note of the reporter.
- The kind, the list and its version, and the profile.
- The status, with your note.
Write an optional note to the reporter, then click Accept or Reject.
The admin API has the same functions: GET /v1/admin/list-reports
(status, kind) and PATCH /v1/admin/list-reports/{id} with
{"status": "accepted", "note": "…"} (or "rejected").
You can triage a report again. The latest decision stands. Each decision is
audited as admin.list_report_triaged with the previous and the new
status. The reporter sees the status and your note under Settings → Lists.
Email to the reporter
Section titled “Email to the reporter”When a triage changes the status of a report, the reporter gets an email
(template list_report_resolved). The email gives the domain, the list,
accepted or not accepted, your note, and what happens next. It links to
the settings of the profile. Write the note for the customer. No email goes
to an account without an address or to an account that waits for deletion.
Triage target
Section titled “Triage target”Every report carries triage_due_at: two business days (Monday to Friday,
UTC) after the user sent it. The reporter sees it in the API. The api role
counts the queue (opdns_cp_list_reports_open,
opdns_cp_list_reports_overdue). It measures each triage from report to
decision (opdns_cp_list_report_triage_seconds,
opdns_cp_list_reports_triaged_total{within_target}). ListReportsOverdue
fires when reports wait past the target.
Export
Section titled “Export”Accepting a report does not change any list. To turn accepted reports into candidate lines, run:
opdns-cp admin list-reports export --accepted [--since 2026-09-01] [--out candidates.txt]The command reads the reports resolved since --since (a UTC day or an
RFC 3339 time, by default the last 7 days). It writes to --out or to
stdout:
- For accepted false positives: candidate lines for the guard list in its syntax. Several reports of one domain go on one line. If the guard already covers a domain, the command writes it as a comment that names the guard rule.
- For accepted false negatives: candidate
top-sitelines for the gate overrides file. They help only when a publish gate held back a new block of a list. Otherwise, the fix belongs upstream, in the list itself.
A summary goes to stderr: reports, guard candidates, already guarded, gate-override candidates and skipped. The command is read-only. A reviewer copies the candidates that hold up into the list files. Every change there needs code-owner review, like any other change.
Alerts
Section titled “Alerts”| Alert | Severity | Fires when |
|---|---|---|
ListBuildFailing |
page | every build or publish of a variant failed for over an hour |
ListSourceStale |
warn | no refresh of a source for two refresh intervals |
ListSourceExpired |
page | a source is past its max age and left out of builds |
ListCanaryStuck |
warn | a canary is undecided after three soak windows (not while a pin holds it) |
ListCanaryRejected |
warn | the canary rejected a build in the last hour |
ListPromotionFailed |
page | promoting, reverting or rolling back failed in the last 15 minutes |
ListArtifactOld |
warn | the served version was built over two days ago |
ListBuildGateFailed |
warn | a publish gate refused a build in the last hour. The previous version stays served |
ListGuardRemoved |
warn | the guard list removed block rules from the last build |
ListVersionNotPromoted |
warn | an edge still serves another list version 10 minutes after a promotion or rollback (an edge on the soaking canary is where it belongs). Check its NATS leaf and ListArtifactRefused |
ListArtifactRefused |
page | an edge refused an announced artifact (opdns_edge_list_refused_total{reason}: size, checksum, signature, format or version) and kept its previous version. Run opdns-lists verify on the published version before you announce it again. If it is bad, roll back |
ListReportsOverdue |
warn | list reports waited past the two-business-day triage target for 15 minutes |
The Grafana dashboard opdns / lists shows the same series.