The DNSSEC validator ignores NSEC3 records whose Flags field is other than 0 or 1 #310
No reviewers
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.
Dependencies
No dependencies set
Reference
lantea-one/ninlil!310
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/57-nsec3-flags"
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?
The DNSSEC validator now ignores NSEC3 records whose Flags field is other than 0 or 1, and NSEC3PARAM records with nonzero Flags are ignored when choosing a zone's NSEC3 parameters.
RFC 5155 §8.2: "A validator MUST ignore NSEC3 RRs with a Flag fields value other than zero or one." §4.1.2: "NSEC3PARAM RRs with a Flags field value other than zero MUST be ignored."
Nsec3RecordDataandNsec3ParamRecordDatakeep the raw Flags byte (Opt-Out derived asFlags & 1); the wire codec round-trips it. Before, the codec dropped every bit but Opt-Out (and NSEC3PARAM always wrote 0), so a transferred NSEC3 with other flags was re-served altered.DenialOfExistenceValidator.DecodeNsec3sdrops bad-flag records before the hash/iterations/salt consistency check and every proof (NXDOMAIN, NODATA, wildcard, opt-out);SignedZoneDataignores a nonzero-Flags NSEC3PARAM.flags(0-255), which takes precedence overisOptOut; README "Denial of existence" says so. Recorddatais untyped in OpenAPI, so no snapshot change.Compatibility (verifier): record data stays one
DataJsonstring in every engine, so no schema or MongoDB step; old rows (isOptOutonly) load as before; the released build skips the unknownFlagsproperty. Downgrade edge: a row with Flags above 1 written by this build reads as 0/1 in the released build (which lost it anyway). No churn: change detection compares stored JSON, signing rebuilds the chain.Tests: proofs made only of Flags 2, 3 or 0x80 records are NotProven; a complete chain plus a Flags 2 record stays Proven; a Flags 2 record with other salt/iterations does not break the proof (fails without the skip, proving the order); wildcard and opt-out proofs with mixed flags; wire round trips of the whole octet; JSON round trips. With the flag check disabled, 9 tests fail. Whole solution without Docker: 0 failures; Docker record integration tests pass; build 0 warnings; csharpier clean.
Closes #57
🤖 Generated with Claude Code
https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK