Settings that have no effect are removed (DoH listener and Backup paths) #27

Closed
opened 2026-10-31 12:41:52 -04:00 by claude · 0 comments
Owner
  • Draft: REL-18
  • Priority: low (documented as "no effect" today; they confuse operators)
  • Agent: coder
  • Depends on: none
  • Decisions: Q-REL-4

Why

  • DoH: DnsOverHttpsOptions port and Certificate* settings drive DnsOverHttpsHostedService,
    which Ninlil.Web never starts; DoH is served by the web listener (ENVIRONMENT.md:222,225-229).
    The transport settings API already leaves them out (Models/TransportSettingsModels.cs:94-103).
  • Backup: DataProtectionKeyRingDirectory and RuntimeConfigurationFilePath
    (src/dotnet/src/Ninlil.Dns.Server.Backup/Options/BackupOptions.cs:26,43) are overwritten by
    PostConfigure (src/dotnet/src/Ninlil.Web/Program.cs:425-429); ENVIRONMENT.md:473,475 says
    changing them has no effect. No API model exposes them.

What changes

  • DoH: DnsOverHttpsHostedService stays, because the DoH test project and
    src/dotnet/benchmarks/Ninlil.Benchmarks/Transport/DohTransportBenchmarks.cs start it and the
    library is a NuGet package. Move its listener-only settings (port, listen addresses if any,
    certificate) out of DnsOverHttpsOptions into a new options class used only by the hosted
    service, which Ninlil.Web neither binds nor lists in OptionsEnvironmentVariableRegistry.
    So the variables disappear while a library consumer can still start the listener. HTTP/3 for
    DoH (#250) goes on the web listener, not here.
  • Backup: the two paths stop being bindable settings. Keep the values as internal state that
    Program.cs sets (for example a separate settings object registered as a singleton, or
    properties the environment-variable map skips; say which and why).
  • ENVIRONMENT.md: remove the rows and recount the totals with
    OptionsEnvironmentVariableMap.BuildMappings (AGENTS.md "Configuration").
  • CHANGELOG.md Unreleased: list the removed variables. A configuration file that still sets
    them is ignored by the binder, so nothing breaks.
  • No API shape change. If a model's XML doc text changes, OpenApiSnapshotTests fails: then hand
    the snapshot to api-regen in the same PR.

Acceptance

  • Env-var tests pass with the new totals; build 0 warnings.
  • dotnet test src/dotnet/tests/Ninlil.Dns.Protocol.DnsOverHttps.Tests,
    src/dotnet/tests/Ninlil.Dns.Server.Backup.Tests and src/dotnet/tests/Ninlil.Web.Tests pass.
  • The Release benchmark build has 0 warnings (DohTransportBenchmarks still compiles).

Source

d-design.md:1089 (Backup dead settings), d-design.md:1276,1295,1297,1305 (DoH dead options).
Owner decision 2026-10-31 (Q-REL-4): "remove both DoH listener and Backup path settings".

- **Draft:** REL-18 - **Priority:** low (documented as "no effect" today; they confuse operators) - **Agent:** coder - **Depends on:** none - **Decisions:** Q-REL-4 ### Why - DoH: `DnsOverHttpsOptions` port and `Certificate*` settings drive `DnsOverHttpsHostedService`, which `Ninlil.Web` never starts; DoH is served by the web listener (`ENVIRONMENT.md:222,225-229`). The transport settings API already leaves them out (`Models/TransportSettingsModels.cs:94-103`). - Backup: `DataProtectionKeyRingDirectory` and `RuntimeConfigurationFilePath` (`src/dotnet/src/Ninlil.Dns.Server.Backup/Options/BackupOptions.cs:26,43`) are overwritten by `PostConfigure` (`src/dotnet/src/Ninlil.Web/Program.cs:425-429`); `ENVIRONMENT.md:473,475` says changing them has no effect. No API model exposes them. ### What changes - DoH: `DnsOverHttpsHostedService` stays, because the DoH test project and `src/dotnet/benchmarks/Ninlil.Benchmarks/Transport/DohTransportBenchmarks.cs` start it and the library is a NuGet package. Move its listener-only settings (port, listen addresses if any, certificate) out of `DnsOverHttpsOptions` into a new options class used only by the hosted service, which `Ninlil.Web` neither binds nor lists in `OptionsEnvironmentVariableRegistry`. So the variables disappear while a library consumer can still start the listener. HTTP/3 for DoH (#250) goes on the web listener, not here. - Backup: the two paths stop being bindable settings. Keep the values as internal state that `Program.cs` sets (for example a separate settings object registered as a singleton, or properties the environment-variable map skips; say which and why). - `ENVIRONMENT.md`: remove the rows and recount the totals with `OptionsEnvironmentVariableMap.BuildMappings` (AGENTS.md "Configuration"). - `CHANGELOG.md` `Unreleased`: list the removed variables. A configuration file that still sets them is ignored by the binder, so nothing breaks. - No API shape change. If a model's XML doc text changes, `OpenApiSnapshotTests` fails: then hand the snapshot to `api-regen` in the same PR. ### Acceptance - [ ] Env-var tests pass with the new totals; build 0 warnings. - [ ] `dotnet test src/dotnet/tests/Ninlil.Dns.Protocol.DnsOverHttps.Tests`, `src/dotnet/tests/Ninlil.Dns.Server.Backup.Tests` and `src/dotnet/tests/Ninlil.Web.Tests` pass. - [ ] The Release benchmark build has 0 warnings (`DohTransportBenchmarks` still compiles). ### Source `d-design.md:1089` (Backup dead settings), `d-design.md:1276,1295,1297,1305` (DoH dead options). Owner decision 2026-10-31 (Q-REL-4): "remove both DoH listener and Backup path settings".
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.

Dependencies

No dependencies set

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