Skip to content
Sign inDashboard

Admin tools

The operator tools are not part of the dashboard or the public API. They are the admin app on the admin host. Only the private network of the operators can reach this host. Its address is in the admin runbook in the operator repository, not on this public site. The admin-api role of the control plane serves the app and its API (/v1/... on the same host). app.opdns.io and api.opdns.io have no operator page and no /v1/admin route (they answer 404).

  • You sign in with your op account. The admin app signs you in through opauth (the account service shared by the opr products). It makes sure that the account is opauth staff, that you signed in with a second factor, and that you signed in less than 8 hours ago. If one of these fails, the app shows why (not staff, second factor required, sign-in too old) and does not start a session. The admin host itself has no password, authenticator or passkey sign-in.
  • The admin host has its own sessions. An admin session is valid on the admin host only. It lasts at most 8 hours from your sign-in at opauth, and it ends after an hour without use. A dashboard session is not valid on the admin host, and an admin session is not valid on the dashboard. The admin API has no API tokens.
  • Every write asks twice. Every action that changes something first opens a confirmation. Actions that change accounts, profiles or the signup gate also need a sign-in within the last five minutes. If your sign-in is older, the app sends you through the opauth sign-in again (403 reauth_required). Every action is in the operator audit.

An operator is an opauth staff member. Staff access is granted and revoked in the admin console of opauth, not in opdns. There is no operator flag in opdns, and no command or route that grants one. The public API never makes an account an operator. If you revoke the staff access of a person, their next sign-in fails. If you sign them out at opauth, their admin sessions also end.

opdns-cp admin operator holds the operator actions: block and source-block. The command line talks to the database directly and needs no sign-in.

opdns-cp admin profile reads and changes customer profiles, for support and incidents. Writes go through the same write path as the API: a version bump and an outbox row in one transaction. So the change goes to every PoP (a server location) like any other change. Each write is audited as profile.create or profile.update. The audit entry has the before and after values, the actor cli:<user>@<host> and the optional --reason.

Terminal window
opdns-cp admin profile list --email user@example.org
opdns-cp admin profile get abc123 --document
opdns-cp admin profile set abc123 settings.block_mode=refused --reason "ticket 812" --yes
opdns-cp admin profile create --email user@example.org --name Home --yes
Subcommand Does
list [--email X] [--all] [--limit 50] profiles across accounts, newest first (--all includes deleted ones)
get ID [--document] a profile as JSON, or with --document the document that the publisher sends to the PoPs (rules, lists, linked IPs)
create --email X [--name N] a new profile for that account
set ID [--version N] [--json BODY | --file F | KEY=VALUE...] a partial update, the body of PATCH /v1/profiles/{id}. KEY is name or section.field (security, parental, settings). VALUE is JSON or a bare string. --version fails the write if the profile changed after you read it

The profile pipeline itself (stream, replay, reconcile) has its own commands: Profile propagation.

A suspended profile gets REFUSED for every query until an operator reinstates it. The edges and the self-hosted nodes of the profile answer with Extended DNS Error 15 (Blocked) and the text profile suspended, or profile suspended: <public reason>. They do not log these queries. What the customer sees is on Profiles.

A suspension has two texts:

  • --reason (reason) is the internal note, for example ticket ids and report numbers. The customer never sees it: not in DNS answers, the dashboard, the API, their audit log or their data export.
  • --public-reason (public_reason) is optional. The users of the profile see it in every refused answer and on their dashboard. Write one short plain sentence (at most 120 printable characters), with no private details.
Terminal window
opdns-cp admin profile suspend abc123 --reason "abuse ticket 812" \
--public-reason "terms of service violation, contact support" --yes
opdns-cp admin profile unsuspend abc123 --yes
Subcommand Does
suspend ID --reason R [--public-reason P] suspends the profile. The reason is required, the public reason is optional
unsuspend ID [--reason R] reinstates it (both texts are cleared)

You can do the same from the admin app (Profiles, Suspend… on a row) or the admin API. GET /v1/admin/profiles/{id} returns the operator view (suspended, suspended_reason, suspended_at, suspended_by, suspended_public_reason). PATCH /v1/admin/profiles/{id} with {"suspended": true, "reason": "…", "public_reason": "…"} changes it. The reason is required to suspend, at most 200 characters. The public reason is optional, at most 120 characters. The API ignores both when it reinstates a profile. A change to only the public reason of a suspended profile also makes a new version.

Rename… on the same row (PUT /v1/admin/profiles/{id}/name) renames a profile through the path of admin profile set ID name=…, audited as profile.update. Both actions need a sign-in within the last five minutes.

