The notification delivery settings, their variables and route, the retry-sweep service and the health check carry notification names, with no aliases #152

Open
opened 2026-10-31 12:42:16 -04:00 by claude · 0 comments
Owner
  • Draft: PN-74
  • Priority: high (operators must rename their settings once, in the same release as the channel change)
  • Agent: coder
  • Depends on: #151
  • Decisions: R2-RENAME

Why

After #149 the delivery settings apply to every channel kind, but their names still say "webhook". The owner chose to rename them with no aliases, in the same release that removes api/webhooks.

What changes

  • WebhookDeliveryOptions (src/dotnet/src/Ninlil.Dns.Server.Notifications/ after #150) becomes NotificationDeliveryOptions with SectionName = "DnsServer:Notifications:Delivery". Update its entry in src/dotnet/src/Ninlil.Web/EnvironmentVariables/OptionsEnvironmentVariableRegistry.cs:137.
  • ENVIRONMENT.md:468-472: the five rows become NINLIL_DNS_SERVER_NOTIFICATIONS_DELIVERY_REQUEST_TIMEOUT, ..._INITIAL_RETRY_DELAY, ..._MAX_RETRY_DELAY, ..._SWEEP_INTERVAL and ..._ATTEMPT_RETENTION_PERIOD (check each derived name with the map), with descriptions that say "notification" instead of "webhook". The totals do not change; recount to confirm.
  • WebhookDeliverySettingsController becomes NotificationDeliverySettingsController at api/notification-delivery-settings; its models (Models/WebhookDeliverySettingsModels.cs) and examples (Examples/WebhookDeliverySettings/) are renamed to match. Check that the controller does not record cluster-synced settings; if it does, the sync key moves too.
  • ManagedServiceRegistry.cs:309: id notification-delivery-retry-sweep.
  • WebhookDeliveryHealthCheck becomes NotificationDeliveryHealthCheck, registered as notificationDelivery (Program.cs:712; the comment at :700).
  • Runtime settings file: values an operator saved through the API sit in Ninlil's own runtime settings file under the old section. Technical call: on startup, a section DnsServer:Webhooks:Delivery in that file is moved once to the new path (an atomic rewrite, one Information line). This is a one-time data move of Ninlil's own file, not an alias: nothing reads the old path afterwards.
  • Operator configuration: an old variable or appsettings.json key is not read. A start that finds one logs one Warning naming the new name, so the operator sees why the value stopped applying.
  • README (notification section and /status health component list) and CHANGELOG Unreleased: an upgrade note listing each old and new name.
  • The snapshot and client follow in #157.

Acceptance

  • Test fails first in src/dotnet/tests/Ninlil.Web.Tests: GET api/notification-delivery-settings returns the settings and GET api/webhook-delivery-settings returns 404.
  • GET /status lists notificationDelivery and no webhookDelivery; the managed-services list has notification-delivery-retry-sweep.
  • Test: a runtime settings file holding DnsServer:Webhooks:Delivery:RequestTimeout = 00:00:20 reads as NotificationDeliveryOptions.RequestTimeout = 20 s after startup, and the file no longer holds the old section.
  • Test: NINLIL_DNS_SERVER_WEBHOOKS_DELIVERY_REQUEST_TIMEOUT set logs one Warning naming the new variable and does not change the value.
  • Env-var registry and documentation tests pass; git grep -n "WEBHOOKS_DELIVERY\|webhook-delivery-settings\|webhook-delivery-retry-sweep\|webhookDelivery" finds only the CHANGELOG note and the Warning text.
  • Gate: dotnet test src/dotnet/tests/Ninlil.Web.Tests, dotnet test src/dotnet/tests/Ninlil.Dns.Server.Notifications.Tests. Web.Tests pass except OpenApiSnapshotTests (#157).

Source

Owner decision 2026-10-31, round 2 (R2-RENAME): "webhook delivery env vars, route, sweep id, health check: rename to notifications (consistent with remove-now: no aliases)".

- **Draft:** PN-74 - **Priority:** high (operators must rename their settings once, in the same release as the channel change) - **Agent:** coder - **Depends on:** #151 - **Decisions:** R2-RENAME ### Why After #149 the delivery settings apply to every channel kind, but their names still say "webhook". The owner chose to rename them with no aliases, in the same release that removes `api/webhooks`. ### What changes - `WebhookDeliveryOptions` (`src/dotnet/src/Ninlil.Dns.Server.Notifications/` after #150) becomes `NotificationDeliveryOptions` with `SectionName = "DnsServer:Notifications:Delivery"`. Update its entry in `src/dotnet/src/Ninlil.Web/EnvironmentVariables/OptionsEnvironmentVariableRegistry.cs:137`. - `ENVIRONMENT.md:468-472`: the five rows become `NINLIL_DNS_SERVER_NOTIFICATIONS_DELIVERY_REQUEST_TIMEOUT`, `..._INITIAL_RETRY_DELAY`, `..._MAX_RETRY_DELAY`, `..._SWEEP_INTERVAL` and `..._ATTEMPT_RETENTION_PERIOD` (check each derived name with the map), with descriptions that say "notification" instead of "webhook". The totals do not change; recount to confirm. - `WebhookDeliverySettingsController` becomes `NotificationDeliverySettingsController` at `api/notification-delivery-settings`; its models (`Models/WebhookDeliverySettingsModels.cs`) and examples (`Examples/WebhookDeliverySettings/`) are renamed to match. Check that the controller does not record cluster-synced settings; if it does, the sync key moves too. - `ManagedServiceRegistry.cs:309`: id `notification-delivery-retry-sweep`. - `WebhookDeliveryHealthCheck` becomes `NotificationDeliveryHealthCheck`, registered as `notificationDelivery` (`Program.cs:712`; the comment at `:700`). - Runtime settings file: values an operator saved through the API sit in Ninlil's own runtime settings file under the old section. **Technical call:** on startup, a section `DnsServer:Webhooks:Delivery` in that file is moved once to the new path (an atomic rewrite, one Information line). This is a one-time data move of Ninlil's own file, not an alias: nothing reads the old path afterwards. - Operator configuration: an old variable or `appsettings.json` key is not read. A start that finds one logs one Warning naming the new name, so the operator sees why the value stopped applying. - README (notification section and `/status` health component list) and CHANGELOG `Unreleased`: an upgrade note listing each old and new name. - The snapshot and client follow in #157. ### Acceptance - [ ] Test fails first in `src/dotnet/tests/Ninlil.Web.Tests`: `GET api/notification-delivery-settings` returns the settings and `GET api/webhook-delivery-settings` returns 404. - [ ] `GET /status` lists `notificationDelivery` and no `webhookDelivery`; the managed-services list has `notification-delivery-retry-sweep`. - [ ] Test: a runtime settings file holding `DnsServer:Webhooks:Delivery:RequestTimeout = 00:00:20` reads as `NotificationDeliveryOptions.RequestTimeout = 20 s` after startup, and the file no longer holds the old section. - [ ] Test: `NINLIL_DNS_SERVER_WEBHOOKS_DELIVERY_REQUEST_TIMEOUT` set logs one Warning naming the new variable and does not change the value. - [ ] Env-var registry and documentation tests pass; `git grep -n "WEBHOOKS_DELIVERY\|webhook-delivery-settings\|webhook-delivery-retry-sweep\|webhookDelivery"` finds only the CHANGELOG note and the Warning text. - [ ] Gate: `dotnet test src/dotnet/tests/Ninlil.Web.Tests`, `dotnet test src/dotnet/tests/Ninlil.Dns.Server.Notifications.Tests`. Web.Tests pass except `OpenApiSnapshotTests` (#157). ### Source Owner decision 2026-10-31, round 2 (R2-RENAME): "webhook delivery env vars, route, sweep id, health check: rename to notifications (consistent with remove-now: no aliases)".
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#152
No description provided.