A backup archive made before notification channels restores its webhook subscriptions as webhook channels #153
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.
Depends on
Reference
lantea-one/ninlil#153
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
Restore reads one required
database/<name>.jsonentry per catalog entry (src/dotnet/src/Ninlil.Dns.Server.Backup/SystemBackupService.cs:254-259). After #151 the entry isNotificationChannels, so a format-1 archive from the first release, which holdsWebhookSubscriptions.json, fails as "missing entry". The service already upgrades one older shape on restore (TSIG key links,SystemBackupService.cs:307).What changes
SystemBackupService: whendatabase/NotificationChannels.jsonis missing anddatabase/WebhookSubscriptions.jsonis present, parse the legacy entry intoNotificationChannelEntityrows withKind = Webhook, the sameIdand the same encrypted credential fields.webhooks:read/webhooks:writetonotifications:read/notifications:write, andwebhookdeliverysettings:read/webhookdeliverysettings:writetonotificationdeliverysettings:read/notificationdeliverysettings:write.BackupEntityCatalog.cs:35), so nothing else changes.CurrentPayloadFormatVersionstays1: the payload layout did not change, only one entry name.Acceptance
src/dotnet/tests/Ninlil.Dns.Server.Backup.Tests,Restore_ForAnArchiveWithWebhookSubscriptions_RestoresWebhookChannelsbuilds a format-1 archive with the legacy entry and role claimswebhooks:readandwebhookdeliverysettings:write, restores it, and finds aWebhookchannel with the same id and the claimsnotifications:readandnotificationdeliverysettings:write.dotnet test src/dotnet/tests/Ninlil.Dns.Server.Backup.Tests,dotnet test src/dotnet/tests/Ninlil.Web.Tests.Source
Owner decision 2026-10-31: Q-PN-7; round 2 R2-RENAME.