A Windows test run leaves no certificate-store entries, key files or temp folders behind #14
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 milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Depends on
Reference
lantea-one/ninlil#14
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
A full native run left 30 "Ninlil TLS" certificates in
CurrentUser\My, 30 CNG key files and 23ninlil-*temp folders. On Windows,TlsCertificateLoaderimports each certificate into thestore through
WindowsCertificateKeyStore(
src/dotnet/src/Ninlil.Dns.Server.Core/Certificates/WindowsCertificateKeyStore.cs), keyed by thesource path; test hosts use a fresh folder each time, so each makes a new entry that nothing
removes. With the #18 job on every push, the runner's store grows without bound.
What changes
NinlilDnsWebApplicationFactory,CreateSecondHost, the transport listener fixtures) removethe store entries and keys their run created on dispose. Prefer a test-only clean-up helper that
finds entries by the friendly-name tag of the paths the fixture used; do not add a production
option unless that is impossible, and say why if so.
Acceptance
Ninlil TLSentries inCurrentUser\My, key files in%APPDATA%\Microsoft\Crypto\Keysand%TEMP%\ninlil-*before and after a whole-solutionrun: equal.
Source
RP-4 report finding 4;
release-prep.md:159("test-host leftovers on Windows").Ghost referenced this issue2026-11-06 12:32:24 -05:00