Recent changes to the 'initial-nsec3-generation' branch invalidate the
current code -- temporarily locking to a specific commit until those
changes are propagated into 'main'.
* implement ldns-update and dnst update
* implement TSIG support for dnst update
* update: imports compliant with domain's CONTRIBUTING.md
* Use RequestMessage instead of RequestMessageMulti as we're expecting to receive multiple responses because we don't expect to send XFR requests.
* Clippy.
* update: fix parsing of optional IP addr
* WIP
* update: make it compile after rebase
* start testing update
* update: stelline test
* update: fix some comments and strings
* update: improve TSIG error message
* update: use lookup_host instead of manual A query
* notify & update: merge the separate TSigInfo instances
* update: look in both answer and authority sections
* fix duplicate clippy attribute
---------
Co-authored-by: Ximon Eighteen <3304436+ximon18@users.noreply.github.com>
* start work on notify
* continue on notify
* various fixes to notify
* notify: incorporate feedback from @mozzieongit
* notify: update outdated terminology
* notify: fix up comment
* update: fix up error message
Co-authored-by: Jannik <jannik@nlnetlabs.nl>
* notify: temporarily remove -I because it's not supported
* notify: imports compliant with domain's CONTRIBUTING.md
* notify: improve error message for TSIG parsing
* start testing notify!
* stelline tests for notify
* notify: implement ldns argument parsing
* fix CI
* cargo fmt
* update last occurrence of rust 1.78
* fix lazy_static to 1.0.2 for minimal-versions
* bring up to date with initial-nsec3-hash
* imports more in domain style
* notify (and other ldns utils): add support for printing version to env
* notify: simplify with Box<dyn SendRequest<_>>
* notify: improve help and error messages
---------
Co-authored-by: Jannik <jannik@nlnetlabs.nl>
* [error] Add 'bail' and 'ensure' macros
* [error] Export 'bail' and 'ensure' from the right module
* [error] Document macro exporting trick
* [error] Adjust semicolons in bail macros
* Fix sphinx default language
* Add ldns-nsec3-hash man page based on the original, and adjust the dnst-nsec3-hash page to match the current help output of the command.
* Update dnst-nsec3-hash.rst
* Add key2ds manual
* Add dnst-keygen manual
* Change dnst-keygen algorithms to list from table
* Change dnst-keygen algorithms back to table
* Add ldns-keygen manual
* Add notify manuals
* Add signzone manuals
* Add subcommands to dnst manual and table of contents
* Update dnst-nsec3-hash manual
* Add update manual
* Apply feedback
* Apply further feedback
* Move signzone date description into own section
* Update signzone hash iterations manual text
* Add Arguments sections
* Add basic intro text for dnst
* Fix ldns-signzone default nsec3 hash iterations
* Update nse3-hash defaults and wording
* Update dnst-key2ds ignore-sep and force
* Update nse3-hash default to what it is currently in main
---------
Co-authored-by: Ximon Eighteen <3304436+ximon18@users.noreply.github.com>
Co-authored-by: Terts Diepraam <terts.diepraam@gmail.com>
* introduce and Env trait to mock the outside world
* make argument parsing unit-testable
* add get_stderr to FakeEnv
* fakecmd and print errors into the env
* change ExitCode::from to into
Co-authored-by: Ximon Eighteen <3304436+ximon18@users.noreply.github.com>
* update some comments
* cargo fmt
* document some more of the testing utilities
* use exit_code method on clap errors
* bump minimal clap version
* reexport RealEnv
* remove .lock() calls for stdout and stderr
* remove args field from FakeCmd
* improve docs for Env
* cargo fmt
* use mutex in FakeStream
* improve FmtWriter implementation for a tiny bit more performance
* car go ffffffmmmmmmtttttt
---------
Co-authored-by: Ximon Eighteen <3304436+ximon18@users.noreply.github.com>
* Separate ldns parsing from clap parsing
Co-authored-by: Jannik Peters <jannik@nlnetlabs.nl>
* nsec3-hash: sort ldns argument parsing alphabetically
* abort ldns parsing early on malfored argv[0]
* add 'Error' prefix to ldns parsing errors
* use clap default exit code of 2 for dnst versions of commands
* remove args_overide_self from nsec3hash
* move parse_os and parse_os_with out of LdnsCommand
---------
Co-authored-by: Jannik Peters <jannik@nlnetlabs.nl>