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: fix define-tag option #124799
Conversation
16e3779
to
2474f8b
Compare
nixos/tests/unbound.nix
Outdated
@@ -63,6 +63,7 @@ import ./make-test-python.nix ({ pkgs, lib, ... }: | |||
enable = true; | |||
settings = { | |||
server = { | |||
define-tag = [ "local" "test" ]; | |||
interface = [ "192.168.0.1" "fd21::1" "::1" "127.0.0.1" ]; | |||
access-control = [ "192.168.0.0/24 allow" "fd21::/64 allow" "::1 allow" "127.0.0.0/8 allow" ]; |
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.
Shouldn't we also add an access-control-tag
statement that uses the tags to ensure that the config is valid? If I read the bug report right then the issue only occurs when the tag is being "used" before it is defined.
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.
Yes, that's why I define these tags before anything else.
2474f8b
to
205341d
Compare
Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
205341d
to
6b12cff
Compare
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
I tested this locally, and it fixed one major blocker for me upgrading to 21.05 (namely syntax errors related to the server block) But I ran into another critical issue with forward-zones: #127386 |
@andir is there anything blocking this? |
Friendly ping that this should get merged. |
(still) lgtm for what that's worth |
Friendly ping |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
It is unrealtisic that I'll get around to testing this some time soon. Feel free to merge if it fixes your problem. My overall fear with the new settings structure is that this won't be the last issue or this sort. Not all formats are simple YAML/JSON/... as we see here. |
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 don't recall if my approval counts for anything but it's worth a shot since the official maintainer is good to go with it
Successfully created backport PR #130978 for |
Motivation for this change
Fix #124780
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)