In both cases, the change goes through the profile write path (new version, outbox row). So every PoP and enrolled node applies it within seconds, like any profile change. There, the profile compiles to no lists, rules, rewrites, security or parental controls. Logs are off, with no client subnet and no cache boost. The profile keeps its id, linked IPs and retention. The edge writes neither a log record nor a counter for it. Operator blocks still apply. A request that changes nothing (for example, a suspension of a suspended profile) writes nothing, and the answer says so.

Each change is audited as profile.suspended or profile.unsuspended in the organization of the profile. The reason (and the previous reason) is in the operator audit only. The Activity page of the customer shows the entry without it. The reason never reaches the profile API, the document of the node or the data export of the customer. While the profile is suspended, the writes of the customer to the profile get 409 profile_suspended. admin profile set, DDNS updates by token and the own calls of a node still work. A self-hosted node older than this feature refuses the document with the new fields and keeps its last one. So it continues to filter.

You can also manage the operator blocks of the admin app without the API:

Terminal window
opdns-cp admin operator block list
opdns-cp admin operator block add --pattern example.com --reason-code legal_order \
--public-ref "ORDER-2026-17" --requester "Tribunal judiciaire de Paris" \
--jurisdictions FR --expires-in 720h --yes
opdns-cp admin operator block remove <id> --yes
opdns-cp admin operator block report --from 2026-07-01 --to 2026-09-30 --csv
opdns-cp admin operator source-block list
opdns-cp admin operator source-block add --cidr 192.0.2.0/24 --reason "ABUSE-31 flood" \
--action drop --expires-in 24h --yes
opdns-cp admin operator source-block remove <id> --yes

block add takes --pattern and --reason-code (legal_order, abuse or csam). Its optional flags are --public-ref (the legal reference that clients see), --requester (who asked, never published), --note, --pops, --jurisdictions and --expires-in. source-block add takes --cidr, --reason, --action (refuse, drop or ratelimit, with --rate-limit-qps), --pops, --jurisdictions and --expires-in (7 days by default, at most 90). list --all includes removed and expired entries, and --json prints JSON.

--dry-run on add and remove checks the change against the live entries and changes nothing. A duplicate still fails. A dry run needs neither --yes nor a destination. block report counts operator blocks per reason code for a date range (--from and --to inclusive, UTC, with --csv or --json).

A change writes three things in one transaction: the row, operator/blocks.json or operator/sources.json, and the audit entry (admin.operator_block_created, admin.source_block_removed and the others). It uses the same code path as the admin API. Then it announces the change to the PoPs over NATS (--nats-url). Without NATS, the PoPs pick up the file by polling. The file goes to the --s3-* bucket, or to --export-dir without a bucket, as for the api role.

Outside env=dev, every admin write refuses to run without --yes. The writes are profile create|set|suspend|unsuspend, operator block add|remove, profiles republish, operator source-block add|remove and profiles reconcile --fix.

opdns-cp admin list-reports export --accepted turns the list reports that operators accepted into candidate lines for the list repository. It is read-only. See List reports.

Audit in the admin app is the audit log of every organization, newest first and read-only. It covers sign-ins, credential and token changes, profiles, nodes, exports, deletions and operator actions. You can filter it by actor, by action and by a time range. The actor filter is exact, such as account:<id> or cli:<user>@<host>. The action filter is exact, such as auth.login_failed, or a prefix that ends in ., such as admin.. The filters are kept in the address, so you can share a filtered view. Load more fetches older entries.

The API is GET /v1/admin/audit on the admin API with actor, action, from, to and the usual limit and cursor. The members of an organization see only the entries of their organization, on Account → Activity.

Overview in the admin app shows the fleet at a glance, over the last 30 days (UTC, today included). It shows:

  • Accounts: total, new per day, and scheduled for deletion.
  • Live profiles, and how many are suspended.
  • Enrolled self-hosted nodes, and how many are online.
  • Queries per day, with the blocked share and the error rate.
  • The queries of each PoP, with the median and 95th percentile resolution time.
  • Blocked queries by list category.

The numbers are totals across every organization. Nothing on the page is per account, per profile or per domain, and the page has no query logs.

Queries per day come from the always-on hourly counters, so they include profiles with logs off. The per-PoP and per-category numbers come from logged queries only. Their source is two daily rollups in ClickHouse that hold no profile, device or name. Profiles with logs off are not in them. The server computes the answer at most every five minutes, and every operator sees the same answer. The page says when it was computed. Without ClickHouse, the traffic half of the page says so, and the account, profile and node counts still show.

The API is GET /v1/admin/analytics/overview.

