Skip to content

resolved: strict mode for DNS-over-TLS - #12815

Merged
poettering merged 5 commits into
systemd:masterfrom
irtimmer:dot-strict
Jun 19, 2019
Merged

poettering merged 5 commits into
systemd:masterfrom
irtimmer:dot-strict

Conversation

@irtimmer

Copy link
Copy Markdown
Contributor

Better late than never. I've finally finished the main parts to support certificate checking for DNS-over-TLS. This fixes #10755 and partially #9397. This is the minimum amount of changes to support this feature and some other small changes, like support for TLS 1.3 with GnuTLS and moving some fields from DnsServer to Manager. Therefore it will only work with server certificates signed for the server IP-address and the list of trusted root certificates can't be configured.

p.s. I hope to send soon a separate PR to support certificate checking with domain name or SPKI hash.

Comment thread src/resolve/resolved-manager.h Resolved

@poettering poettering left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks excellent, just some minor nitpick

Comment thread src/resolve/resolved-dnstls-openssl.c Resolved
irtimmer added 2 commits June 18, 2019 19:16
Instead of having a context and/or trusted CA list per server this is now moved to the server. Ensures future TLS configuration options are global instead of per server.
@irtimmer irtimmer changed the title WIP resolved: strict mode for DNS-over-TLS resolved: strict mode for DNS-over-TLS Jun 18, 2019
@irtimmer

Copy link
Copy Markdown
Contributor Author

I've made some small changes. Now only the LGTM analysis fails because it's unable to fetch the new commits for some unclear reason.

@evverx

evverx commented Jun 18, 2019 •

Copy link
Copy Markdown
Contributor

@irtimmer it looks like it was a glitch. As far as I can tell, it had something to do with authentication via GitHub. Everything should be fine now.

Comment thread src/resolve/resolved-dns-server.h Resolved
Comment thread src/resolve/resolved-dns-stream.h Resolved
Comment thread src/resolve/resolved-dns-transaction.c Resolved
@poettering

Copy link
Copy Markdown
Member

looks dope, besides the include ordering thing.

@poettering poettering added the good-to-merge/waiting-for-ci 👍 PR is good to merge, but CI hasn't passed at time of review. Please merge if you see CI has passed label Jun 19, 2019
@poettering
poettering merged commit 4378673 into systemd:master Jun 19, 2019
@irtimmer
irtimmer deleted the dot-strict branch June 19, 2019 13:04
@keszybz keszybz removed the good-to-merge/waiting-for-ci 👍 PR is good to merge, but CI hasn't passed at time of review. Please merge if you see CI has passed label Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

systemd-resolved: "strict" resolution for DNSOverTLS?

5 participants