-
Notifications
You must be signed in to change notification settings - Fork 921
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[lmdb] Ignore unreachable TSIG keys in getTSIGKeys #15004
base: master
Are you sure you want to change the base?
Conversation
bd96110
to
f2d98aa
Compare
Pull Request Test Coverage Report for Build 12631856897Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
f2d98aa
to
bf60067
Compare
// results of this method. | ||
// In order to prevent this, we first only gather the list of key names, and | ||
// in a second step, query for them using a similar logic as getTSIGKey(). | ||
// Unfortunately, there does not seem to be a way to know if the database had |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
while I hope we never have an incident like this again, this makes me wonder if we should have a way to know. Also, we could try to add a cleanup for this to the v6 migration once we get to it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.. in fact I think we could add a cleanup command to pdnsutil backend-cmd lmdb ..
today if we wanted to
Pre-v5 database schema would (incorrectly) allow for multiple TSIG keys to be created with the same name and algorithm. Once the database gets converted to v5 schema, those redundant keys can no longer be used, yet would appear in pdnsutil list-tsig-key output. Change the list logic to only report reachable keys. Fixes 14779
bf60067
to
deff288
Compare
Short description
As reported in #14779, pre-v5 database schema would (incorrectly) allow for multiple TSIG keys to be created with the same name and algorithm. Once the database gets converted to v5 schema, those redundant keys can no longer be used, yet would appear in pdnsutil list-tsig-key output.
Checklist
I have: