Repository navigation
[Backport staging-26.05] openssh: default withLdns to false - #578329
Conversation
ldns support can be used by openssh to perform in-process DNSSEC validation for ValidateHostKeyDNS=, but doing so also requires configuration of non-standard /etc/resolv.conf options that NixOS doesn't support. (cherry picked from commit 0e0e764)
|
Before we merge this, is this technically a breaking change? |
I really don't think so, but check with @SuperSandro2000 first. Supposedly he had to make a config change when I merged the original PR. |
|
Yeah, I'd like to be sure before we change behavior in 26.05 of something as important as openssh. |
|
I manually set the override that was removed on unstable. Nothing breaking, I had worse changes the last two weeks :) |
|
All good to merge, then :) |
Openssh is built without ldns in nixpkgs as of recently [1,2] and so it was failing to perform DNSSEC validation of SSHFP records, causing backups to fail due to host key verification failures. Adding the `trust-ad` option to resolveconf fixes the issue, as dnsproxy performs DNSSEC validation already. It was still working on host bro because the dnsmasq module does this automatically, but that option has now been disabled since dnsmasq is not actually used as a DNS server. [1]: NixOS/nixpkgs#571725 [2]: NixOS/nixpkgs#578329
|
CC @diogotcorreia on this manual backport. On #571725 they said:
|
|
See my comment here: #571725 (comment) I had sent Matrix messages to @SuperSandro2000, @mweinelt and @PhilipTaronQ about the possible security issue with the prior configuration - I don't think it warrants an advisory as VerifyHostKeyDNS= is not something configured by NixOS and ldns's shortcomings wrt |
|
There was a reason I needed to ask "do we really need this" 😉 In the end, (hopefully) no harm, but I think we may want to have a policy of "if it's not security relevant or a really bad bug it doesn't get backported if it's a package that's also a channel blocker." |
|
@Skyb0rg007 Thanks for addressing this. I just didn't see the security angle as there is no mention of security in the PR body nor does the PR have the security label, so I was wondering what prompted the backport. I can see now why it was, even if one could argue this security vulnerability is not relevant enough to worry about. To be clear, I don't want this to be reverted, but I agree with @numinit that we might need to revise our policy for these critical packages in the future. |
|
That's fine with me. In the future, I will likely play a bit more devil's advocate here. It's the kind of thing that could have sat in unstable, but there were multiple people who thought it was a good change. Also in the future, if there's a changelog entry (as there may have wanted to be for this change) it would have ruled out the backport altogether in my logic for backports. Hence why I asked "is this really breaking" – oh, no changelog, everything looks fine then. |
|
Also, thank you for the analysis from @philiptaron and the contribution from @Skyb0rg007. Sorry for breaking you, @diogotcorreia! The medium is the message[1] with any collaboration platform like GH, and I think the miscommunication happened in the changelog area here. So, yeah, let's just do more of those. |
Things done
./result/bin/.nixpkgs-reviewon this PR. See nixpkgs-review usage.passthru.tests.