headscale: backport BaseDomain and ServerURL checks#358255
headscale: backport BaseDomain and ServerURL checks#358255wolfgangwalther merged 1 commit intoNixOS:masterfrom
Conversation
7b6c732 to
454d3e9
Compare
|
Not sure. The paches are not related to Darwin, but the package seems to be not excluded from it (and I don't see why it shouldn't). I'll try rebasing, maybe something had changed in the meanwhile. |
Currently users upgrading from 24.05 to 24.11 may stumble across an overly-restrictive BaseURL and ServerURL check in headscale[1]. A fix has been merged upstream[2], this is backport, so users can have it easier upgrading from 24.05 to 24.11 or unstable. The patch does not apply cleanly on v0.23.0, so putting it here instead. Supersedes NixOS#357969, this will be backported to 24.11 with a tag. [1]: juanfont/headscale#2210 [2]: juanfont/headscale#2248
454d3e9 to
f1bdc12
Compare
Seems to be a sandbox related failure that happens on master, too, so not a blocker. |
|
|
Ran into this while upgrading. Can we get this merged please :) |
|
Successfully created backport PR for |
| }; | ||
|
|
||
| # Merged post-v0.23.0, so should be removed with next release. | ||
| patches = [ ./patches/config-loosen-up-BaseDomain-and-ServerURL-checks.patch ]; |
There was a problem hiding this comment.
patches don't need to be in a subdirectory
|
Here is a follow-up that removes the Nix assertion: #374374 |
server_url check [has been loosened upstream][1] and backported to NixOS[2]. The new, much looser check, is not practical to be implemented in Nix (you are welcome to give it a try; I've implemented the original one). Since the surface area is much smaller now (and the scenario much less common), I think we can remove this assertion altogether. [1]: juanfont/headscale#2248 [2]: NixOS#358255
server_url check [has been loosened upstream][1] and backported to NixOS[2]. The new, much looser check, is not practical to be implemented in Nix (you are welcome to give it a try; I've implemented the original one). Since the surface area is much smaller now (and the scenario much less common), I think we can remove this assertion altogether. [1]: juanfont/headscale#2248 [2]: #358255 (cherry picked from commit de0a499)
Currently users upgrading from 24.05 to 24.11 may stumble across an overly-restrictive BaseURL and ServerURL check in headscale1.
A fix has been merged upstream2, this is backport, so users can have it easier upgrading from 24.05 to 24.11 or unstable.
The patch does not apply cleanly on v0.23.0, so putting it here instead.
Supersedes #357969, this will be backported to 24.11 with a tag.
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)