-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
nixos/unbound: add settings option, deprecate extraConfig #89572
Conversation
I am currently using this here without any problems so far. |
Also, I'm willing to add myself as a maintainer for this module :D |
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.
Welcome improvement :)
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.
I love PRs that implement settings
options! Unfortunately I don't know anything at all about unbound
, so if some of my comments are entirely invalid I apologize in advance. Hopefully at least some of my comments will be useful.
oops, @aanderse was faster explaning our concerns %) |
acc9e82
to
9f4e416
Compare
Actually, before merging that, I'd like to add configuration checking at build time. |
Argh it seems unbound wants its chroot directory to exist when checking the configuration. Is there a way to create, for instance, |
It should be sufficient to create it in the build sandbox (I'd expect to get the dir thrown away after that) or am I missing something? |
Anything else blocking from merging this? |
I suspect verifying that even without |
They don't:
and I have no idea why this is happening. |
It's trying to bind to a ULA address that has been configured manually. I'd say the service is running before |
With the tests problem fixed, would it be possible to get this in for 21.05? |
If you write the changelog entry this is good to go in :) |
Done! |
LGTM just remove that cherry pick line from the commit message. This should be the authoritative commit. |
Done. |
Did yo accidentally squash to changes? The commit message still doesn't look "clean". |
I don't think so. Does this look better? |
I suspect As-is, it sounds like |
Follow RFC 42 by having a settings option that is then converted into an unbound configuration file instead of having an extraConfig option. Existing options have been renamed or kept if possible. An enableRemoteAccess has been added. It sets remote-control setting to true in unbound.conf which in turn enables the new wrapping of unbound-control to access the server locally. Also includes options 'remoteAccessInterfaces' and 'remoteAccessPort' for remote access. Signed-off-by: Marc 'risson' Schmitt <[email protected]>
Alright, with the new commit message and the tests passing as before this looks A-OK to me. Deferring to @andir to press the big green button :) |
Thank you for pushing this through @rissson! Using |
Motivation for this change
Follow RFC 42 by adding a
settings
option. Other options have been deprecated or removed when renaming them was not possible.It builds on top of #79559 to include the latest modifications to the
unbound
service.Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)