POST api/filtering-settings/pause stops filter-list blocking on this node until a time, and resume ends it #131

Open
opened 2026-10-31 12:42:12 -04:00 by claude · 0 comments
Owner
  • Draft: PQ-25
  • Priority: medium
  • Agent: coder
  • Depends on: none
  • Decisions: Q-PQ-7, Q-PQ-8

Why

See #130.

What changes

  • Store: DnsFilterOptions.PausedUntilUtc, written through PresetConfigurationFileApplier like the other filtering fields (FilteringSettingsController.cs:179-184). It survives a restart and applies live through IOptionsMonitor. It is node-local: filtering settings are not cluster-synced, and this issue does not change that.
  • DnsFilterEngine: while now < PausedUntilUtc, the domain check (EvaluateDomainAsync, DnsFilterEngine.cs:122) and the response check (CNAME targets and response addresses, :220) behave as if filtering were off. That covers every domain, CNAME and response-address list, blocked services included. Out of scope, so they keep working during a pause: client-source lists (EvaluateClientAsync, :101), client and group pauses and schedules, rewrites and Safe Search.
  • FilteringSettingsController:
    • POST pause with { durationMinutes } (positive, at most 1440). A new pause replaces the old one, like the client pause.
    • POST resume.
    • GET returns pausedUntilUtc.
    • Requires filteringsettings:write.
  • #101 (when present) logs paused-through queries normally.
  • ENVIRONMENT.md row and recounted totals.

Acceptance

  • Test fails first in src/dotnet/tests/Ninlil.Dns.Server.Filtering.Tests. With PausedUntilUtc = now + 5 min, a blocked domain evaluates Allowed. With now − 1 s, it is Denied again.
  • Test: during a pause, a client on a client-source deny list is still denied.
  • src/dotnet/tests/Ninlil.Web.Tests: pause returns pausedUntilUtc; resume clears it; durationMinutes = 0 gives 400.
  • Option and API change; README.

Source

  • audit-feature-parity.md §2A #13.
  • Owner decision 2026-10-31 (Q-PQ-7): "filter lists only".
  • Owner decision 2026-10-31 (Q-PQ-8): "config file, this node".
- **Draft:** PQ-25 - **Priority:** medium - **Agent:** coder - **Depends on:** none - **Decisions:** Q-PQ-7, Q-PQ-8 ### Why See #130. ### What changes - Store: `DnsFilterOptions.PausedUntilUtc`, written through `PresetConfigurationFileApplier` like the other filtering fields (`FilteringSettingsController.cs:179-184`). It survives a restart and applies live through `IOptionsMonitor`. It is node-local: filtering settings are not cluster-synced, and this issue does not change that. - `DnsFilterEngine`: while `now < PausedUntilUtc`, the domain check (`EvaluateDomainAsync`, `DnsFilterEngine.cs:122`) and the response check (CNAME targets and response addresses, `:220`) behave as if filtering were off. That covers every domain, CNAME and response-address list, blocked services included. Out of scope, so they keep working during a pause: client-source lists (`EvaluateClientAsync`, `:101`), client and group pauses and schedules, rewrites and Safe Search. - `FilteringSettingsController`: - `POST pause` with `{ durationMinutes }` (positive, at most 1440). A new pause replaces the old one, like the client pause. - `POST resume`. - `GET` returns `pausedUntilUtc`. - Requires `filteringsettings:write`. - #101 (when present) logs paused-through queries normally. - ENVIRONMENT.md row and recounted totals. ### Acceptance - [ ] Test fails first in `src/dotnet/tests/Ninlil.Dns.Server.Filtering.Tests`. With `PausedUntilUtc = now + 5 min`, a blocked domain evaluates Allowed. With `now − 1 s`, it is Denied again. - [ ] Test: during a pause, a client on a client-source deny list is still denied. - [ ] `src/dotnet/tests/Ninlil.Web.Tests`: pause returns `pausedUntilUtc`; resume clears it; `durationMinutes = 0` gives 400. - [ ] Option and API change; README. ### Source - `audit-feature-parity.md` §2A #13. - Owner decision 2026-10-31 (Q-PQ-7): "filter lists only". - Owner decision 2026-10-31 (Q-PQ-8): "config file, this node".
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
lantea-one/ninlil#131
No description provided.