GET and PATCH api/hygiene-settings read and change the home-network DNS defaults, including the local domain #140
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#140
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
The console needs to change these settings without a restart.
What changes
Ninlil.Web/Controllers/HygieneSettingsController.cs, a copy of theFilteringSettingsControllershape:PresetConfigurationFileApplier.IOptionsMonitorreads.localDomainas names (an emptylocalDomainturns the source off).GETalso returnslocalDomainZoneFound: whether a zone the authoritative resolver answers matches the local domain, so the console can warn about a domain Ninlil does not host.hygienesettings:readandhygienesettings:write, discovered byPermissionsControllerreflection. Use whatever pattern existing settings permissions follow for built-in roles.Acceptance
src/dotnet/tests/Ninlil.Web.Testsfails first: PATCH{"rebindProtection":true}, then GET returns true.{"localDomain":"lan"}with no hosted zonelanreturns it withlocalDomainZoneFound: false; after creating a primary zonelan, GET returnstrue.Source
audit-feature-parity.md§2A #9.