Commit aefb47f
Load TLS root CA directly from /config instead of /persist/certs
This change fixes the security issue where TLS root certificates were
copied from the integrity-protected /config partition to the mutable
/persist/certs directory and referenced via SHA256 indirection.
Changes:
- Remove certificate copy logic from InitializeCertDir() - now only
creates the certs directory without copying files
- Update GetTLSConfig() to read certificates directly from
types.V2TLSBaseFile (/config/v2tlsbaseroot-certificates.pem)
- Update UpdateTLSProxyCerts() to read from V2TLSBaseFile instead of
V2TLSCertShaFilename
- Remove V2TLSCertShaFilename constant from locationconsts.go as it's
no longer needed
- Update getSecurityInfo() in handlemetrics.go to compute SHA256 hash
directly from the V2TLSBaseFile content instead of reading a
pre-computed SHA from persist
Signed-off-by: Shahriyar Jalayeri <shahriyar@posteo.de>1 parent 37aed60 commit aefb47f
File tree
3 files changed
+15
-84
lines changed- pkg/pillar
- cmd/zedagent
- controllerconn
- types
3 files changed
+15
-84
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | 11 | | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
898 | 898 | | |
899 | 899 | | |
900 | 900 | | |
901 | | - | |
902 | | - | |
903 | | - | |
904 | | - | |
| 901 | + | |
| 902 | + | |
905 | 903 | | |
906 | 904 | | |
907 | 905 | | |
908 | | - | |
909 | | - | |
910 | | - | |
911 | | - | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
912 | 909 | | |
913 | | - | |
| 910 | + | |
914 | 911 | | |
915 | 912 | | |
916 | 913 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
16 | | - | |
17 | 15 | | |
18 | 16 | | |
19 | 17 | | |
| |||
28 | 26 | | |
29 | 27 | | |
30 | 28 | | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
| 29 | + | |
37 | 30 | | |
38 | 31 | | |
39 | 32 | | |
40 | 33 | | |
41 | 34 | | |
42 | 35 | | |
43 | 36 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | 37 | | |
78 | 38 | | |
79 | 39 | | |
| |||
143 | 103 | | |
144 | 104 | | |
145 | 105 | | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
| 106 | + | |
| 107 | + | |
159 | 108 | | |
160 | 109 | | |
161 | 110 | | |
162 | 111 | | |
163 | 112 | | |
164 | | - | |
| 113 | + | |
165 | 114 | | |
166 | 115 | | |
167 | 116 | | |
| |||
295 | 244 | | |
296 | 245 | | |
297 | 246 | | |
298 | | - | |
299 | 247 | | |
300 | 248 | | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
| 249 | + | |
| 250 | + | |
315 | 251 | | |
316 | | - | |
| 252 | + | |
317 | 253 | | |
318 | 254 | | |
319 | 255 | | |
320 | 256 | | |
321 | | - | |
| 257 | + | |
322 | 258 | | |
323 | 259 | | |
324 | 260 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
64 | | - | |
65 | 63 | | |
66 | 64 | | |
67 | 65 | | |
| |||
0 commit comments