Accounts in the admin app lists every account, newest first. Each row shows the address, organization, creation date, last sign-in, live profiles and state. The state is Active, Unverified, Suspended (when one of its profiles is suspended) or Deletion scheduled. You can search by address, organization name or account id. You can filter by suspension, scheduled deletion and creation date. The filters are kept in the address.

The page of an account shows its profiles, with enrolled and online node counts. It shows how many API tokens and passkeys the account has, and whether an authenticator app is on. It also shows the operator actions for the account. Each action is behind a confirmation and is audited:

Action Does API (admin host) Audit
Schedule deletion… / Cancel deletion… deletion for the owner, with the reason and the data-rights ticket. See the deletion-request-by-email runbook. The cooling-off period is the same seven days as for a deletion that the owner starts POST / DELETE /v1/admin/accounts/{id}/deletion admin.deletion_requested, admin.deletion_canceled
Suspend… / Reinstate suspends (or reinstates) every live profile of the account, each one as Suspend a profile does. The reason is required to suspend POST /v1/admin/accounts/{id}/suspension profile.suspended, profile.unsuspended (one per profile)
Resend verification email a new address verification link to an unverified account (409 already_verified otherwise) POST /v1/admin/accounts/{id}/verification admin.verification_resent

All of them need a sign-in within the last five minutes. The command line equivalents are opdns-cp admin account delete|undelete|suspend|unsuspend. Operator access itself belongs to opauth (Operator accounts).

Profiles in the admin app lists every live profile, newest first. Each row shows the id, name, owning account (a link to its page), creation date, enabled lists, nodes and suspension. You can search by profile id (its first characters), by name or by the address of the account.

Apart from the actions above, these pages are read-only. They show no passwords, tokens, client addresses or logs. Every page view, search and opened account is written to the operator audit log as admin.viewed, in the organization of the operator. The entry records what was viewed, and the search text. Reads are limited to 120 a minute per operator. The API is GET /v1/admin/accounts (q, operator, suspended, pending_deletion, created_from, created_to), GET /v1/admin/accounts/{id} and GET /v1/admin/profiles (q, suspended).

Feedback in the admin app is the inbox of the messages that users send from Account → Help and feedback. It shows the last 365 days, newest first, in tabs by status with their counts: New (new and reopened messages), Acknowledged, Resolved and All. The arrow keys move between tabs. Each row shows:

  • When the message arrived.
  • Its category (Bug, Idea, Question, Other).
  • The message.
  • The dashboard page that it was sent from, with ids replaced, such as /p/:id/logs.
  • The account hash of the sender, never the address. The account hash is the first 12 hex digits of the SHA-256 of the account id. It is also the pseudonym in the access log of the API.
  • Its status, and how many replies and notes it has.

no reply wanted under the hash means that the sender unticked the reply option. You can search by a piece of the message or the page (not case-sensitive), or by an account id or account hash (exact). You can filter by category. The tab and the filters are kept in the address.

Open a message to work on it. Its page shows the whole message and the account of the sender: address, organization, plan and state, with a link to the page of the account. The page also has these parts:

  • Status: Acknowledge a new or reopened message, Resolve it when it is handled, or Reopen a resolved one. The page shows the latest of each, with when and by whom. Keys outside text fields: a, r, o.
  • Reply by email: write a subject (by default “Re: your feedback on opdns”) and a message. Preview it as the sender will read it: your message, the signature and a short quote of their message. Then click Send email. The email goes through the mail queue from the sender address of opdns, with the support mailbox as Reply-To. So their answer reaches support. A reply also acknowledges a new message. The page lists each sent reply with its delivery (Queued, Sent, Failed, Suppressed). You cannot send a reply when the sender asked for none. e focuses the message, and Ctrl+Enter previews.
  • Internal notes: only staff see them. You cannot edit or remove them. n focuses the note, and Ctrl+Enter adds it.

Every view and search is written to the operator audit log as admin.viewed. The target is feedback with the search text and filters, or feedback:<id> for one message. Reads are limited to 120 a minute per operator. Every write is audited with the staff member as actor: admin.feedback_acknowledged, admin.feedback_resolved, admin.feedback_reopened, admin.feedback_noted (the id of the note, not its text) and admin.feedback_replied (target feedback:<id>).

The API is GET /v1/admin/feedback (q, category, status, repeatable, limit, cursor, with counts per status), GET /v1/admin/feedback/{id}, and POST /v1/admin/feedback/{id}/acknowledge, /resolve, /reopen, /notes ({"body": "..."}) and /replies ({"subject": "...", "message": "..."}). When the account of the sender is deleted, its messages, notes and replies are deleted too.

