Skip to content

[Backport staging-26.05] openssh: default withLdns to false - #578329

Merged
numinit merged 1 commit into
NixOS:staging-26.05from
Skyb0rg007:backport-571725-to-staging-26.05
Oct 28, 2026
Merged

numinit merged 1 commit into
NixOS:staging-26.05from
Skyb0rg007:backport-571725-to-staging-26.05

Conversation

@Skyb0rg007

Copy link
Copy Markdown
Contributor

Things done

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)
@Skyb0rg007 Skyb0rg007 changed the title openssh: default withLdns to false Backport: openssh: default withLdns to false Oct 24, 2026
@Skyb0rg007 Skyb0rg007 changed the title Backport: openssh: default withLdns to false Backport 571725 to staging 26.05 Oct 24, 2026
@nixpkgs-ci
nixpkgs-ci Bot requested review from a team, dasJ, helsinki-Jo, numinit, philiptaron, pyrox0 and wahjava and removed request for a team October 24, 2026 14:17
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-linux: 2501-5000 This PR causes many rebuilds on Linux and should target the staging branches. 10.rebuild-darwin: 1001-2500 This PR causes many rebuilds on Darwin and should most likely target the staging branches. 10.rebuild-nixos-tests This PR causes rebuilds for all NixOS tests and should normally target the staging branches. 4.workflow: backport This targets a stable branch labels Oct 24, 2026
@nixpkgs-ci
nixpkgs-ci Bot requested a review from a team October 24, 2026 14:20
@numinit numinit changed the title Backport 571725 to staging 26.05 [Backport staging-25.05] openssh: default withLdns to false Oct 24, 2026
@numinit

numinit commented Oct 24, 2026

Copy link
Copy Markdown
Contributor

#571725

@numinit numinit changed the title [Backport staging-25.05] openssh: default withLdns to false [Backport staging-26.05] openssh: default withLdns to false Oct 26, 2026
@numinit

numinit commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

Before we merge this, is this technically a breaking change?

@Skyb0rg007

Copy link
Copy Markdown
Contributor Author

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.

@numinit

numinit commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

Yeah, I'd like to be sure before we change behavior in 26.05 of something as important as openssh.

@SuperSandro2000

Copy link
Copy Markdown
Member

I manually set the override that was removed on unstable. Nothing breaking, I had worse changes the last two weeks :)

@numinit

numinit commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

All good to merge, then :)

@numinit
numinit added this pull request to the merge queue Oct 28, 2026
Merged via the queue into NixOS:staging-26.05 with commit a3d82a6 Oct 28, 2026
39 checks passed
@Skyb0rg007
Skyb0rg007 deleted the backport-571725-to-staging-26.05 branch October 28, 2026 23:33
diogotcorreia added a commit to diogotcorreia/dotfiles that referenced this pull request Nov 18, 2026
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
@philiptaron

philiptaron commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

CC @diogotcorreia on this manual backport. On #571725 they said:

Heads up, I don't think this should have been backported. It broke my backups this morning due to VerifyHostKeyDNS=yes not trusting the fingerprints anymore, and took me a while to figure out this was the reason. As far as I can tell, this was not really a security issue? A changelog entry would have been good too, but now that it has been backported I feel like it doesn't matter anymore.

I overall agree with the change, the setup I had was probably incorrect, but I'd have preferred if it had been a change when upgrading to 26.11 and not overnight. I added trust-ad to resolvconf's options and everything works now.

@philiptaron philiptaron mentioned this pull request Nov 18, 2026
4 of 13 tasks
@Skyb0rg007

Skyb0rg007 commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor Author

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 trust-ad are known (or at least I made a public GitHub issue months ago with no response (NLnetLabs/ldns#321)).

@numinit

numinit commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

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."

@diogotcorreia

Copy link
Copy Markdown
Member

@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.

@numinit

numinit commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

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.

@numinit

numinit commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

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.

[1] https://web.mit.edu/allanmc/www/mcluhan.mediummessage.pdf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4.workflow: backport This targets a stable branch 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 1001-2500 This PR causes many rebuilds on Darwin and should most likely target the staging branches. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 2501-5000 This PR causes many rebuilds on Linux and should target the staging branches. 10.rebuild-nixos-tests This PR causes rebuilds for all NixOS tests and should normally target the staging branches.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants