A TSIG key that is deleted, disabled or changed applies to the very next signed message #452

Merged
claude merged 8 commits from feature/229-tsig-keys-from-a-snapshot into develop 2026-11-14 03:38:59 -05:00
Owner

Closes #229

TSIG keys are served from one in-memory copy. A key that is deleted, disabled or changed on this node is refused, or used as changed, by the very next signed message; signing and verifying no longer open a service scope per message.

Security behaviour, checked by a verifier with scratch tests:

  • A reload that is in flight when a key is deleted is not installed as fresh: the load runs again and readers wait for it.
  • A reload after a change that fails or runs past its 30-second limit refuses every key until a load succeeds (the timeout case failed open in the first version and is fixed and tested here). The empty copy is replaced by the next successful reload; no restart is needed.
  • A refresh for age alone that fails keeps the last good copy, so a change made on another node shows once a reload succeeds. The CHANGELOG and the comments say so.

Tests on a merge with develop: full solution build with 0 warnings; Ninlil.Dns.Server.Tsig.Tests 128 passed (15 runs in a row), Core 368, Authoritative 684, Data 139, the Docker integration tests 574; Ninlil.Web.Tests passes apart from the two SpaFallbackTests that need a built console.

The CHANGELOG entry names the change for code that uses the Ninlil.Dns.Server.Tsig package (TsigService is a singleton and its constructor changed).

🤖 Generated with Claude Code

https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK

Closes #229 TSIG keys are served from one in-memory copy. A key that is deleted, disabled or changed on this node is refused, or used as changed, by the very next signed message; signing and verifying no longer open a service scope per message. Security behaviour, checked by a verifier with scratch tests: - A reload that is in flight when a key is deleted is not installed as fresh: the load runs again and readers wait for it. - A reload after a change that fails **or runs past its 30-second limit** refuses every key until a load succeeds (the timeout case failed open in the first version and is fixed and tested here). The empty copy is replaced by the next successful reload; no restart is needed. - A refresh for age alone that fails keeps the last good copy, so a change made on another node shows once a reload succeeds. The CHANGELOG and the comments say so. Tests on a merge with `develop`: full solution build with 0 warnings; `Ninlil.Dns.Server.Tsig.Tests` 128 passed (15 runs in a row), Core 368, Authoritative 684, Data 139, the Docker integration tests 574; `Ninlil.Web.Tests` passes apart from the two `SpaFallbackTests` that need a built console. The CHANGELOG entry names the change for code that uses the `Ninlil.Dns.Server.Tsig` package (`TsigService` is a singleton and its constructor changed). 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK
Closes #229

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK
Refs #229

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK
Refs #229

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK
Refs #229

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK
Refs #229

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK
Refs #229

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK
Refs #229

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK
The TSIG key documentation says a change made elsewhere shows only once a reload succeeds
All checks were successful
Build / Compute Version (pull_request) Has been skipped
Build / Test .NET on Windows (pull_request) Has been skipped
Build / Windows Test Gate (pull_request) Has been skipped
Build / Test Admin Console (pull_request) Successful in -48s
Build / Lint and Script Tests (pull_request) Successful in -1m58s
Build / Test .NET (pull_request) Successful in 3m36s
Build / Stage Draft Release (pull_request) Has been skipped
Build / Pack and Push NuGet Packages (common) (pull_request) Has been skipped
Build / Pack and Push NuGet Packages (dhcp) (pull_request) Has been skipped
Build / Pack and Push NuGet Packages (dns-core) (pull_request) Has been skipped
Build / Pack and Push NuGet Packages (dns-server) (pull_request) Has been skipped
Build / Build Binary (linux-amd64) (pull_request) Has been skipped
Build / Build Binary (linux-arm64) (pull_request) Has been skipped
Build / Build Binary (macos-amd64) (pull_request) Has been skipped
Build / Build Binary (macos-arm64) (pull_request) Has been skipped
Build / Build Binary (windows-amd64) (pull_request) Has been skipped
Build / Build Arch Linux Packages (pull_request) Has been skipped
Build / Build and Test Deb and RPM Packages (pull_request) Has been skipped
Build / Build and Push Image (pull_request) Has been skipped
Build / Smoke Test the Windows Binary (pull_request) Has been skipped
Build / Publish Release (pull_request) Has been skipped
Build / Pipeline (pull_request) Successful in 0s
0a3ab5f412
Closes #229

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK
claude merged commit 563afba7dd into develop 2026-11-14 03:38:59 -05:00
claude deleted branch feature/229-tsig-keys-from-a-snapshot 2026-11-14 03:38:59 -05:00
Sign in to join this conversation.
No reviewers
No milestone
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!452
No description provided.