Skip to content

Conversation

@frankarinnet
Copy link
Contributor

This pull request is in reference to: #295

There are still some TODOs, however, because I need some guidance on how to deal with thread safety in the TSIG.

So, don't merge this without commenting.

@frankarinnet
Copy link
Contributor Author

Fixing the remaining code formatting issues makes it a bit harder to see what I've changed vs the original.
I'll make sure to fix them up before a final commit.

@ibauersachs
Copy link
Member

Thank you! I'll need some time to work on this.

Could you in the meantime please help me out to make this easier:

  • target the 3.5.x branch
  • create a unit test that fails without your changes

If that's too complicated, then some sample code and zone file with keys pasted or attached here would also help a lot.

@frankarinnet
Copy link
Contributor Author

frankarinnet commented Oct 23, 2023

I'll give the unit test a shot on Tuesday; these sorts of gory-DNS details are a little outside my experience, though. My current testing has been against an NSD server in our staging environment.

Also tomorrow, I'll work on targetting the 3.5.x branch.

@frankarinnet
Copy link
Contributor Author

frankarinnet commented Oct 24, 2023

I've created: https://github.com/frankarinnet/axfr

Which might be helpful for testing this. It was the simplest program I could write to demonstrate this bug for manual testing.

But you will still need to:

  • set up a DNS server
  • with TSIG
  • that allows full zone transfers (AXFR)
  • configured with a few different-sized zones

For zone sizes, I've been using:

  • a small zone (with 8 lines)
  • a medium zone (with 8k lines)
  • a large zone (with 160k lines)

@ibauersachs
Copy link
Member

Great, thank you!

@frankarinnet frankarinnet changed the base branch from master to release/3.5.x October 24, 2023 18:56
@frankarinnet frankarinnet changed the base branch from release/3.5.x to master October 24, 2023 18:57
@frankarinnet frankarinnet reopened this Oct 24, 2023
@frankarinnet
Copy link
Contributor Author

Since my fix branched from master, I may need to create a third PR properly branched from 3.5.x.

@frankarinnet
Copy link
Contributor Author

frankarinnet commented Oct 24, 2023

Created #298, properly pointed against 3.5.x.

Any objections to me closing this (obselete) PR?

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 6 Code Smells

87.2% 87.2% Coverage
0.0% 0.0% Duplication

@nguichon nguichon deleted the master_issue295_tsig_fix branch October 26, 2023 13:58
@frankarinnet
Copy link
Contributor Author

Closing.

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.

3 participants