Webhook channels can send a templated body for push and chat services, and any channel can send a test #154
Labels
No labels
agent
api-regen
agent
architect
agent
coder
agent
console-coder
agent
docs-writer
agent
mechanic
agent
protocol-coder
agent
storage-coder
area/api
area/ci
area/console
area/dhcp
area/dns
area/docs
area/packaging
area/process
area/storage
area/windows
kind
bug
kind
chore
kind
docs
kind
epic
kind
feature
kind
performance
kind
security
kind
test
priority
high
priority
low
priority
medium
resolution
duplicate
resolution
not-a-bug
resolution
wontfix
status
blocked
status
in-progress
status
needs-decision
status
needs-design
status
ready
theme
ad-samba-dns
theme
alternatives-benchmark
theme
console-toolchain
theme
later
theme
parity-devices
theme
parity-query
theme
post-release-fixes
theme
tracker-setup
theme
valkey
theme
windows-installer
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Depends on
Reference
lantea-one/ninlil#154
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Why
Push and chat services need their own body shape; today every subscriber gets one fixed envelope.
What changes
NotificationTemplateRendererinsrc/dotnet/src/Ninlil.Dns.Server.Notifications/. It replaces{{event.<property>}}(the event's camelCase JSON properties),{{eventType}},{{occurredAtUtc}}and{{server.hostName}}(Environment.MachineName). An escaping mode (Json,Html,None) applies to every substituted value.Validate(template, mode)returns the unknown placeholders.WebhookDeliveryServicetoNotificationDeliveryService. It finds matching enabled channels of every kind, builds the payload per channel (a template differs per channel, where today one body serves all,WebhookDeliveryService.cs:136-142) and hands it to anINotificationChannelSenderchosen byKind.WebhookChannelSenderholds today's HTTP attempt (WebhookDeliveryService.cs:396-455, auth header at 483-514). With noPayloadTemplatethe body is today's envelope (BuildPayload, lines 547-563); with one, the rendered template, JSON-escaped when the content type is JSON. Content-Type comes fromPayloadContentType(defaultapplication/json). The HMAC signature (SignatureHeaderName, line 84) covers the rendered body.NotificationDeliveryService.SendTestAsync(channel, stoppingToken)renders a synthetic event of the first subscribed type (orDnsZoneChangedwhen none), sends once through the kind's sender, saves no delivery row and returns the outcome.Acceptance
Deliver_WithATemplate_PostsTheRenderedBodyinsrc/dotnet/tests/Ninlil.Dns.Server.Notifications.Tests(fake HTTP handler; asserts the body{"topic":"ninlil","message":"Zone example.com changed"}).Validatereports{{event.nope}};SendTestAsyncsaves no row.dotnet test src/dotnet/tests/Ninlil.Dns.Server.Notifications.Tests,dotnet test src/dotnet/tests/Ninlil.Web.Tests.Source
audit-feature-parity.md§2A #12.Owner decision 2026-10-31: Q-PN-7.