Commit 0ffb1d8
fix: trim trailing dots from certificate SANs
Trailing dots are not supposed to be in the cert SANs, but most
implementations allow it. Go 1.25.2 introduced strict validation for DNS
names in cert SANs, which leads to CoreDNS issue on GCP: as CoreDNS
1.13.1 was build with Go 1.25.2, it rejects a certSAN:
```
tls: failed to parse certificate from server: x509: SAN dNSName is malformed
```
The FQDN on GCP looks like: `<vm>.c.project.internal.` (note trailing
dot). Trim trailing dots when building SANs on all levels.
Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
(cherry picked from commit e202b1f)1 parent 9a2f6d9 commit 0ffb1d8
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
95 | 96 | | |
96 | 97 | | |
97 | 98 | | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
98 | 102 | | |
99 | 103 | | |
100 | | - | |
| 104 | + | |
101 | 105 | | |
102 | 106 | | |
103 | 107 | | |
| |||
0 commit comments