While signup is invite-only, people join the waitlist from the site and confirm their address by email. Waitlist in the admin app lists the confirmed entries, newest confirmation first. Each row shows the address, the first digits of its SHA-256 hash, when it confirmed, when it was invited, and the state of its invitation code. The state is Unused, Used, Expired or Revoked, or Not invited before the first invitation. Entries that did not confirm are not listed. An entry leaves the waitlist when its address signs up.

You can search by entry id, or by at least four hex digits of the address hash. The audit log records addresses in this hash form. You cannot search by address, so addresses never end up in a URL or an access log.

  • Invite on a row sends that address an invitation at once. On a row that already has an invitation, the button says Invite again… and asks first. It sends a new code, and the earlier code keeps working until it is used or expires.
  • Invite next N (10 by default, at most 100) invites the confirmed entries that were never invited, first confirmed first. The confirmation says how many entries it will invite. When fewer than N entries wait, it invites all of them.

Each invitation is a signup invite code that works once and expires after 30 days. The code is recorded on the entry. The invitation also sends the Your invitation to the opdns alpha email with the signup link (/signup#invite_code=…). The mailer queues it like every other email. If the queue does not accept the email for a code, the code is revoked at once, and the row shows it as Revoked. Invite that entry again. Without a mail provider, the page refuses to invite (503 mail_unavailable). In that case, use opdns-cp admin waitlist invite, which prints the code for manual delivery.

Every page view and search is audited as admin.viewed (target waitlist). Each invitation batch is one admin.waitlist_invited row in the organization of the operator, with the number invited and the entry ids. The API is GET /v1/admin/waitlist (q, limit, cursor) and POST /v1/admin/waitlist/invite with {"ids": [...]} or {"next": N}. The command line equivalent, by address, is opdns-cp admin waitlist list | invite | delete (see the admin runbook).

Signup in the admin app shows the signup gate in effect: Open, Invite only or Closed. It shows whether the gate is the choice of an operator or the default of the deployment (OPDNS_SIGNUP_MODE). You can change the gate, or go back to the default. The change applies at once on every API replica.

Below the gate, the page lists the signup invitations: uses, remaining uses, expiry, whether revoked, and the note. New invitation… creates a code with one use by default, an optional expiry (such as 48h or 7d) and a note. The page shows the code once, with a copy button. The code is not stored in clear text, so the page cannot show it again. Revoke… stops a code from admitting more signups.

The API is GET and PUT /v1/admin/signup/mode ({"mode": "invite"}, or "default"), GET and POST /v1/admin/signup/invites and DELETE /v1/admin/signup/invites/{id}. These are audited as admin.signup_mode_set, admin.signup_invite_created and admin.signup_invite_revoked. Changes need a sign-in within the last five minutes. The command line equivalents are opdns-cp admin signup-mode get|set and opdns-cp admin invite new|list|revoke, which use the same code paths.

Browsers report uncaught dashboard errors. Before a browser sends a report, it removes names, addresses, emails and ids. The reports are kept 30 days. No page shows them yet. To list them, use GET /v1/admin/client-errors on the admin API (paginated, newest first).

Every opdns-cp role serves /metrics, /healthz, /readyz and /livez on its admin port (--admin-addr, default :9090). Two roles add routes that take actions:

Role Route Does
certs POST /admin/rotate start a forced certificate rotation on the leader. It waits up to ?wait= (default 45 s, at most 55 s): 200 done, 202 still running, 500 failed, 409 not the leader, 503 busy
certs GET /admin/rotate the last rotation since the instance started (404 when none)
listc POST /admin/build run a list build cycle now. It waits up to ?wait= (default 50 s, at most 55 s): 200 done, 500 failed, 202 still running, 409 another on-demand build running, 503 the compiler not running
listc GET /admin/build the last on-demand build (404 when none)
listc GET /admin/rollout, POST /admin/rollback, POST and DELETE /admin/pin list rollouts

All roles guard these routes the same way. With OPDNS_ADMIN_TOKEN set on the role, a request needs Authorization: Bearer <token> (otherwise 401). Without the token, the role serves only loopback clients (otherwise 403). Outside env=dev, every role refuses to start with a published development secret. Such a secret is the development admin token or S3 secret, or a secrets keyring that holds the development key (or any key named dev).

Terminal window
curl -X POST -H "Authorization: Bearer $OPDNS_ADMIN_TOKEN" \
"http://127.0.0.1:9090/admin/build?wait=30s"

You can run opdns-cp certs --once --force while another instance leads. In that case, it asks that leader to rotate through POST /admin/rotate and follows the rotation. It finds the leader with --leader-admin-url (default http://127.0.0.1:<admin-addr port>) and uses OPDNS_ADMIN_TOKEN. A SIGUSR1 signal to the leader also starts a rotation.