Self sign-up has been disabled due to increased spam activity. If you want to get access, please send an email to a project owner (preferred) or at gitlab(at)nic(dot)cz. We apologize for the inconvenience.
keymgr uses zone: section storage: when importing keys when it should use global storage:
When keymgr imports keys it creates new keys directory and uses the zone: section storage setting which should only apply to zone files. This happens at least when storage is specified in template.
Designs
Child items
0
Show closed items
No child items are currently assigned. Use child items to break down this issue into smaller parts.
Linked items
0
Link issues together to show that they're related.
Learn more.
I've tried to reproduce your report, but it seems like legitimate behavior. If you only have template[default].storage set, the keys will be stored there (it is implemented this way for backward compatibility with older versions of Knot). To store keys elsewhere, you should set database.storage in the configuration file.
But it's possible that I misunderstood your problem. Could you provide some configuration snippet and/or keymgr command to reproduce your problem?
Hello, I tried to verify the issue independently and wasn't able to reproduce it either. If the template storage directory and the zone storage directory are different, then keymgr creates the keys directory containing the keys etc. in the template storage directory.
If you are sure the reported problem really happens, please provide us the information that @jhak has asked for.
@bleve Please keep in mind that the possible illogicality is caused by the backward compatibility with versions < 2.9, which don't have the database section!
Knot DNS >= 2.9:
database: storage: path0 # Base directory for databases.template: - id: default # Default zone file storage. storage: path1
Knot DNS < 2.9:
template: - id: default storage: path1 # Default zone file storage AND base directory for databases!
So if you have explicitly configured template[default].storage and not database.storage, the backward compatibility considers template[default].storage as a base directory for databases.