Compare commits

..
Author SHA1 Message Date
Ruben Hensen 5bf7892cca dns: publish a TLSA record for the mail certificate key
One 3 1 1 record with the SHA-256 of the public key that Stalwart serves
since today's deploy. Renewals keep that key, so the record stays valid.
2026-11-18 10:46:55 +01:00
Ruben Hensen ebf94f62e0 Merge pull request #80 from rubenhensen/dane-reuse-key
node001: keep the mail certificate key on renewal
2026-11-18 10:43:05 +01:00
Ruben Hensen 9e7b2099f1 node001: keep the mail certificate key on renewal
Each renewal made a new key, so a TLSA record that pins the key went
stale every 60 days. With --reuse-key the key stays, and one 3 1 1
record can describe it.

Deploying this orders a new certificate once, with a new key, because
NixOS hashes the lego flags. The TLSA record goes in after that.
2026-11-18 10:42:04 +01:00
Ruben Hensen be173c571f Merge pull request #79 from rubenhensen/remove-stale-tlsa
dns: remove the stale TLSA records for mail
2026-11-18 10:38:15 +01:00
Ruben Hensen 2489f8a033 dns: remove the stale TLSA records for mail
The certificate for mail.rubenhensen.nl was renewed with a new key and a
new Let's Encrypt intermediate, so none of the published TLSA records
match it any more. Senders that enforce DANE, such as Proton, drop the
connection after the TLS handshake and never deliver.
2026-11-18 10:32:53 +01:00
3 changed files with 15 additions and 30 deletions

No files matched your search

+1 -1
View File
@@ -10,7 +10,7 @@ spec:
source: source:
chart: plugin-barman-cloud chart: plugin-barman-cloud
repoURL: https://cloudnative-pg.github.io/charts repoURL: https://cloudnative-pg.github.io/charts
targetRevision: 0.9.0 targetRevision: 0.8.1
helm: helm:
values: | values: |
# CNPG's barman cloud plugin, which backs the PostgreSQL clusters # CNPG's barman cloud plugin, which backs the PostgreSQL clusters
+7 -29
View File
@@ -146,35 +146,13 @@ records:
expire: 300 expire: 300
type: TXT type: TXT
content: "v=TLSRPTv1; rua=mailto:postmaster@rubenhensen.nl" content: "v=TLSRPTv1; rua=mailto:postmaster@rubenhensen.nl"
# DANE for inbound mail: SHA-256 of the public key in the certificate
# for mail.rubenhensen.nl. Renewals keep that key (--reuse-key in
# nix-infra-machine/nodes/node001.nix). To check it against the server:
# openssl s_client -connect mail.rubenhensen.nl:25 -starttls smtp </dev/null \
# | openssl x509 -noout -pubkey | openssl pkey -pubin -outform DER \
# | openssl dgst -sha256
- name: "_25._tcp.mail" - name: "_25._tcp.mail"
expire: 300 expire: 300
type: TLSA type: TLSA
content: "3 0 1 7926a9616cea1a7fb851fbdab631b2b2f6f71d3a775178d3288e539b9f53b18d" content: "3 1 1 718809043219a89d490b97503dd176c2557fd67a15679acdfaa0ced7143ee6b8"
- name: "_25._tcp.mail"
expire: 300
type: TLSA
content: "3 0 2 2218e33f102e805841f2f6a368e6416d884a8658cd9f45ef9b28c233dc6803320cff976e8ffdb1c0603a7abe60ccf78de422c31753b6cece8bc7ec1b80de5b66"
- name: "_25._tcp.mail"
expire: 300
type: TLSA
content: "3 1 1 e473431a9f296a8d93dfbed7c6c9485d6dadf7b460879edc0fe905183fe78a41"
- name: "_25._tcp.mail"
expire: 300
type: TLSA
content: "3 1 2 4c6cdab2a9cad307ba5b77ef34bde0cc2846b3d27aef6ce9625c56ef11b5c9cd1ede662c3afa759a3190e6317df494564ac83e4bfe3e6467f3c1bf307d781d4a"
- name: "_25._tcp.mail"
expire: 300
type: TLSA
content: "2 0 1 aeb1fd7410e83bc96f5da3c6a7c2c1bb836d1fa5cb86e708515890e428a8770b"
- name: "_25._tcp.mail"
expire: 300
type: TLSA
content: "2 0 2 e18f3d6ccbc578f025c3c7c29ed7bffe1b8eef5b1f839c17298dcf218303d2a63e305f6c1f489691774a18bad836035e5af2de1fc42a3a26cfe9e530f92e3855"
- name: "_25._tcp.mail"
expire: 300
type: TLSA
content: "2 1 1 cbbc559b44d524d6a132bdac672744da3407f12aae5d5f722c5f6c7913871c75"
- name: "_25._tcp.mail"
expire: 300
type: TLSA
content: "2 1 2 7d779dd26d37ca5a72fd05f1b815a06078c8e09777697c651fbe012c8d2894e048fcfe24160ee1562602240b6bef44e00f2b7340c84546d6110842bbdeb484a7"
+7
View File
@@ -154,6 +154,13 @@ in
"autodiscover.rubenhensen.nl" "autodiscover.rubenhensen.nl"
"rubenhensen.nl" "rubenhensen.nl"
]; ];
# Keep the same key on renewal. The TLSA record in
# dns/domains/rubenhensen.nl.yaml pins this key, and senders that
# enforce DANE stop delivering when the two differ. Changing the
# names or the lego flags of this cert makes NixOS order a new one
# with a fresh key, so take the record out first and put the new
# hash back afterwards.
extraLegoRenewFlags = [ "--reuse-key" ];
}; };
}; };