Skip to content

NSEC3 validation#2313

Merged
listochkin merged 4 commits intomainfrom
al-nsec3-validation
Sep 10, 2024
Merged

NSEC3 validation#2313
listochkin merged 4 commits intomainfrom
al-nsec3-validation

Conversation

@listochkin
Copy link
Contributor

@listochkin listochkin commented Jul 16, 2024

Adds support for NSEC3 records validation for the resolver

  • non-direct enclosers
  • wildcard enclosers
  • support NO_DATA responses

@listochkin listochkin force-pushed the al-nsec3-validation branch from f998ff5 to 9ae6ab0 Compare July 23, 2024 16:34
@listochkin listochkin force-pushed the al-nsec3-validation branch 2 times, most recently from 3438abb to 6fc2740 Compare August 27, 2024 13:57
@listochkin listochkin marked this pull request as ready for review August 27, 2024 13:57
@listochkin listochkin force-pushed the al-nsec3-validation branch 3 times, most recently from ff2a614 to 5b80ab6 Compare August 27, 2024 15:46
Copy link
Member

@djc djc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some initial feedback.

@listochkin listochkin force-pushed the al-nsec3-validation branch 5 times, most recently from d0825c8 to cd3cc54 Compare August 28, 2024 18:47
Copy link
Collaborator

@marcus0x62 marcus0x62 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@listochkin I've added some initial feedback - I should have the rest of it in by tomorrow.

@listochkin listochkin force-pushed the al-nsec3-validation branch 8 times, most recently from e8ba933 to e1891aa Compare August 29, 2024 16:38
Copy link
Contributor

@pvdrz pvdrz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me. I left some comments about minor things that don't change the PR logic in any significant way.

I have one question regarding queries where the QTYPE is DS as those are handled specially according to the RFC and I didn't see any special handling of those here, could it happen that the NSEC3 response provided by a nameserver fails this validation if it's a response to a query for DS records?

@listochkin listochkin force-pushed the al-nsec3-validation branch 8 times, most recently from c65a61f to c87ad7d Compare September 2, 2024 14:31
Copy link
Member

@djc djc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved with comments addressed.

@listochkin listochkin force-pushed the al-nsec3-validation branch 4 times, most recently from 7b26a2c to cfcd2bd Compare September 10, 2024 11:15
Addresses three possible cases (referred as cases 2, 3, 4):

Case 2: `query_name` exists but it doesn't have a record of requested type
Case 3: `query_name` is serviced by wildcard that *has* a record of this type
Case 4: `query_name` is serviced by wildcard that *does not have* a record of this type
@listochkin listochkin added this pull request to the merge queue Sep 10, 2024
Merged via the queue into main with commit f8051bc Sep 10, 2024
@listochkin listochkin deleted the al-nsec3-validation branch September 10, 2024 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants