Add DoH server blocklist: curated feeds, canary probe, router reconciliation (D-0054) #133
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/doh-blocklist"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What does this PR do?
Adds a DoH-server blocklist feature that keeps the pre-existing
dns_over_https_serversMikroTik address list current on every managed router, so the firewall can block DNS-over-HTTPS resolvers that bypass local DNS controls.Three cooperating workers:
Confirmedrequires HTTP 200 +application/dns-message+ the published token. The probe is confirmation-only annotation; it never deletes an entry on its own.PATCH).Follows the existing config-store pattern (D-0050..D-0053): single-row settings plus desired-address and probe-result tables, in-memory + Postgres stores, options-fallback source, create-only seed worker, NOTIFY-based refresh, EF migration, step-up-gated audited write at
/configuration#doh-blocklist, and read-onlyGET /api/v1/doh/settings. Every control is editable in the Admin UI and readable via the API.Router writes are propose-only until
ApplyToRoutersis enabled and global dry-run is off. v1 is IPv4-only, matching the existing IPv4 firewall list. The probe client tolerates certificate mismatch because it connects by IP and the canary token is public, so no secret is exposed.See DECISIONS.md D-0054 for the full rationale and rejected alternatives.
How was this tested?
dotnet build- 0 errors, 0 warningsdotnet test- AdminApi 225, Application 581 (17 new DoH tests), Postgres integration 88, all passChecklist